def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(425, 120) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_2 = QtGui.QLabel(Form) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout.addWidget(self.label_2) self.triggerRegexLineEdit = KLineEdit(Form) self.triggerRegexLineEdit.setUrlDropsEnabled(False) self.triggerRegexLineEdit.setProperty("showClearButton", True) self.triggerRegexLineEdit.setObjectName( _fromUtf8("triggerRegexLineEdit")) self.horizontalLayout.addWidget(self.triggerRegexLineEdit) self.verticalLayout.addLayout(self.horizontalLayout) self.recursiveCheckBox = QtGui.QCheckBox(Form) self.recursiveCheckBox.setObjectName(_fromUtf8("recursiveCheckBox")) self.verticalLayout.addWidget(self.recursiveCheckBox) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.detectButton = QtGui.QPushButton(Form) self.detectButton.setObjectName(_fromUtf8("detectButton")) self.horizontalLayout_2.addWidget(self.detectButton) self.verticalLayout.addLayout(self.horizontalLayout_2) self.kseparator = KSeparator(Form) self.kseparator.setObjectName(_fromUtf8("kseparator")) self.verticalLayout.addWidget(self.kseparator) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, connectForm): connectForm.setObjectName(_fromUtf8("connectForm")) connectForm.resize(655, 33) connectForm.setWindowTitle(_fromUtf8("")) self.horizontalLayout = QtGui.QHBoxLayout(connectForm) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.closeButton = KPushButton(connectForm) self.closeButton.setFlat(True) self.closeButton.setObjectName(_fromUtf8("closeButton")) self.horizontalLayout.addWidget(self.closeButton) self.urlLabel = QtGui.QLabel(connectForm) self.urlLabel.setObjectName(_fromUtf8("urlLabel")) self.horizontalLayout.addWidget(self.urlLabel) self.danbooruUrlComboBox = KComboBox(connectForm) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.danbooruUrlComboBox.sizePolicy().hasHeightForWidth()) self.danbooruUrlComboBox.setSizePolicy(sizePolicy) self.danbooruUrlComboBox.setEditable(False) self.danbooruUrlComboBox.setObjectName( _fromUtf8("danbooruUrlComboBox")) self.horizontalLayout.addWidget(self.danbooruUrlComboBox) self.userLabel = QtGui.QLabel(connectForm) self.userLabel.setObjectName(_fromUtf8("userLabel")) self.horizontalLayout.addWidget(self.userLabel) self.userLineEdit = KLineEdit(connectForm) self.userLineEdit.setObjectName(_fromUtf8("userLineEdit")) self.horizontalLayout.addWidget(self.userLineEdit) self.passwordLabel = QtGui.QLabel(connectForm) self.passwordLabel.setObjectName(_fromUtf8("passwordLabel")) self.horizontalLayout.addWidget(self.passwordLabel) self.passwdLineEdit = KLineEdit(connectForm) self.passwdLineEdit.setPasswordMode(True) self.passwdLineEdit.setObjectName(_fromUtf8("passwdLineEdit")) self.horizontalLayout.addWidget(self.passwdLineEdit) self.buttonBox = KDialogButtonBox(connectForm) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok) self.buttonBox.setCenterButtons(False) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.horizontalLayout.addWidget(self.buttonBox) self.retranslateUi(connectForm) QtCore.QMetaObject.connectSlotsByName(connectForm)
def xyz_plot(self): print "xyz_plot" #origin=[10,10,15] #normal=[0.5,0.5,0.5] self.frame_2.hide() self.frame_2.destroy() self.frame_2 = QtGui.QFrame(self.centralwidget) self.frame_2.setGeometry(QtCore.QRect(0, 340, 120, 331)) label = QtGui.QLabel(self.frame_2) label.setGeometry(QtCore.QRect(0, 0, 121, 16)) label.setText( QtGui.QApplication.translate("frame_2", "Plane property:", None, QtGui.QApplication.UnicodeUTF8)) label_2 = QtGui.QLabel(self.frame_2) label_2.setGeometry(QtCore.QRect(0, 18, 121, 16)) label_2.setText( QtGui.QApplication.translate("frame_2", "Origin", None, QtGui.QApplication.UnicodeUTF8)) self.kdoublenuminput = KLineEdit(self.frame_2) self.kdoublenuminput.setGeometry(QtCore.QRect(0, 37, 53, 21)) self.kdoublenuminput2 = KLineEdit(self.frame_2) self.kdoublenuminput2.setGeometry(QtCore.QRect(42, 37, 53, 21)) self.kdoublenuminput3 = KLineEdit(self.frame_2) self.kdoublenuminput3.setGeometry(QtCore.QRect(84, 37, 50, 21)) label_3 = QtGui.QLabel(self.frame_2) label_3.setGeometry(QtCore.QRect(0, 60, 121, 16)) label_3.setText( QtGui.QApplication.translate("frame_2", "Normal", None, QtGui.QApplication.UnicodeUTF8)) self.kdoublenuminput01 = KLineEdit(self.frame_2) self.kdoublenuminput01.setGeometry(QtCore.QRect(0, 80, 53, 21)) self.kdoublenuminput02 = KLineEdit(self.frame_2) self.kdoublenuminput02.setGeometry(QtCore.QRect(42, 80, 53, 21)) self.kdoublenuminput03 = KLineEdit(self.frame_2) self.kdoublenuminput03.setGeometry(QtCore.QRect(84, 80, 50, 21)) pushButton = QtGui.QPushButton(self.frame_2) pushButton.setGeometry(QtCore.QRect(0, 103, 121, 21)) pushButton.setText( QtGui.QApplication.translate("frame_2", "Single XYZplot", None, QtGui.QApplication.UnicodeUTF8)) self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.frame_2.show() QtCore.QObject.connect(pushButton, QtCore.SIGNAL('clicked()'), self.make_xyz_plot)
def setupUi(self, INDIHostConf): INDIHostConf.setObjectName(_fromUtf8("INDIHostConf")) INDIHostConf.resize(437, 178) INDIHostConf.setSizeGripEnabled(True) self.vboxlayout = QtGui.QVBoxLayout(INDIHostConf) self.vboxlayout.setSpacing(6) self.vboxlayout.setMargin(11) self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setSpacing(6) self.hboxlayout.setMargin(0) self.hboxlayout.setObjectName(_fromUtf8("hboxlayout")) self.vboxlayout1 = QtGui.QVBoxLayout() self.vboxlayout1.setSpacing(6) self.vboxlayout1.setMargin(0) self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1")) self.textLabel1_3 = QtGui.QLabel(INDIHostConf) self.textLabel1_3.setObjectName(_fromUtf8("textLabel1_3")) self.vboxlayout1.addWidget(self.textLabel1_3) self.textLabel1 = QtGui.QLabel(INDIHostConf) self.textLabel1.setObjectName(_fromUtf8("textLabel1")) self.vboxlayout1.addWidget(self.textLabel1) self.textLabel1_2 = QtGui.QLabel(INDIHostConf) self.textLabel1_2.setObjectName(_fromUtf8("textLabel1_2")) self.vboxlayout1.addWidget(self.textLabel1_2) self.hboxlayout.addLayout(self.vboxlayout1) self.vboxlayout2 = QtGui.QVBoxLayout() self.vboxlayout2.setSpacing(6) self.vboxlayout2.setMargin(0) self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2")) self.nameIN = KLineEdit(INDIHostConf) self.nameIN.setObjectName(_fromUtf8("nameIN")) self.vboxlayout2.addWidget(self.nameIN) self.hostname = KLineEdit(INDIHostConf) self.hostname.setObjectName(_fromUtf8("hostname")) self.vboxlayout2.addWidget(self.hostname) self.portnumber = KLineEdit(INDIHostConf) self.portnumber.setObjectName(_fromUtf8("portnumber")) self.vboxlayout2.addWidget(self.portnumber) self.hboxlayout.addLayout(self.vboxlayout2) self.vboxlayout.addLayout(self.hboxlayout) spacerItem = QtGui.QSpacerItem(30, 35, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout.addItem(spacerItem) self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setSpacing(6) self.hboxlayout1.setMargin(0) self.hboxlayout1.setObjectName(_fromUtf8("hboxlayout1")) spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout1.addItem(spacerItem1) self.buttonOk = QtGui.QPushButton(INDIHostConf) self.buttonOk.setAutoDefault(True) self.buttonOk.setDefault(True) self.buttonOk.setObjectName(_fromUtf8("buttonOk")) self.hboxlayout1.addWidget(self.buttonOk) self.buttonCancel = QtGui.QPushButton(INDIHostConf) self.buttonCancel.setAutoDefault(True) self.buttonCancel.setObjectName(_fromUtf8("buttonCancel")) self.hboxlayout1.addWidget(self.buttonCancel) self.vboxlayout.addLayout(self.hboxlayout1) self.retranslateUi(INDIHostConf) QtCore.QObject.connect(self.buttonOk, QtCore.SIGNAL(_fromUtf8("clicked()")), INDIHostConf.accept) QtCore.QObject.connect(self.buttonCancel, QtCore.SIGNAL(_fromUtf8("clicked()")), INDIHostConf.reject) QtCore.QMetaObject.connectSlotsByName(INDIHostConf) INDIHostConf.setTabOrder(self.nameIN, self.hostname) INDIHostConf.setTabOrder(self.hostname, self.portnumber) INDIHostConf.setTabOrder(self.portnumber, self.buttonOk) INDIHostConf.setTabOrder(self.buttonOk, self.buttonCancel)
def setupUi(self, FetchDialog): FetchDialog.setObjectName(_fromUtf8("FetchDialog")) FetchDialog.resize(662, 31) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( FetchDialog.sizePolicy().hasHeightForWidth()) FetchDialog.setSizePolicy(sizePolicy) FetchDialog.setWindowTitle(_fromUtf8("")) self.horizontalLayout = QtGui.QHBoxLayout(FetchDialog) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.closeButton = KPushButton(FetchDialog) self.closeButton.setFlat(True) self.closeButton.setObjectName(_fromUtf8("closeButton")) self.horizontalLayout.addWidget(self.closeButton) self.ratingLabel = QtGui.QLabel(FetchDialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.ratingLabel.sizePolicy().hasHeightForWidth()) self.ratingLabel.setSizePolicy(sizePolicy) self.ratingLabel.setObjectName(_fromUtf8("ratingLabel")) self.horizontalLayout.addWidget(self.ratingLabel) self.ratingComboBox = KComboBox(FetchDialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.ratingComboBox.sizePolicy().hasHeightForWidth()) self.ratingComboBox.setSizePolicy(sizePolicy) self.ratingComboBox.setObjectName(_fromUtf8("ratingComboBox")) self.ratingComboBox.addItem(_fromUtf8("")) self.ratingComboBox.addItem(_fromUtf8("")) self.ratingComboBox.addItem(_fromUtf8("")) self.horizontalLayout.addWidget(self.ratingComboBox) self.postLabel = QtGui.QLabel(FetchDialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.postLabel.sizePolicy().hasHeightForWidth()) self.postLabel.setSizePolicy(sizePolicy) self.postLabel.setObjectName(_fromUtf8("postLabel")) self.horizontalLayout.addWidget(self.postLabel) self.postSpinBox = KIntSpinBox(FetchDialog) self.postSpinBox.setMinimum(1) self.postSpinBox.setMaximum(100) self.postSpinBox.setObjectName(_fromUtf8("postSpinBox")) self.horizontalLayout.addWidget(self.postSpinBox) self.tagLabel = QtGui.QLabel(FetchDialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tagLabel.sizePolicy().hasHeightForWidth()) self.tagLabel.setSizePolicy(sizePolicy) self.tagLabel.setObjectName(_fromUtf8("tagLabel")) self.horizontalLayout.addWidget(self.tagLabel) self.tagLineEdit = KLineEdit(FetchDialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tagLineEdit.sizePolicy().hasHeightForWidth()) self.tagLineEdit.setSizePolicy(sizePolicy) self.tagLineEdit.setObjectName(_fromUtf8("tagLineEdit")) self.horizontalLayout.addWidget(self.tagLineEdit) self.downloadButton = KPushButton(FetchDialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.downloadButton.sizePolicy().hasHeightForWidth()) self.downloadButton.setSizePolicy(sizePolicy) self.downloadButton.setObjectName(_fromUtf8("downloadButton")) self.horizontalLayout.addWidget(self.downloadButton) self.retranslateUi(FetchDialog) QtCore.QMetaObject.connectSlotsByName(FetchDialog)