Esempio n. 1
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(454, 220)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.kbuttongroup_layout = KButtonGroup(Form)
        self.kbuttongroup_layout.setObjectName(_fromUtf8("kbuttongroup_layout"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.kbuttongroup_layout)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.button_horizontal = QtGui.QRadioButton(self.kbuttongroup_layout)
        self.button_horizontal.setObjectName(_fromUtf8("button_horizontal"))
        self.verticalLayout_2.addWidget(self.button_horizontal)
        self.button_vertical = QtGui.QRadioButton(self.kbuttongroup_layout)
        self.button_vertical.setObjectName(_fromUtf8("button_vertical"))
        self.verticalLayout_2.addWidget(self.button_vertical)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.verticalLayout.addWidget(self.kbuttongroup_layout)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.kbuttongroup_layout.setTitle(QtGui.QApplication.translate("Form", "Layout", None, QtGui.QApplication.UnicodeUTF8))
        self.button_horizontal.setText(QtGui.QApplication.translate("Form", "horizontal", None, QtGui.QApplication.UnicodeUTF8))
        self.button_vertical.setText(QtGui.QApplication.translate("Form", "vertical", None, QtGui.QApplication.UnicodeUTF8))
Esempio n. 2
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(400, 240)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox = QtGui.QGroupBox(Form)
        self.groupBox.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.titleLabel = QtGui.QLabel(self.groupBox)
        self.titleLabel.setObjectName(_fromUtf8("titleLabel"))
        self.verticalLayout_2.addWidget(self.titleLabel)
        self.classLabel = QtGui.QLabel(self.groupBox)
        self.classLabel.setObjectName(_fromUtf8("classLabel"))
        self.verticalLayout_2.addWidget(self.classLabel)
        self.verticalLayout.addWidget(self.groupBox)
        self.kbuttongroup = KButtonGroup(Form)
        self.kbuttongroup.setObjectName(_fromUtf8("kbuttongroup"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.kbuttongroup)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.classButton = QtGui.QRadioButton(self.kbuttongroup)
        self.classButton.setObjectName(_fromUtf8("classButton"))
        self.verticalLayout_3.addWidget(self.classButton)
        self.titleButton = QtGui.QRadioButton(self.kbuttongroup)
        self.titleButton.setObjectName(_fromUtf8("titleButton"))
        self.verticalLayout_3.addWidget(self.titleButton)
        self.verticalLayout.addWidget(self.kbuttongroup)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(kdecore.i18n(_fromUtf8("Form")))
        self.groupBox.setTitle(kdecore.i18n(_fromUtf8("Window information of selected window")))
        self.titleLabel.setText(kdecore.i18n(_fromUtf8("TextLabel")))
        self.classLabel.setText(kdecore.i18n(_fromUtf8("TextLabel")))
        self.kbuttongroup.setTitle(kdecore.i18n(_fromUtf8("Window property selection")))
        self.classButton.setText(kdecore.i18n(_fromUtf8("Window class (entire application)")))
        self.titleButton.setText(kdecore.i18n(_fromUtf8("Window title")))