def setupUi(self, Form): Form.setObjectName("Form") Form.resize(868, 338) font = QtGui.QFont() font.setFamily("Arial") font.setBold(False) font.setWeight(50) Form.setFont(font) self.verticalLayout = QtWidgets.QVBoxLayout(Form) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setSpacing(3) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.widget_Button = QtWidgets.QWidget(Form) self.widget_Button.setObjectName("widget_Button") self.Layout_Button = QtWidgets.QHBoxLayout(self.widget_Button) self.Layout_Button.setContentsMargins(0, 0, 0, 0) self.Layout_Button.setSpacing(2) self.Layout_Button.setObjectName("Layout_Button") self.horizontalLayout_2.addWidget(self.widget_Button) spacerItem = QtWidgets.QSpacerItem(50, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.label = QtWidgets.QLabel(Form) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.lineEdit = QtWidgets.QLineEdit(Form) self.lineEdit.setMinimumSize(QtCore.QSize(0, 25)) self.lineEdit.setMaximumSize(QtCore.QSize(200, 25)) self.lineEdit.setObjectName("lineEdit") self.horizontalLayout_2.addWidget(self.lineEdit) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_2) self.tableView = QtWidgets.QTableView(Form) self.tableView.setSelectionMode( QtWidgets.QAbstractItemView.SingleSelection) self.tableView.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) self.tableView.setObjectName("tableView") self.tableView.verticalHeader().setDefaultSectionSize(25) self.verticalLayout.addWidget(self.tableView) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(913, 567) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(10) Form.setFont(font) self.verticalLayout_4 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_4.setContentsMargins(4, 4, 4, 4) self.verticalLayout_4.setSpacing(2) self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_logo = QtWidgets.QLabel(Form) self.label_logo.setMinimumSize(QtCore.QSize(329, 60)) self.label_logo.setMaximumSize(QtCore.QSize(329, 60)) self.label_logo.setText("") self.label_logo.setPixmap(QtGui.QPixmap("../res/tmLogo100.png")) self.label_logo.setScaledContents(True) self.label_logo.setObjectName("label_logo") self.horizontalLayout_6.addWidget(self.label_logo) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem) self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem1) self.label_Title_Chn = QtWidgets.QLabel(Form) self.label_Title_Chn.setMinimumSize(QtCore.QSize(0, 30)) self.label_Title_Chn.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.label_Title_Chn.setFont(font) self.label_Title_Chn.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing) self.label_Title_Chn.setObjectName("label_Title_Chn") self.horizontalLayout_5.addWidget(self.label_Title_Chn) self.label_Title_Eng = QtWidgets.QLabel(Form) self.label_Title_Eng.setMinimumSize(QtCore.QSize(0, 30)) self.label_Title_Eng.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setFamily("Algerian") font.setPointSize(20) font.setBold(False) font.setWeight(50) self.label_Title_Eng.setFont(font) self.label_Title_Eng.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft) self.label_Title_Eng.setObjectName("label_Title_Eng") self.horizontalLayout_5.addWidget(self.label_Title_Eng) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.verticalLayout_3.addLayout(self.horizontalLayout_5) self.label_Title_Note = QtWidgets.QLabel(Form) self.label_Title_Note.setMinimumSize(QtCore.QSize(0, 30)) self.label_Title_Note.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setFamily("Algerian") font.setPointSize(16) self.label_Title_Note.setFont(font) self.label_Title_Note.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.label_Title_Note.setObjectName("label_Title_Note") self.verticalLayout_3.addWidget(self.label_Title_Note) self.horizontalLayout_6.addLayout(self.verticalLayout_3) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem3) self.verticalLayout_4.addLayout(self.horizontalLayout_6) self.line = QtWidgets.QFrame(Form) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_4.addWidget(self.line) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setSpacing(0) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.butSave = QtWidgets.QPushButton(Form) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("../res/ico/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSave.setIcon(icon) self.butSave.setIconSize(QtCore.QSize(16, 16)) self.butSave.setObjectName("butSave") self.horizontalLayout_3.addWidget(self.butSave) self.butPrint = QtWidgets.QPushButton(Form) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("../res/ico/Print.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butPrint.setIcon(icon1) self.butPrint.setIconSize(QtCore.QSize(16, 16)) self.butPrint.setObjectName("butPrint") self.horizontalLayout_3.addWidget(self.butPrint) self.butPDF = QtWidgets.QPushButton(Form) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap("../res/ico/pdf.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butPDF.setIcon(icon2) self.butPDF.setIconSize(QtCore.QSize(16, 16)) self.butPDF.setDefault(True) self.butPDF.setObjectName("butPDF") self.horizontalLayout_3.addWidget(self.butPDF) self.horizontalLayout_4.addLayout(self.horizontalLayout_3) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setContentsMargins(0, 0, 4, 0) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem4) self.label_2 = QtWidgets.QLabel(Form) font = QtGui.QFont() font.setPointSize(15) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.fOrderID = QtWidgets.QLineEdit(Form) self.fOrderID.setMinimumSize(QtCore.QSize(300, 0)) self.fOrderID.setMaximumSize(QtCore.QSize(300, 16777215)) font = QtGui.QFont() font.setPointSize(15) self.fOrderID.setFont(font) self.fOrderID.setText("") self.fOrderID.setAlignment(QtCore.Qt.AlignCenter) self.fOrderID.setReadOnly(True) self.fOrderID.setObjectName("fOrderID") self.horizontalLayout.addWidget(self.fOrderID) self.horizontalLayout_4.addLayout(self.horizontalLayout) self.verticalLayout_4.addLayout(self.horizontalLayout_4) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setContentsMargins(3, -1, 0, 3) self.gridLayout.setSpacing(3) self.gridLayout.setObjectName("gridLayout") self.label_4 = QtWidgets.QLabel(Form) self.label_4.setMinimumSize(QtCore.QSize(0, 25)) self.label_4.setSizeIncrement(QtCore.QSize(0, 25)) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 0, 5, 1, 1) self.label_6 = QtWidgets.QLabel(Form) self.label_6.setMinimumSize(QtCore.QSize(0, 25)) self.label_6.setSizeIncrement(QtCore.QSize(0, 25)) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 1, 0, 1, 1) self.fEndereco = QtWidgets.QLineEdit(Form) self.fEndereco.setMinimumSize(QtCore.QSize(0, 25)) self.fEndereco.setSizeIncrement(QtCore.QSize(0, 25)) self.fEndereco.setPlaceholderText("") self.fEndereco.setClearButtonEnabled(False) self.fEndereco.setObjectName("fEndereco") self.gridLayout.addWidget(self.fEndereco, 2, 2, 1, 3) self.label_10 = QtWidgets.QLabel(Form) self.label_10.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 4, 3, 1, 1) self.fContato = QtWidgets.QLineEdit(Form) self.fContato.setMinimumSize(QtCore.QSize(0, 25)) self.fContato.setSizeIncrement(QtCore.QSize(0, 25)) self.fContato.setClearButtonEnabled(True) self.fContato.setObjectName("fContato") self.gridLayout.addWidget(self.fContato, 4, 2, 1, 1) self.label_17 = QtWidgets.QLabel(Form) self.label_17.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_17.setObjectName("label_17") self.gridLayout.addWidget(self.label_17, 0, 3, 1, 1) self.fEntryID = QtWidgets.QComboBox(Form) self.fEntryID.setMinimumSize(QtCore.QSize(0, 25)) self.fEntryID.setObjectName("fEntryID") self.gridLayout.addWidget(self.fEntryID, 0, 4, 1, 1) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setMinimumSize(QtCore.QSize(0, 25)) self.label_3.setSizeIncrement(QtCore.QSize(0, 25)) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.fWarehousingDate = QtWidgets.QDateEdit(Form) self.fWarehousingDate.setMinimumSize(QtCore.QSize(0, 25)) self.fWarehousingDate.setSizeIncrement(QtCore.QSize(0, 25)) self.fWarehousingDate.setAlignment(QtCore.Qt.AlignCenter) self.fWarehousingDate.setCalendarPopup(True) self.fWarehousingDate.setObjectName("fWarehousingDate") self.gridLayout.addWidget(self.fWarehousingDate, 0, 6, 1, 1) self.fOrderDate = QtWidgets.QDateEdit(Form) self.fOrderDate.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.fOrderDate.setAlignment(QtCore.Qt.AlignCenter) self.fOrderDate.setCalendarPopup(True) self.fOrderDate.setObjectName("fOrderDate") self.gridLayout.addWidget(self.fOrderDate, 0, 2, 1, 1) self.fCelular = QtWidgets.QLineEdit(Form) self.fCelular.setMinimumSize(QtCore.QSize(0, 25)) self.fCelular.setSizeIncrement(QtCore.QSize(0, 25)) self.fCelular.setClearButtonEnabled(True) self.fCelular.setObjectName("fCelular") self.gridLayout.addWidget(self.fCelular, 4, 4, 1, 1) self.fSupplierID = QtWidgets.QComboBox(Form) self.fSupplierID.setMinimumSize(QtCore.QSize(0, 0)) self.fSupplierID.setSizeIncrement(QtCore.QSize(0, 25)) self.fSupplierID.setObjectName("fSupplierID") self.gridLayout.addWidget(self.fSupplierID, 1, 2, 1, 3) self.label_9 = QtWidgets.QLabel(Form) self.label_9.setMinimumSize(QtCore.QSize(0, 25)) self.label_9.setSizeIncrement(QtCore.QSize(0, 25)) self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1) self.label_11 = QtWidgets.QLabel(Form) self.label_11.setMinimumSize(QtCore.QSize(0, 25)) self.label_11.setSizeIncrement(QtCore.QSize(0, 25)) self.label_11.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 4, 0, 1, 1) self.label_12 = QtWidgets.QLabel(Form) self.label_12.setMinimumSize(QtCore.QSize(0, 25)) self.label_12.setSizeIncrement(QtCore.QSize(0, 25)) self.label_12.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_12.setObjectName("label_12") self.gridLayout.addWidget(self.label_12, 3, 0, 1, 1) self.label_16 = QtWidgets.QLabel(Form) self.label_16.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_16.setObjectName("label_16") self.gridLayout.addWidget(self.label_16, 4, 5, 1, 1) self.fTelefone = QtWidgets.QLineEdit(Form) self.fTelefone.setMinimumSize(QtCore.QSize(0, 25)) self.fTelefone.setObjectName("fTelefone") self.gridLayout.addWidget(self.fTelefone, 4, 6, 1, 1) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setMinimumSize(QtCore.QSize(0, 25)) self.label_7.setSizeIncrement(QtCore.QSize(0, 25)) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 3, 5, 1, 1) self.fNUIT = QtWidgets.QLineEdit(Form) self.fNUIT.setMinimumSize(QtCore.QSize(0, 25)) self.fNUIT.setSizeIncrement(QtCore.QSize(0, 25)) self.fNUIT.setObjectName("fNUIT") self.gridLayout.addWidget(self.fNUIT, 3, 6, 1, 1) self.label_8 = QtWidgets.QLabel(Form) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 2, 5, 1, 1) self.fCity = QtWidgets.QLineEdit(Form) self.fCity.setMinimumSize(QtCore.QSize(0, 25)) self.fCity.setSizeIncrement(QtCore.QSize(0, 25)) self.fCity.setClearButtonEnabled(False) self.fCity.setObjectName("fCity") self.gridLayout.addWidget(self.fCity, 2, 6, 1, 1) self.fPurchaserID = QtWidgets.QComboBox(Form) self.fPurchaserID.setMinimumSize(QtCore.QSize(0, 25)) self.fPurchaserID.setObjectName("fPurchaserID") self.gridLayout.addWidget(self.fPurchaserID, 1, 6, 1, 1) self.label_5 = QtWidgets.QLabel(Form) self.label_5.setMinimumSize(QtCore.QSize(0, 25)) self.label_5.setSizeIncrement(QtCore.QSize(0, 25)) self.label_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 1, 5, 1, 1) self.fEmail = QtWidgets.QLineEdit(Form) self.fEmail.setMinimumSize(QtCore.QSize(0, 25)) self.fEmail.setSizeIncrement(QtCore.QSize(0, 25)) self.fEmail.setReadOnly(True) self.fEmail.setClearButtonEnabled(False) self.fEmail.setObjectName("fEmail") self.gridLayout.addWidget(self.fEmail, 3, 2, 1, 3) self.verticalLayout_4.addLayout(self.gridLayout) self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setSpacing(0) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.tableView = QtWidgets.QTableView(Form) self.tableView.setMinimumSize(QtCore.QSize(0, 200)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(10) self.tableView.setFont(font) self.tableView.setObjectName("tableView") self.horizontalLayout_7.addWidget(self.tableView) spacerItem5 = QtWidgets.QSpacerItem(0, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.horizontalLayout_7.addItem(spacerItem5) self.verticalLayout_4.addLayout(self.horizontalLayout_7) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) self.verticalLayout.setContentsMargins(-1, -1, -1, 0) self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.fNote = QtWidgets.QTextEdit(Form) self.fNote.setMinimumSize(QtCore.QSize(0, 100)) self.fNote.setMaximumSize(QtCore.QSize(16777215, 100)) self.fNote.setToolTipDuration(-1) self.fNote.setStatusTip("") self.fNote.setWhatsThis("") self.fNote.setAccessibleName("") self.fNote.setLineWidth(-1) self.fNote.setObjectName("fNote") self.verticalLayout.addWidget(self.fNote) self.horizontalLayout_2.addLayout(self.verticalLayout) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.temp = QtWidgets.QWidget(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.temp.sizePolicy().hasHeightForWidth()) self.temp.setSizePolicy(sizePolicy) self.temp.setObjectName("temp") self.gridLayout_2 = QtWidgets.QGridLayout(self.temp) self.gridLayout_2.setSizeConstraint(QtWidgets.QLayout.SetNoConstraint) self.gridLayout_2.setContentsMargins(0, 0, 0, 0) self.gridLayout_2.setSpacing(0) self.gridLayout_2.setObjectName("gridLayout_2") self.label = QtWidgets.QLabel(self.temp) self.label.setMinimumSize(QtCore.QSize(0, 25)) self.label.setMaximumSize(QtCore.QSize(150, 25)) self.label.setSizeIncrement(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setPointSize(9) self.label.setFont(font) self.label.setStyleSheet("border-width: 0.7px;border-style: solid") self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.fAmount = QtWidgets.QLineEdit(self.temp) self.fAmount.setMinimumSize(QtCore.QSize(0, 25)) self.fAmount.setMaximumSize(QtCore.QSize(150, 25)) self.fAmount.setSizeIncrement(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setPointSize(9) self.fAmount.setFont(font) self.fAmount.setStyleSheet("border-width: 0.7px;border-style: solid") self.fAmount.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.fAmount.setReadOnly(True) self.fAmount.setObjectName("fAmount") self.gridLayout_2.addWidget(self.fAmount, 0, 1, 1, 1) self.label_13 = QtWidgets.QLabel(self.temp) self.label_13.setMinimumSize(QtCore.QSize(0, 25)) self.label_13.setMaximumSize(QtCore.QSize(150, 25)) self.label_13.setSizeIncrement(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setPointSize(9) self.label_13.setFont(font) self.label_13.setStyleSheet("border-width: 0.7px;border-style: solid") self.label_13.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_13.setObjectName("label_13") self.gridLayout_2.addWidget(self.label_13, 1, 0, 1, 1) self.fDesconto = QtWidgets.QLineEdit(self.temp) self.fDesconto.setMinimumSize(QtCore.QSize(0, 25)) self.fDesconto.setMaximumSize(QtCore.QSize(150, 25)) self.fDesconto.setSizeIncrement(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setPointSize(9) self.fDesconto.setFont(font) self.fDesconto.setStyleSheet("border-width: 0.7px;border-style: solid") self.fDesconto.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.fDesconto.setObjectName("fDesconto") self.gridLayout_2.addWidget(self.fDesconto, 1, 1, 1, 1) self.label_14 = QtWidgets.QLabel(self.temp) self.label_14.setMinimumSize(QtCore.QSize(0, 25)) self.label_14.setMaximumSize(QtCore.QSize(150, 25)) self.label_14.setSizeIncrement(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setPointSize(9) self.label_14.setFont(font) self.label_14.setStyleSheet("border-width: 0.7px;border-style: solid") self.label_14.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_14.setObjectName("label_14") self.gridLayout_2.addWidget(self.label_14, 2, 0, 1, 1) self.fTax = QtWidgets.QLineEdit(self.temp) self.fTax.setMinimumSize(QtCore.QSize(0, 25)) self.fTax.setMaximumSize(QtCore.QSize(150, 25)) self.fTax.setSizeIncrement(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setPointSize(9) self.fTax.setFont(font) self.fTax.setStyleSheet("border-width: 0.7px;border-style: solid") self.fTax.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.fTax.setObjectName("fTax") self.gridLayout_2.addWidget(self.fTax, 2, 1, 1, 1) self.label_15 = QtWidgets.QLabel(self.temp) self.label_15.setMinimumSize(QtCore.QSize(0, 25)) self.label_15.setMaximumSize(QtCore.QSize(150, 25)) self.label_15.setSizeIncrement(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setPointSize(9) self.label_15.setFont(font) self.label_15.setStyleSheet("border-width: 0.7px;border-style: solid") self.label_15.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_15.setObjectName("label_15") self.gridLayout_2.addWidget(self.label_15, 3, 0, 1, 1) self.fPayable = QtWidgets.QLineEdit(self.temp) self.fPayable.setMinimumSize(QtCore.QSize(0, 25)) self.fPayable.setMaximumSize(QtCore.QSize(150, 25)) self.fPayable.setSizeIncrement(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setPointSize(9) self.fPayable.setFont(font) self.fPayable.setStyleSheet("border-width: 0.7px;border-style: solid") self.fPayable.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.fPayable.setReadOnly(True) self.fPayable.setObjectName("fPayable") self.gridLayout_2.addWidget(self.fPayable, 3, 1, 1, 1) self.verticalLayout_2.addWidget(self.temp) self.horizontalLayout_2.addLayout(self.verticalLayout_2) self.verticalLayout_4.addLayout(self.horizontalLayout_2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.butSave, self.butPrint) Form.setTabOrder(self.butPrint, self.butPDF) Form.setTabOrder(self.butPDF, self.fOrderDate) Form.setTabOrder(self.fOrderDate, self.fEntryID) Form.setTabOrder(self.fEntryID, self.fWarehousingDate) Form.setTabOrder(self.fWarehousingDate, self.fSupplierID) Form.setTabOrder(self.fSupplierID, self.fEndereco) Form.setTabOrder(self.fEndereco, self.tableView) Form.setTabOrder(self.tableView, self.fNote) Form.setTabOrder(self.fNote, self.fAmount) Form.setTabOrder(self.fAmount, self.fDesconto) Form.setTabOrder(self.fDesconto, self.fTax) Form.setTabOrder(self.fTax, self.fPayable) Form.setTabOrder(self.fPayable, self.fOrderID)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(800, 600) Form.setMaximumSize(QtCore.QSize(800, 600)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(10) Form.setFont(font) self.verticalLayout_2 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 10) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_logo = QtWidgets.QLabel(Form) self.label_logo.setMinimumSize(QtCore.QSize(329, 60)) self.label_logo.setMaximumSize(QtCore.QSize(329, 60)) self.label_logo.setText("") self.label_logo.setPixmap(QtGui.QPixmap("../res/gaoke.png")) self.label_logo.setScaledContents(True) self.label_logo.setObjectName("label_logo") self.horizontalLayout_2.addWidget(self.label_logo) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.label_18 = QtWidgets.QLabel(Form) self.label_18.setMinimumSize(QtCore.QSize(0, 30)) self.label_18.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.label_18.setFont(font) self.label_18.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignHCenter) self.label_18.setObjectName("label_18") self.verticalLayout.addWidget(self.label_18) self.label_19 = QtWidgets.QLabel(Form) self.label_19.setMinimumSize(QtCore.QSize(0, 30)) self.label_19.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setFamily("Algerian") font.setPointSize(20) font.setBold(False) font.setWeight(50) self.label_19.setFont(font) self.label_19.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.label_19.setObjectName("label_19") self.verticalLayout.addWidget(self.label_19) self.horizontalLayout_2.addLayout(self.verticalLayout) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.line = QtWidgets.QFrame(Form) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_2.addWidget(self.line) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(Form) self.label.setMinimumSize(QtCore.QSize(0, 25)) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setMinimumSize(QtCore.QSize(0, 25)) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 3, 2, 1, 1) self.label_10 = QtWidgets.QLabel(Form) self.label_10.setMinimumSize(QtCore.QSize(0, 25)) self.label_10.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 7, 0, 1, 1) self.state = QtWidgets.QComboBox(Form) self.state.setMinimumSize(QtCore.QSize(0, 25)) self.state.setObjectName("state") self.gridLayout.addWidget(self.state, 2, 5, 1, 1) self.content = QtWidgets.QTextEdit(Form) self.content.setMinimumSize(QtCore.QSize(0, 100)) self.content.setObjectName("content") self.gridLayout.addWidget(self.content, 7, 1, 1, 5) self.location = QtWidgets.QLineEdit(Form) self.location.setMinimumSize(QtCore.QSize(0, 25)) self.location.setText("") self.location.setObjectName("location") self.gridLayout.addWidget(self.location, 1, 3, 1, 3) self.org_pk = QtWidgets.QComboBox(Form) self.org_pk.setMinimumSize(QtCore.QSize(0, 25)) self.org_pk.setObjectName("org_pk") self.gridLayout.addWidget(self.org_pk, 4, 1, 1, 3) self.floorage = QtWidgets.QLineEdit(Form) self.floorage.setMinimumSize(QtCore.QSize(0, 25)) self.floorage.setText("") self.floorage.setObjectName("floorage") self.gridLayout.addWidget(self.floorage, 0, 5, 1, 1) self.project_name = QtWidgets.QLineEdit(Form) self.project_name.setMinimumSize(QtCore.QSize(0, 25)) self.project_name.setObjectName("project_name") self.gridLayout.addWidget(self.project_name, 1, 1, 1, 1) self.estimated_total_investment = QtWidgets.QLineEdit(Form) self.estimated_total_investment.setMinimumSize(QtCore.QSize(0, 25)) self.estimated_total_investment.setText("") self.estimated_total_investment.setObjectName( "estimated_total_investment") self.gridLayout.addWidget(self.estimated_total_investment, 0, 3, 1, 1) self.investor = QtWidgets.QLineEdit(Form) self.investor.setMinimumSize(QtCore.QSize(0, 25)) self.investor.setObjectName("investor") self.gridLayout.addWidget(self.investor, 3, 1, 1, 1) self.label_4 = QtWidgets.QLabel(Form) self.label_4.setMinimumSize(QtCore.QSize(0, 25)) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 2, 4, 1, 1) self.project_simple_name = QtWidgets.QLineEdit(Form) self.project_simple_name.setMinimumSize(QtCore.QSize(0, 25)) self.project_simple_name.setText("") self.project_simple_name.setObjectName("project_simple_name") self.gridLayout.addWidget(self.project_simple_name, 2, 1, 1, 1) self.label_5 = QtWidgets.QLabel(Form) self.label_5.setMinimumSize(QtCore.QSize(0, 25)) self.label_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 1, 2, 1, 1) self.construction_mode = QtWidgets.QComboBox(Form) self.construction_mode.setMinimumSize(QtCore.QSize(0, 25)) self.construction_mode.setObjectName("construction_mode") self.gridLayout.addWidget(self.construction_mode, 3, 3, 1, 1) self.label_16 = QtWidgets.QLabel(Form) self.label_16.setMinimumSize(QtCore.QSize(0, 25)) self.label_16.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_16.setObjectName("label_16") self.gridLayout.addWidget(self.label_16, 4, 0, 1, 1) self.key_project_level = QtWidgets.QComboBox(Form) self.key_project_level.setMinimumSize(QtCore.QSize(0, 25)) self.key_project_level.setObjectName("key_project_level") self.gridLayout.addWidget(self.key_project_level, 2, 3, 1, 1) self.label_14 = QtWidgets.QLabel(Form) self.label_14.setMinimumSize(QtCore.QSize(0, 25)) self.label_14.setObjectName("label_14") self.gridLayout.addWidget(self.label_14, 6, 0, 1, 1) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.land_certificate = QtWidgets.QCheckBox(Form) self.land_certificate.setObjectName("land_certificate") self.horizontalLayout_3.addWidget(self.land_certificate) self.builders_license = QtWidgets.QCheckBox(Form) self.builders_license.setObjectName("builders_license") self.horizontalLayout_3.addWidget(self.builders_license) self.call_for_bids = QtWidgets.QCheckBox(Form) self.call_for_bids.setObjectName("call_for_bids") self.horizontalLayout_3.addWidget(self.call_for_bids) self.gridLayout.addLayout(self.horizontalLayout_3, 6, 1, 1, 3) self.commencement = QtWidgets.QDateEdit(Form) self.commencement.setMinimumSize(QtCore.QSize(0, 25)) self.commencement.setCalendarPopup(True) self.commencement.setObjectName("commencement") self.gridLayout.addWidget(self.commencement, 5, 3, 1, 1) self.label_12 = QtWidgets.QLabel(Form) self.label_12.setMinimumSize(QtCore.QSize(0, 25)) self.label_12.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_12.setObjectName("label_12") self.gridLayout.addWidget(self.label_12, 5, 2, 1, 1) self.category = QtWidgets.QComboBox(Form) self.category.setMinimumSize(QtCore.QSize(0, 25)) self.category.setObjectName("category") self.gridLayout.addWidget(self.category, 3, 5, 1, 1) self.project_pk = QtWidgets.QLineEdit(Form) self.project_pk.setEnabled(False) self.project_pk.setMinimumSize(QtCore.QSize(0, 25)) self.project_pk.setText("") self.project_pk.setObjectName("project_pk") self.gridLayout.addWidget(self.project_pk, 0, 1, 1, 1) self.label_9 = QtWidgets.QLabel(Form) self.label_9.setMinimumSize(QtCore.QSize(0, 25)) self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 0, 2, 1, 1) self.label_15 = QtWidgets.QLabel(Form) self.label_15.setMinimumSize(QtCore.QSize(0, 25)) self.label_15.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_15.setObjectName("label_15") self.gridLayout.addWidget(self.label_15, 0, 0, 1, 1) self.label_6 = QtWidgets.QLabel(Form) self.label_6.setMinimumSize(QtCore.QSize(0, 25)) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 2, 2, 1, 1) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setMinimumSize(QtCore.QSize(0, 25)) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) self.label_11 = QtWidgets.QLabel(Form) self.label_11.setMinimumSize(QtCore.QSize(0, 25)) self.label_11.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 0, 4, 1, 1) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setMinimumSize(QtCore.QSize(0, 25)) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1) self.label_8 = QtWidgets.QLabel(Form) self.label_8.setMinimumSize(QtCore.QSize(0, 25)) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 3, 4, 1, 1) self.approval_date = QtWidgets.QDateEdit(Form) self.approval_date.setMinimumSize(QtCore.QSize(0, 25)) self.approval_date.setCalendarPopup(True) self.approval_date.setObjectName("approval_date") self.gridLayout.addWidget(self.approval_date, 4, 5, 1, 1) self.label_20 = QtWidgets.QLabel(Form) self.label_20.setMinimumSize(QtCore.QSize(0, 25)) self.label_20.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_20.setObjectName("label_20") self.gridLayout.addWidget(self.label_20, 4, 4, 1, 1) self.label_21 = QtWidgets.QLabel(Form) self.label_21.setMinimumSize(QtCore.QSize(0, 25)) self.label_21.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_21.setObjectName("label_21") self.gridLayout.addWidget(self.label_21, 5, 0, 1, 1) self.required_commencement = QtWidgets.QDateEdit(Form) self.required_commencement.setMinimumSize(QtCore.QSize(0, 25)) self.required_commencement.setCalendarPopup(True) self.required_commencement.setObjectName("required_commencement") self.gridLayout.addWidget(self.required_commencement, 5, 1, 1, 1) self.completion_date = QtWidgets.QDateEdit(Form) self.completion_date.setMinimumSize(QtCore.QSize(0, 25)) self.completion_date.setCalendarPopup(True) self.completion_date.setObjectName("completion_date") self.gridLayout.addWidget(self.completion_date, 6, 5, 1, 1) self.label_13 = QtWidgets.QLabel(Form) self.label_13.setMinimumSize(QtCore.QSize(0, 25)) self.label_13.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 6, 4, 1, 1) self.required_completion_date = QtWidgets.QDateEdit(Form) self.required_completion_date.setMinimumSize(QtCore.QSize(0, 25)) self.required_completion_date.setCalendarPopup(True) self.required_completion_date.setObjectName("required_completion_date") self.gridLayout.addWidget(self.required_completion_date, 5, 5, 1, 1) self.label_17 = QtWidgets.QLabel(Form) self.label_17.setMinimumSize(QtCore.QSize(0, 25)) self.label_17.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_17.setObjectName("label_17") self.gridLayout.addWidget(self.label_17, 5, 4, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.line_2 = QtWidgets.QFrame(Form) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout_2.addWidget(self.line_2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.butSave = QtWidgets.QPushButton(Form) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("../res/ico/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSave.setIcon(icon) self.butSave.setIconSize(QtCore.QSize(16, 16)) self.butSave.setObjectName("butSave") self.horizontalLayout.addWidget(self.butSave) self.butCancel = QtWidgets.QPushButton(Form) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("../res/ico/printer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butCancel.setIcon(icon1) self.butCancel.setIconSize(QtCore.QSize(16, 16)) self.butCancel.setObjectName("butCancel") self.horizontalLayout.addWidget(self.butCancel) spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout_2.addLayout(self.horizontalLayout) self.retranslateUi(Form) self.butCancel.clicked.connect(Form.close) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(665, 484) Form.setMaximumSize(QtCore.QSize(665, 484)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(10) Form.setFont(font) self.verticalLayout_2 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_2.setContentsMargins(2, 2, 2, 2) self.verticalLayout_2.setSpacing(2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 10) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_logo = QtWidgets.QLabel(Form) self.label_logo.setMinimumSize(QtCore.QSize(329, 60)) self.label_logo.setMaximumSize(QtCore.QSize(329, 60)) self.label_logo.setText("") self.label_logo.setPixmap(QtGui.QPixmap("../res/tmLogo100.png")) self.label_logo.setScaledContents(True) self.label_logo.setObjectName("label_logo") self.horizontalLayout_2.addWidget(self.label_logo) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.label_18 = QtWidgets.QLabel(Form) self.label_18.setMinimumSize(QtCore.QSize(0, 30)) self.label_18.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.label_18.setFont(font) self.label_18.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignHCenter) self.label_18.setObjectName("label_18") self.verticalLayout.addWidget(self.label_18) self.label_19 = QtWidgets.QLabel(Form) self.label_19.setMinimumSize(QtCore.QSize(0, 30)) self.label_19.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setFamily("Algerian") font.setPointSize(20) font.setBold(False) font.setWeight(50) self.label_19.setFont(font) self.label_19.setAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop) self.label_19.setObjectName("label_19") self.verticalLayout.addWidget(self.label_19) self.horizontalLayout_2.addLayout(self.verticalLayout) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.line = QtWidgets.QFrame(Form) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_2.addWidget(self.line) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setVerticalSpacing(6) self.gridLayout.setObjectName("gridLayout") self.label_13 = QtWidgets.QLabel(Form) self.label_13.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 0, 0, 1, 1) self.fSupplierName = QtWidgets.QLineEdit(Form) self.fSupplierName.setMinimumSize(QtCore.QSize(0, 25)) self.fSupplierName.setSizeIncrement(QtCore.QSize(0, 25)) self.fSupplierName.setClearButtonEnabled(True) self.fSupplierName.setObjectName("fSupplierName") self.gridLayout.addWidget(self.fSupplierName, 1, 1, 1, 1) self.fCelular = QtWidgets.QLineEdit(Form) self.fCelular.setMinimumSize(QtCore.QSize(0, 25)) self.fCelular.setSizeIncrement(QtCore.QSize(0, 25)) self.fCelular.setClearButtonEnabled(True) self.fCelular.setObjectName("fCelular") self.gridLayout.addWidget(self.fCelular, 4, 1, 1, 1) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setMinimumSize(QtCore.QSize(0, 25)) self.label_7.setSizeIncrement(QtCore.QSize(0, 25)) self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 3, 0, 1, 1) self.label_6 = QtWidgets.QLabel(Form) self.label_6.setMinimumSize(QtCore.QSize(0, 25)) self.label_6.setSizeIncrement(QtCore.QSize(0, 25)) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 1, 0, 1, 1) self.label_15 = QtWidgets.QLabel(Form) self.label_15.setMinimumSize(QtCore.QSize(0, 25)) self.label_15.setSizeIncrement(QtCore.QSize(0, 25)) self.label_15.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_15.setObjectName("label_15") self.gridLayout.addWidget(self.label_15, 9, 0, 1, 1) self.fEmail = QtWidgets.QLineEdit(Form) self.fEmail.setMinimumSize(QtCore.QSize(0, 25)) self.fEmail.setSizeIncrement(QtCore.QSize(0, 25)) self.fEmail.setClearButtonEnabled(True) self.fEmail.setObjectName("fEmail") self.gridLayout.addWidget(self.fEmail, 5, 1, 1, 1) self.fEndereco = QtWidgets.QLineEdit(Form) self.fEndereco.setMinimumSize(QtCore.QSize(0, 25)) self.fEndereco.setSizeIncrement(QtCore.QSize(0, 25)) self.fEndereco.setPlaceholderText("") self.fEndereco.setClearButtonEnabled(True) self.fEndereco.setObjectName("fEndereco") self.gridLayout.addWidget(self.fEndereco, 2, 1, 1, 1) self.fCity = QtWidgets.QLineEdit(Form) self.fCity.setMinimumSize(QtCore.QSize(0, 25)) self.fCity.setObjectName("fCity") self.gridLayout.addWidget(self.fCity, 6, 1, 1, 1) self.label_11 = QtWidgets.QLabel(Form) self.label_11.setMinimumSize(QtCore.QSize(0, 25)) self.label_11.setSizeIncrement(QtCore.QSize(0, 25)) self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 7, 0, 1, 1) self.fContato = QtWidgets.QLineEdit(Form) self.fContato.setMinimumSize(QtCore.QSize(0, 25)) self.fContato.setSizeIncrement(QtCore.QSize(0, 25)) self.fContato.setClearButtonEnabled(True) self.fContato.setObjectName("fContato") self.gridLayout.addWidget(self.fContato, 7, 1, 1, 1) self.label_5 = QtWidgets.QLabel(Form) self.label_5.setMinimumSize(QtCore.QSize(0, 25)) self.label_5.setSizeIncrement(QtCore.QSize(0, 25)) self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 6, 0, 1, 1) self.fNUIT = QtWidgets.QLineEdit(Form) self.fNUIT.setMinimumSize(QtCore.QSize(0, 25)) self.fNUIT.setSizeIncrement(QtCore.QSize(0, 25)) self.fNUIT.setObjectName("fNUIT") self.gridLayout.addWidget(self.fNUIT, 3, 1, 1, 1) self.label_16 = QtWidgets.QLabel(Form) self.label_16.setMinimumSize(QtCore.QSize(0, 25)) self.label_16.setSizeIncrement(QtCore.QSize(0, 25)) self.label_16.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_16.setObjectName("label_16") self.gridLayout.addWidget(self.label_16, 8, 0, 1, 1) self.fSupplierID = QtWidgets.QLineEdit(Form) self.fSupplierID.setMinimumSize(QtCore.QSize(0, 25)) self.fSupplierID.setSizeIncrement(QtCore.QSize(0, 25)) self.fSupplierID.setReadOnly(True) self.fSupplierID.setClearButtonEnabled(True) self.fSupplierID.setObjectName("fSupplierID") self.gridLayout.addWidget(self.fSupplierID, 0, 1, 1, 1) self.label_10 = QtWidgets.QLabel(Form) self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 4, 0, 1, 1) self.label_9 = QtWidgets.QLabel(Form) self.label_9.setMinimumSize(QtCore.QSize(0, 25)) self.label_9.setSizeIncrement(QtCore.QSize(0, 25)) self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1) self.label_20 = QtWidgets.QLabel(Form) self.label_20.setMinimumSize(QtCore.QSize(0, 25)) self.label_20.setSizeIncrement(QtCore.QSize(0, 25)) self.label_20.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_20.setObjectName("label_20") self.gridLayout.addWidget(self.label_20, 5, 0, 1, 1) self.fFax = QtWidgets.QLineEdit(Form) self.fFax.setMinimumSize(QtCore.QSize(0, 25)) self.fFax.setSizeIncrement(QtCore.QSize(0, 25)) self.fFax.setClearButtonEnabled(True) self.fFax.setObjectName("fFax") self.gridLayout.addWidget(self.fFax, 8, 1, 1, 1) self.fNote = QtWidgets.QTextEdit(Form) self.fNote.setMinimumSize(QtCore.QSize(50, 0)) self.fNote.setObjectName("fNote") self.gridLayout.addWidget(self.fNote, 9, 1, 1, 2) self.label_Tax_Registration = QtWidgets.QLabel(Form) self.label_Tax_Registration.setMinimumSize(QtCore.QSize(200, 242)) self.label_Tax_Registration.setMaximumSize(QtCore.QSize(200, 242)) self.label_Tax_Registration.setStyleSheet("border-width: 0.7px;border-style: solid") self.label_Tax_Registration.setScaledContents(True) self.label_Tax_Registration.setAlignment(QtCore.Qt.AlignCenter) self.label_Tax_Registration.setObjectName("label_Tax_Registration") self.gridLayout.addWidget(self.label_Tax_Registration, 0, 2, 8, 1) self.btn_SelectPic = QtWidgets.QPushButton(Form) self.btn_SelectPic.setObjectName("btn_SelectPic") self.gridLayout.addWidget(self.btn_SelectPic, 8, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.line_2 = QtWidgets.QFrame(Form) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout_2.addWidget(self.line_2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.fTaxRegCer = QtWidgets.QLineEdit(Form) self.fTaxRegCer.setEnabled(True) self.fTaxRegCer.setObjectName("fTaxRegCer") self.horizontalLayout.addWidget(self.fTaxRegCer) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.butSave = QtWidgets.QPushButton(Form) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("../res/ico/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSave.setIcon(icon) self.butSave.setIconSize(QtCore.QSize(16, 16)) self.butSave.setObjectName("butSave") self.horizontalLayout.addWidget(self.butSave) self.butCancel = QtWidgets.QPushButton(Form) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("../res/ico/printer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butCancel.setIcon(icon1) self.butCancel.setIconSize(QtCore.QSize(16, 16)) self.butCancel.setObjectName("butCancel") self.horizontalLayout.addWidget(self.butCancel) spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout_2.addLayout(self.horizontalLayout) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.fSupplierID, self.fSupplierName) Form.setTabOrder(self.fSupplierName, self.fEndereco) Form.setTabOrder(self.fEndereco, self.fNUIT) Form.setTabOrder(self.fNUIT, self.fCelular) Form.setTabOrder(self.fCelular, self.fEmail) Form.setTabOrder(self.fEmail, self.fCity) Form.setTabOrder(self.fCity, self.fContato) Form.setTabOrder(self.fContato, self.fFax) Form.setTabOrder(self.fFax, self.fNote) Form.setTabOrder(self.fNote, self.btn_SelectPic) Form.setTabOrder(self.btn_SelectPic, self.butSave) Form.setTabOrder(self.butSave, self.butCancel) Form.setTabOrder(self.butCancel, self.fTaxRegCer)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(661, 351) Form.setMaximumSize(QtCore.QSize(661, 500)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(10) Form.setFont(font) self.verticalLayout_2 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_2.setContentsMargins(6, 0, 6, 2) self.verticalLayout_2.setSpacing(2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 10) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_logo = QtWidgets.QLabel(Form) self.label_logo.setMinimumSize(QtCore.QSize(329, 60)) self.label_logo.setMaximumSize(QtCore.QSize(329, 60)) self.label_logo.setText("") self.label_logo.setPixmap(QtGui.QPixmap("../res/tmLogo100.png")) self.label_logo.setScaledContents(True) self.label_logo.setObjectName("label_logo") self.horizontalLayout_2.addWidget(self.label_logo) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.label_18 = QtWidgets.QLabel(Form) self.label_18.setMinimumSize(QtCore.QSize(0, 30)) self.label_18.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.label_18.setFont(font) self.label_18.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignHCenter) self.label_18.setObjectName("label_18") self.verticalLayout.addWidget(self.label_18) self.label_19 = QtWidgets.QLabel(Form) self.label_19.setMinimumSize(QtCore.QSize(0, 30)) self.label_19.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setFamily("Algerian") font.setPointSize(20) font.setBold(False) font.setWeight(50) self.label_19.setFont(font) self.label_19.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.label_19.setObjectName("label_19") self.verticalLayout.addWidget(self.label_19) self.horizontalLayout_2.addLayout(self.verticalLayout) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.line = QtWidgets.QFrame(Form) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_2.addWidget(self.line) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(Form) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 6, 0, 1, 1) self.fEnabled = QtWidgets.QCheckBox(Form) self.fEnabled.setText("") self.fEnabled.setObjectName("fEnabled") self.gridLayout.addWidget(self.fEnabled, 6, 1, 1, 1) self.label_14 = QtWidgets.QLabel(Form) self.label_14.setMinimumSize(QtCore.QSize(0, 25)) self.label_14.setSizeIncrement(QtCore.QSize(0, 25)) self.label_14.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_14.setObjectName("label_14") self.gridLayout.addWidget(self.label_14, 3, 0, 1, 1) self.fNickname = QtWidgets.QLineEdit(Form) self.fNickname.setMinimumSize(QtCore.QSize(0, 25)) self.fNickname.setSizeIncrement(QtCore.QSize(0, 25)) self.fNickname.setObjectName("fNickname") self.gridLayout.addWidget(self.fNickname, 2, 1, 1, 1) self.label_15 = QtWidgets.QLabel(Form) self.label_15.setMinimumSize(QtCore.QSize(0, 25)) self.label_15.setSizeIncrement(QtCore.QSize(0, 25)) self.label_15.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_15.setObjectName("label_15") self.gridLayout.addWidget(self.label_15, 5, 0, 1, 1) self.fDepartment = QtWidgets.QLineEdit(Form) self.fDepartment.setMinimumSize(QtCore.QSize(0, 25)) self.fDepartment.setSizeIncrement(QtCore.QSize(0, 25)) self.fDepartment.setClearButtonEnabled(True) self.fDepartment.setObjectName("fDepartment") self.gridLayout.addWidget(self.fDepartment, 3, 1, 1, 1) self.fUserID = QtWidgets.QLineEdit(Form) self.fUserID.setMinimumSize(QtCore.QSize(0, 25)) self.fUserID.setSizeIncrement(QtCore.QSize(0, 25)) self.fUserID.setReadOnly(True) self.fUserID.setClearButtonEnabled(True) self.fUserID.setObjectName("fUserID") self.gridLayout.addWidget(self.fUserID, 0, 1, 1, 1) self.label_12 = QtWidgets.QLabel(Form) self.label_12.setMinimumSize(QtCore.QSize(0, 25)) self.label_12.setSizeIncrement(QtCore.QSize(0, 25)) self.label_12.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_12.setObjectName("label_12") self.gridLayout.addWidget(self.label_12, 4, 0, 1, 1) self.fUsername = QtWidgets.QLineEdit(Form) self.fUsername.setMinimumSize(QtCore.QSize(0, 25)) self.fUsername.setSizeIncrement(QtCore.QSize(0, 25)) self.fUsername.setPlaceholderText("") self.fUsername.setClearButtonEnabled(True) self.fUsername.setObjectName("fUsername") self.gridLayout.addWidget(self.fUsername, 1, 1, 1, 1) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setMinimumSize(QtCore.QSize(0, 25)) self.label_7.setSizeIncrement(QtCore.QSize(0, 25)) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 2, 0, 1, 1) self.fNotes = QtWidgets.QLineEdit(Form) self.fNotes.setMinimumSize(QtCore.QSize(0, 25)) self.fNotes.setSizeIncrement(QtCore.QSize(0, 25)) self.fNotes.setClearButtonEnabled(True) self.fNotes.setObjectName("fNotes") self.gridLayout.addWidget(self.fNotes, 5, 1, 1, 1) self.label_13 = QtWidgets.QLabel(Form) self.label_13.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 0, 0, 1, 1) self.fPassword = QtWidgets.QLineEdit(Form) self.fPassword.setMinimumSize(QtCore.QSize(0, 25)) self.fPassword.setSizeIncrement(QtCore.QSize(0, 25)) self.fPassword.setEchoMode(QtWidgets.QLineEdit.Password) self.fPassword.setClearButtonEnabled(True) self.fPassword.setObjectName("fPassword") self.gridLayout.addWidget(self.fPassword, 4, 1, 1, 1) self.label_9 = QtWidgets.QLabel(Form) self.label_9.setMinimumSize(QtCore.QSize(0, 25)) self.label_9.setSizeIncrement(QtCore.QSize(0, 25)) self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 1, 0, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.line_2 = QtWidgets.QFrame(Form) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout_2.addWidget(self.line_2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.butSave = QtWidgets.QPushButton(Form) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("../res/ico/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSave.setIcon(icon) self.butSave.setIconSize(QtCore.QSize(16, 16)) self.butSave.setObjectName("butSave") self.horizontalLayout.addWidget(self.butSave) self.butCancel = QtWidgets.QPushButton(Form) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("../res/ico/printer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butCancel.setIcon(icon1) self.butCancel.setIconSize(QtCore.QSize(16, 16)) self.butCancel.setObjectName("butCancel") self.horizontalLayout.addWidget(self.butCancel) spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout_2.addLayout(self.horizontalLayout) self.retranslateUi(Form) self.butCancel.clicked.connect(Form.close) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(923, 493) Form.setMaximumSize(QtCore.QSize(1000, 500)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(10) Form.setFont(font) self.verticalLayout_2 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_2.setContentsMargins(6, 0, 6, 2) self.verticalLayout_2.setSpacing(2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setContentsMargins(-1, -1, -1, 10) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_logo = QtWidgets.QLabel(Form) self.label_logo.setMinimumSize(QtCore.QSize(329, 60)) self.label_logo.setMaximumSize(QtCore.QSize(329, 60)) self.label_logo.setText("") self.label_logo.setPixmap(QtGui.QPixmap("../res/tmLogo100.png")) self.label_logo.setScaledContents(True) self.label_logo.setObjectName("label_logo") self.horizontalLayout_6.addWidget(self.label_logo) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem) self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem1) self.label_23 = QtWidgets.QLabel(Form) self.label_23.setMinimumSize(QtCore.QSize(0, 30)) self.label_23.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.label_23.setFont(font) self.label_23.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing) self.label_23.setObjectName("label_23") self.horizontalLayout_5.addWidget(self.label_23) self.label_24 = QtWidgets.QLabel(Form) self.label_24.setMinimumSize(QtCore.QSize(0, 30)) self.label_24.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setFamily("Algerian") font.setPointSize(20) font.setBold(False) font.setWeight(50) self.label_24.setFont(font) self.label_24.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft) self.label_24.setObjectName("label_24") self.horizontalLayout_5.addWidget(self.label_24) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.verticalLayout_3.addLayout(self.horizontalLayout_5) self.label_25 = QtWidgets.QLabel(Form) self.label_25.setMinimumSize(QtCore.QSize(0, 30)) self.label_25.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setFamily("Algerian") font.setPointSize(16) self.label_25.setFont(font) self.label_25.setAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop) self.label_25.setObjectName("label_25") self.verticalLayout_3.addWidget(self.label_25) self.horizontalLayout_6.addLayout(self.verticalLayout_3) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem3) self.verticalLayout_2.addLayout(self.horizontalLayout_6) self.line = QtWidgets.QFrame(Form) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_2.addWidget(self.line) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setContentsMargins(3, -1, 0, 3) self.gridLayout.setSpacing(3) self.gridLayout.setObjectName("gridLayout") self.fCustomerID = QtWidgets.QComboBox(Form) self.fCustomerID.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.fCustomerID.setObjectName("fCustomerID") self.gridLayout.addWidget(self.fCustomerID, 0, 2, 1, 3) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setMinimumSize(QtCore.QSize(0, 25)) self.label_7.setSizeIncrement(QtCore.QSize(0, 25)) self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 0, 5, 1, 1) self.label_13 = QtWidgets.QLabel(Form) self.label_13.setMinimumSize(QtCore.QSize(0, 25)) self.label_13.setSizeIncrement(QtCore.QSize(0, 25)) self.label_13.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 3, 0, 1, 1) self.fCity = QtWidgets.QLineEdit(Form) self.fCity.setMinimumSize(QtCore.QSize(0, 25)) self.fCity.setSizeIncrement(QtCore.QSize(0, 25)) self.fCity.setReadOnly(True) self.fCity.setClearButtonEnabled(False) self.fCity.setObjectName("fCity") self.gridLayout.addWidget(self.fCity, 1, 6, 1, 1) self.label_20 = QtWidgets.QLabel(Form) self.label_20.setMinimumSize(QtCore.QSize(0, 25)) self.label_20.setSizeIncrement(QtCore.QSize(0, 25)) self.label_20.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_20.setObjectName("label_20") self.gridLayout.addWidget(self.label_20, 5, 0, 1, 1) self.label_9 = QtWidgets.QLabel(Form) self.label_9.setMinimumSize(QtCore.QSize(0, 25)) self.label_9.setSizeIncrement(QtCore.QSize(0, 25)) self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 1, 0, 1, 1) self.fCelular = QtWidgets.QLineEdit(Form) self.fCelular.setMinimumSize(QtCore.QSize(0, 25)) self.fCelular.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.fCelular.setSizeIncrement(QtCore.QSize(0, 25)) self.fCelular.setReadOnly(True) self.fCelular.setClearButtonEnabled(False) self.fCelular.setObjectName("fCelular") self.gridLayout.addWidget(self.fCelular, 2, 2, 1, 1) self.fReceiptDate = QtWidgets.QDateEdit(Form) self.fReceiptDate.setAlignment(QtCore.Qt.AlignCenter) self.fReceiptDate.setDateTime(QtCore.QDateTime(QtCore.QDate(1752, 9, 14), QtCore.QTime(0, 0, 0))) self.fReceiptDate.setCalendarPopup(True) self.fReceiptDate.setObjectName("fReceiptDate") self.gridLayout.addWidget(self.fReceiptDate, 4, 6, 1, 1) self.fPayeeID = QtWidgets.QComboBox(Form) self.fPayeeID.setObjectName("fPayeeID") self.gridLayout.addWidget(self.fPayeeID, 4, 4, 1, 1) self.fPaymentMethodID = QtWidgets.QComboBox(Form) self.fPaymentMethodID.setObjectName("fPaymentMethodID") self.gridLayout.addWidget(self.fPaymentMethodID, 4, 2, 1, 1) self.label_19 = QtWidgets.QLabel(Form) self.label_19.setMinimumSize(QtCore.QSize(0, 25)) self.label_19.setSizeIncrement(QtCore.QSize(0, 25)) self.label_19.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_19.setObjectName("label_19") self.gridLayout.addWidget(self.label_19, 4, 5, 1, 1) self.label_6 = QtWidgets.QLabel(Form) self.label_6.setMinimumSize(QtCore.QSize(0, 25)) self.label_6.setSizeIncrement(QtCore.QSize(0, 25)) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 0, 0, 1, 1) self.fAmountPayable = QtWidgets.QLineEdit(Form) self.fAmountPayable.setMinimumSize(QtCore.QSize(0, 25)) self.fAmountPayable.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.fAmountPayable.setSizeIncrement(QtCore.QSize(0, 25)) self.fAmountPayable.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.fAmountPayable.setClearButtonEnabled(False) self.fAmountPayable.setObjectName("fAmountPayable") self.gridLayout.addWidget(self.fAmountPayable, 3, 2, 1, 1) self.fAmountPaid = QtWidgets.QLineEdit(Form) self.fAmountPaid.setMinimumSize(QtCore.QSize(0, 25)) self.fAmountPaid.setSizeIncrement(QtCore.QSize(0, 25)) self.fAmountPaid.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.fAmountPaid.setClearButtonEnabled(False) self.fAmountPaid.setObjectName("fAmountPaid") self.gridLayout.addWidget(self.fAmountPaid, 3, 4, 1, 1) self.label_14 = QtWidgets.QLabel(Form) self.label_14.setMinimumSize(QtCore.QSize(0, 25)) self.label_14.setSizeIncrement(QtCore.QSize(0, 25)) self.label_14.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_14.setObjectName("label_14") self.gridLayout.addWidget(self.label_14, 3, 3, 1, 1) self.label_21 = QtWidgets.QLabel(Form) self.label_21.setMinimumSize(QtCore.QSize(0, 25)) self.label_21.setSizeIncrement(QtCore.QSize(0, 25)) self.label_21.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_21.setObjectName("label_21") self.gridLayout.addWidget(self.label_21, 7, 0, 1, 1) self.label_12 = QtWidgets.QLabel(Form) self.label_12.setMinimumSize(QtCore.QSize(0, 25)) self.label_12.setSizeIncrement(QtCore.QSize(0, 25)) self.label_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_12.setObjectName("label_12") self.gridLayout.addWidget(self.label_12, 2, 3, 1, 1) self.fAmountCollected = QtWidgets.QLineEdit(Form) self.fAmountCollected.setMinimumSize(QtCore.QSize(0, 100)) self.fAmountCollected.setSizeIncrement(QtCore.QSize(0, 100)) font = QtGui.QFont() font.setPointSize(24) self.fAmountCollected.setFont(font) self.fAmountCollected.setAlignment(QtCore.Qt.AlignCenter) self.fAmountCollected.setClearButtonEnabled(True) self.fAmountCollected.setObjectName("fAmountCollected") self.gridLayout.addWidget(self.fAmountCollected, 5, 2, 1, 5) self.fOrderID = QtWidgets.QComboBox(Form) self.fOrderID.setObjectName("fOrderID") self.gridLayout.addWidget(self.fOrderID, 6, 2, 1, 2) self.fNote = QtWidgets.QTextEdit(Form) self.fNote.setObjectName("fNote") self.gridLayout.addWidget(self.fNote, 7, 2, 1, 5) self.label_15 = QtWidgets.QLabel(Form) self.label_15.setMinimumSize(QtCore.QSize(0, 25)) self.label_15.setSizeIncrement(QtCore.QSize(0, 25)) self.label_15.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_15.setObjectName("label_15") self.gridLayout.addWidget(self.label_15, 2, 5, 2, 1) self.label_17 = QtWidgets.QLabel(Form) self.label_17.setMinimumSize(QtCore.QSize(0, 25)) self.label_17.setSizeIncrement(QtCore.QSize(0, 25)) self.label_17.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_17.setObjectName("label_17") self.gridLayout.addWidget(self.label_17, 4, 0, 1, 1) self.label_18 = QtWidgets.QLabel(Form) self.label_18.setMinimumSize(QtCore.QSize(0, 25)) self.label_18.setSizeIncrement(QtCore.QSize(0, 25)) self.label_18.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_18.setObjectName("label_18") self.gridLayout.addWidget(self.label_18, 4, 3, 1, 1) self.fNUIT = QtWidgets.QLineEdit(Form) self.fNUIT.setMinimumSize(QtCore.QSize(0, 25)) self.fNUIT.setSizeIncrement(QtCore.QSize(0, 25)) self.fNUIT.setReadOnly(True) self.fNUIT.setObjectName("fNUIT") self.gridLayout.addWidget(self.fNUIT, 0, 6, 1, 1) self.label_10 = QtWidgets.QLabel(Form) self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 2, 0, 1, 1) self.fArrears = QtWidgets.QLineEdit(Form) self.fArrears.setMinimumSize(QtCore.QSize(0, 40)) self.fArrears.setSizeIncrement(QtCore.QSize(0, 25)) font = QtGui.QFont() font.setPointSize(14) font.setBold(True) font.setWeight(75) self.fArrears.setFont(font) self.fArrears.setFocusPolicy(QtCore.Qt.NoFocus) self.fArrears.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.fArrears.setReadOnly(True) self.fArrears.setClearButtonEnabled(False) self.fArrears.setObjectName("fArrears") self.gridLayout.addWidget(self.fArrears, 2, 6, 2, 1) self.fTelefone = QtWidgets.QLineEdit(Form) self.fTelefone.setMinimumSize(QtCore.QSize(0, 25)) self.fTelefone.setSizeIncrement(QtCore.QSize(0, 25)) self.fTelefone.setReadOnly(True) self.fTelefone.setClearButtonEnabled(False) self.fTelefone.setObjectName("fTelefone") self.gridLayout.addWidget(self.fTelefone, 2, 4, 1, 1) self.label = QtWidgets.QLabel(Form) self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 6, 0, 1, 1) self.label_8 = QtWidgets.QLabel(Form) self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 1, 5, 1, 1) self.fEndereco = QtWidgets.QLineEdit(Form) self.fEndereco.setMinimumSize(QtCore.QSize(0, 25)) self.fEndereco.setSizeIncrement(QtCore.QSize(0, 25)) self.fEndereco.setReadOnly(True) self.fEndereco.setPlaceholderText("") self.fEndereco.setClearButtonEnabled(False) self.fEndereco.setObjectName("fEndereco") self.gridLayout.addWidget(self.fEndereco, 1, 2, 1, 3) self.verticalLayout_2.addLayout(self.gridLayout) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setContentsMargins(-1, 10, -1, 10) self.verticalLayout.setObjectName("verticalLayout") self.line_2 = QtWidgets.QFrame(Form) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout.addWidget(self.line_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setContentsMargins(-1, 10, -1, -1) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.fID = QtWidgets.QLineEdit(Form) self.fID.setMaximumSize(QtCore.QSize(30, 16777215)) self.fID.setReadOnly(True) self.fID.setObjectName("fID") self.horizontalLayout_3.addWidget(self.fID) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem4) self.butSave = QtWidgets.QPushButton(Form) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("../res/ico/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSave.setIcon(icon) self.butSave.setIconSize(QtCore.QSize(16, 16)) self.butSave.setObjectName("butSave") self.horizontalLayout_3.addWidget(self.butSave) self.butCancel = QtWidgets.QPushButton(Form) self.butCancel.setEnabled(True) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("../res/ico/printer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butCancel.setIcon(icon1) self.butCancel.setIconSize(QtCore.QSize(16, 16)) self.butCancel.setObjectName("butCancel") self.horizontalLayout_3.addWidget(self.butCancel) spacerItem5 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem5) self.verticalLayout.addLayout(self.horizontalLayout_3) self.verticalLayout_2.addLayout(self.verticalLayout) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.fCustomerID, self.fNUIT) Form.setTabOrder(self.fNUIT, self.fEndereco) Form.setTabOrder(self.fEndereco, self.fCelular) Form.setTabOrder(self.fCelular, self.fTelefone) Form.setTabOrder(self.fTelefone, self.fAmountPayable) Form.setTabOrder(self.fAmountPayable, self.fAmountPaid) Form.setTabOrder(self.fAmountPaid, self.fPaymentMethodID) Form.setTabOrder(self.fPaymentMethodID, self.fPayeeID) Form.setTabOrder(self.fPayeeID, self.fReceiptDate) Form.setTabOrder(self.fReceiptDate, self.fAmountCollected) Form.setTabOrder(self.fAmountCollected, self.fOrderID) Form.setTabOrder(self.fOrderID, self.fNote) Form.setTabOrder(self.fNote, self.butSave) Form.setTabOrder(self.butSave, self.butCancel) Form.setTabOrder(self.butCancel, self.fID)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(688, 298) Form.setMaximumSize(QtCore.QSize(800, 600)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(10) Form.setFont(font) self.verticalLayout_2 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 10) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_logo = QtWidgets.QLabel(Form) self.label_logo.setMinimumSize(QtCore.QSize(329, 60)) self.label_logo.setMaximumSize(QtCore.QSize(329, 60)) self.label_logo.setText("") self.label_logo.setPixmap(QtGui.QPixmap("../res/gaoke.png")) self.label_logo.setScaledContents(True) self.label_logo.setObjectName("label_logo") self.horizontalLayout_2.addWidget(self.label_logo) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.label_18 = QtWidgets.QLabel(Form) self.label_18.setMinimumSize(QtCore.QSize(0, 30)) self.label_18.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.label_18.setFont(font) self.label_18.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignHCenter) self.label_18.setObjectName("label_18") self.verticalLayout.addWidget(self.label_18) self.label_19 = QtWidgets.QLabel(Form) self.label_19.setMinimumSize(QtCore.QSize(0, 30)) self.label_19.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setFamily("Algerian") font.setPointSize(20) font.setBold(False) font.setWeight(50) self.label_19.setFont(font) self.label_19.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.label_19.setObjectName("label_19") self.verticalLayout.addWidget(self.label_19) self.horizontalLayout_2.addLayout(self.verticalLayout) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.line = QtWidgets.QFrame(Form) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_2.addWidget(self.line) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.statistician = QtWidgets.QLineEdit(Form) self.statistician.setMinimumSize(QtCore.QSize(0, 25)) self.statistician.setObjectName("statistician") self.gridLayout.addWidget(self.statistician, 3, 1, 1, 1) self.label_16 = QtWidgets.QLabel(Form) self.label_16.setMinimumSize(QtCore.QSize(0, 25)) self.label_16.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_16.setObjectName("label_16") self.gridLayout.addWidget(self.label_16, 4, 0, 1, 1) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setMinimumSize(QtCore.QSize(0, 25)) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1) self.org_name = QtWidgets.QLineEdit(Form) self.org_name.setMinimumSize(QtCore.QSize(0, 25)) self.org_name.setObjectName("org_name") self.gridLayout.addWidget(self.org_name, 1, 1, 1, 1) self.label_15 = QtWidgets.QLabel(Form) self.label_15.setMinimumSize(QtCore.QSize(0, 25)) self.label_15.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_15.setObjectName("label_15") self.gridLayout.addWidget(self.label_15, 0, 0, 1, 1) self.org_simple_name = QtWidgets.QLineEdit(Form) self.org_simple_name.setMinimumSize(QtCore.QSize(0, 25)) self.org_simple_name.setText("") self.org_simple_name.setObjectName("org_simple_name") self.gridLayout.addWidget(self.org_simple_name, 2, 1, 1, 1) self.org_pk = QtWidgets.QLineEdit(Form) self.org_pk.setEnabled(False) self.org_pk.setMinimumSize(QtCore.QSize(0, 25)) self.org_pk.setText("") self.org_pk.setObjectName("org_pk") self.gridLayout.addWidget(self.org_pk, 0, 1, 1, 1) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setMinimumSize(QtCore.QSize(0, 25)) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) self.label = QtWidgets.QLabel(Form) self.label.setMinimumSize(QtCore.QSize(0, 25)) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.org_parent = QtWidgets.QComboBox(Form) self.org_parent.setMinimumSize(QtCore.QSize(0, 25)) self.org_parent.setObjectName("org_parent") self.gridLayout.addWidget(self.org_parent, 4, 1, 1, 2) self.verticalLayout_2.addLayout(self.gridLayout) self.line_2 = QtWidgets.QFrame(Form) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout_2.addWidget(self.line_2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.butSave = QtWidgets.QPushButton(Form) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("../res/ico/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSave.setIcon(icon) self.butSave.setIconSize(QtCore.QSize(16, 16)) self.butSave.setObjectName("butSave") self.horizontalLayout.addWidget(self.butSave) self.butCancel = QtWidgets.QPushButton(Form) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("../res/ico/printer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butCancel.setIcon(icon1) self.butCancel.setIconSize(QtCore.QSize(16, 16)) self.butCancel.setObjectName("butCancel") self.horizontalLayout.addWidget(self.butCancel) spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout_2.addLayout(self.horizontalLayout) self.retranslateUi(Form) self.butCancel.clicked.connect(Form.close) QtCore.QMetaObject.connectSlotsByName(Form)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(1261, 842) Form.setMaximumSize(QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(10) Form.setFont(font) self.verticalLayout_3 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 10) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_logo = QtWidgets.QLabel(Form) self.label_logo.setMinimumSize(QtCore.QSize(329, 40)) self.label_logo.setMaximumSize(QtCore.QSize(329, 50)) self.label_logo.setText("") self.label_logo.setPixmap(QtGui.QPixmap("../res/gaoke.png")) self.label_logo.setScaledContents(True) self.label_logo.setObjectName("label_logo") self.horizontalLayout_2.addWidget(self.label_logo) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.label_18 = QtWidgets.QLabel(Form) self.label_18.setMinimumSize(QtCore.QSize(0, 30)) self.label_18.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.label_18.setFont(font) self.label_18.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignHCenter) self.label_18.setObjectName("label_18") self.verticalLayout.addWidget(self.label_18) self.label_19 = QtWidgets.QLabel(Form) self.label_19.setMinimumSize(QtCore.QSize(0, 30)) self.label_19.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setFamily("Algerian") font.setPointSize(20) font.setBold(False) font.setWeight(50) self.label_19.setFont(font) self.label_19.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.label_19.setObjectName("label_19") self.verticalLayout.addWidget(self.label_19) self.horizontalLayout_2.addLayout(self.verticalLayout) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.line = QtWidgets.QFrame(Form) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_3.addWidget(self.line) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setVerticalSpacing(6) self.gridLayout.setObjectName("gridLayout") self.label_20 = QtWidgets.QLabel(Form) self.label_20.setMinimumSize(QtCore.QSize(0, 25)) self.label_20.setSizeIncrement(QtCore.QSize(0, 25)) self.label_20.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_20.setObjectName("label_20") self.gridLayout.addWidget(self.label_20, 5, 0, 1, 1) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setMinimumSize(QtCore.QSize(0, 25)) self.label_7.setSizeIncrement(QtCore.QSize(0, 25)) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 3, 0, 1, 1) self.label_10 = QtWidgets.QLabel(Form) self.label_10.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 4, 0, 1, 1) self.issuing_date = QtWidgets.QDateEdit(Form) self.issuing_date.setMinimumSize(QtCore.QSize(90, 25)) self.issuing_date.setSizeIncrement(QtCore.QSize(0, 25)) self.issuing_date.setAlignment(QtCore.Qt.AlignCenter) self.issuing_date.setCalendarPopup(True) self.issuing_date.setObjectName("issuing_date") self.gridLayout.addWidget(self.issuing_date, 0, 4, 1, 1) self.title = QtWidgets.QLineEdit(Form) self.title.setMinimumSize(QtCore.QSize(0, 25)) self.title.setSizeIncrement(QtCore.QSize(0, 25)) self.title.setClearButtonEnabled(True) self.title.setObjectName("title") self.gridLayout.addWidget(self.title, 4, 2, 1, 5) self.key_words = QtWidgets.QLineEdit(Form) self.key_words.setMinimumSize(QtCore.QSize(0, 25)) self.key_words.setSizeIncrement(QtCore.QSize(0, 25)) self.key_words.setClearButtonEnabled(True) self.key_words.setObjectName("key_words") self.gridLayout.addWidget(self.key_words, 5, 2, 1, 5) self.issuing = QtWidgets.QLineEdit(Form) self.issuing.setMinimumSize(QtCore.QSize(0, 25)) self.issuing.setSizeIncrement(QtCore.QSize(0, 25)) self.issuing.setClearButtonEnabled(True) self.issuing.setObjectName("issuing") self.gridLayout.addWidget(self.issuing, 3, 2, 1, 5) self.fUserID = QtWidgets.QLineEdit(Form) self.fUserID.setMinimumSize(QtCore.QSize(0, 25)) self.fUserID.setMaximumSize(QtCore.QSize(20, 16777215)) self.fUserID.setSizeIncrement(QtCore.QSize(0, 25)) self.fUserID.setReadOnly(True) self.fUserID.setClearButtonEnabled(True) self.fUserID.setObjectName("fUserID") self.gridLayout.addWidget(self.fUserID, 1, 0, 1, 1) self.label_16 = QtWidgets.QLabel(Form) self.label_16.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_16.setObjectName("label_16") self.gridLayout.addWidget(self.label_16, 2, 0, 1, 1) self.archive_fulltext = QtWidgets.QTextEdit(Form) self.archive_fulltext.setMinimumSize(QtCore.QSize(50, 0)) self.archive_fulltext.setObjectName("archive_fulltext") self.gridLayout.addWidget(self.archive_fulltext, 8, 2, 1, 5) self.archives_pk = QtWidgets.QLineEdit(Form) self.archives_pk.setMinimumSize(QtCore.QSize(0, 25)) self.archives_pk.setSizeIncrement(QtCore.QSize(0, 25)) self.archives_pk.setReadOnly(True) self.archives_pk.setClearButtonEnabled(True) self.archives_pk.setObjectName("archives_pk") self.gridLayout.addWidget(self.archives_pk, 0, 2, 1, 1) self.label_6 = QtWidgets.QLabel(Form) self.label_6.setMinimumSize(QtCore.QSize(0, 25)) self.label_6.setSizeIncrement(QtCore.QSize(0, 25)) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 0, 3, 1, 1) self.archive_type = QtWidgets.QComboBox(Form) self.archive_type.setMinimumSize(QtCore.QSize(200, 25)) self.archive_type.setObjectName("archive_type") self.gridLayout.addWidget(self.archive_type, 0, 6, 1, 1) self.label_5 = QtWidgets.QLabel(Form) self.label_5.setMinimumSize(QtCore.QSize(0, 25)) self.label_5.setSizeIncrement(QtCore.QSize(0, 25)) self.label_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 7, 0, 1, 1) self.archive_no = QtWidgets.QLineEdit(Form) self.archive_no.setMinimumSize(QtCore.QSize(0, 25)) self.archive_no.setClearButtonEnabled(True) self.archive_no.setObjectName("archive_no") self.gridLayout.addWidget(self.archive_no, 2, 2, 1, 5) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setSpacing(3) self.verticalLayout_2.setObjectName("verticalLayout_2") self.label_14 = QtWidgets.QLabel(Form) self.label_14.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.label_14.setObjectName("label_14") self.verticalLayout_2.addWidget(self.label_14) self.listWidget = QtWidgets.QListWidget(Form) self.listWidget.setMinimumSize(QtCore.QSize(500, 0)) self.listWidget.setObjectName("listWidget") self.verticalLayout_2.addWidget(self.listWidget) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setSpacing(3) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.btn_Download = QtWidgets.QPushButton(Form) self.btn_Download.setObjectName("btn_Download") self.horizontalLayout_3.addWidget(self.btn_Download) self.btn_Add = QtWidgets.QPushButton(Form) self.btn_Add.setObjectName("btn_Add") self.horizontalLayout_3.addWidget(self.btn_Add) self.btn_Delete = QtWidgets.QPushButton(Form) self.btn_Delete.setObjectName("btn_Delete") self.horizontalLayout_3.addWidget(self.btn_Delete) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.gridLayout.addLayout(self.verticalLayout_2, 0, 7, 9, 1) self.label_13 = QtWidgets.QLabel(Form) self.label_13.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 0, 0, 1, 1) self.archive_describe = QtWidgets.QTextEdit(Form) self.archive_describe.setMinimumSize(QtCore.QSize(50, 0)) self.archive_describe.setObjectName("archive_describe") self.gridLayout.addWidget(self.archive_describe, 7, 2, 1, 5) self.label = QtWidgets.QLabel(Form) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 6, 0, 1, 1) self.label_9 = QtWidgets.QLabel(Form) self.label_9.setMinimumSize(QtCore.QSize(0, 25)) self.label_9.setSizeIncrement(QtCore.QSize(0, 25)) self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 0, 5, 1, 1) self.label_15 = QtWidgets.QLabel(Form) self.label_15.setMinimumSize(QtCore.QSize(0, 25)) self.label_15.setSizeIncrement(QtCore.QSize(0, 25)) self.label_15.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_15.setObjectName("label_15") self.gridLayout.addWidget(self.label_15, 8, 0, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.is_task_source = QtWidgets.QCheckBox(Form) self.is_task_source.setObjectName("is_task_source") self.horizontalLayout_4.addWidget(self.is_task_source) self.is_formalities = QtWidgets.QCheckBox(Form) self.is_formalities.setObjectName("is_formalities") self.horizontalLayout_4.addWidget(self.is_formalities) self.is_progress = QtWidgets.QCheckBox(Form) self.is_progress.setObjectName("is_progress") self.horizontalLayout_4.addWidget(self.is_progress) self.gridLayout.addLayout(self.horizontalLayout_4, 1, 2, 1, 5) self.label_ProjectLink = QtWidgets.QLabel(Form) self.label_ProjectLink.setStyleSheet( "border:1px groove gray;border-radius:3px;padding:2px 4px;\n" "border-width: 1px;border-style: solid;\n" "background-color: white;\n" "/*border-color: rgb(255, 170, 0);*/\n" "\n" "") self.label_ProjectLink.setText("") self.label_ProjectLink.setObjectName("label_ProjectLink") self.gridLayout.addWidget(self.label_ProjectLink, 6, 2, 1, 5) self.verticalLayout_3.addLayout(self.gridLayout) self.line_2 = QtWidgets.QFrame(Form) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout_3.addWidget(self.line_2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.Label_Info = QtWidgets.QLabel(Form) self.Label_Info.setStyleSheet("color: rgb(255, 0, 0);") self.Label_Info.setText("") self.Label_Info.setObjectName("Label_Info") self.horizontalLayout.addWidget(self.Label_Info) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.butSave = QtWidgets.QPushButton(Form) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("../res/ico/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSave.setIcon(icon) self.butSave.setIconSize(QtCore.QSize(16, 16)) self.butSave.setObjectName("butSave") self.horizontalLayout.addWidget(self.butSave) self.butCancel = QtWidgets.QPushButton(Form) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("../res/ico/printer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butCancel.setIcon(icon1) self.butCancel.setIconSize(QtCore.QSize(16, 16)) self.butCancel.setObjectName("butCancel") self.horizontalLayout.addWidget(self.butCancel) self.but_SelectProject = QtWidgets.QPushButton(Form) self.but_SelectProject.setObjectName("but_SelectProject") self.horizontalLayout.addWidget(self.but_SelectProject) spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout_3.addLayout(self.horizontalLayout) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.archives_pk, self.issuing) Form.setTabOrder(self.issuing, self.title) Form.setTabOrder(self.title, self.key_words) Form.setTabOrder(self.key_words, self.archive_fulltext) Form.setTabOrder(self.archive_fulltext, self.butSave) Form.setTabOrder(self.butSave, self.butCancel)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(682, 287) Form.setMaximumSize(QtCore.QSize(762, 500)) font = QtGui.QFont() font.setFamily("Arial") font.setPointSize(10) Form.setFont(font) self.verticalLayout_2 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_2.setContentsMargins(6, 0, 6, 2) self.verticalLayout_2.setSpacing(2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setContentsMargins(-1, -1, -1, 10) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_logo = QtWidgets.QLabel(Form) self.label_logo.setMinimumSize(QtCore.QSize(329, 60)) self.label_logo.setMaximumSize(QtCore.QSize(329, 60)) self.label_logo.setText("") self.label_logo.setPixmap(QtGui.QPixmap("../res/tmLogo100.png")) self.label_logo.setScaledContents(True) self.label_logo.setObjectName("label_logo") self.horizontalLayout_6.addWidget(self.label_logo) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem) self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem1) self.label_23 = QtWidgets.QLabel(Form) self.label_23.setMinimumSize(QtCore.QSize(0, 30)) self.label_23.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setWeight(75) self.label_23.setFont(font) self.label_23.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing) self.label_23.setObjectName("label_23") self.horizontalLayout_5.addWidget(self.label_23) self.label_24 = QtWidgets.QLabel(Form) self.label_24.setMinimumSize(QtCore.QSize(0, 30)) self.label_24.setMaximumSize(QtCore.QSize(16777215, 30)) font = QtGui.QFont() font.setFamily("Algerian") font.setPointSize(20) font.setBold(False) font.setWeight(50) self.label_24.setFont(font) self.label_24.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft) self.label_24.setObjectName("label_24") self.horizontalLayout_5.addWidget(self.label_24) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.verticalLayout_3.addLayout(self.horizontalLayout_5) self.horizontalLayout_6.addLayout(self.verticalLayout_3) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem3) self.verticalLayout_2.addLayout(self.horizontalLayout_6) self.line = QtWidgets.QFrame(Form) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_2.addWidget(self.line) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setContentsMargins(3, -1, 0, 3) self.gridLayout.setSpacing(3) self.gridLayout.setObjectName("gridLayout") self.fTitle = QtWidgets.QLineEdit(Form) self.fTitle.setMinimumSize(QtCore.QSize(0, 25)) self.fTitle.setSizeIncrement(QtCore.QSize(0, 25)) self.fTitle.setReadOnly(False) self.fTitle.setPlaceholderText("") self.fTitle.setClearButtonEnabled(True) self.fTitle.setObjectName("fTitle") self.gridLayout.addWidget(self.fTitle, 1, 2, 1, 2) self.label_9 = QtWidgets.QLabel(Form) self.label_9.setMinimumSize(QtCore.QSize(0, 25)) self.label_9.setSizeIncrement(QtCore.QSize(0, 25)) self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 1, 0, 1, 1) self.fSpare2 = QtWidgets.QLineEdit(Form) self.fSpare2.setMinimumSize(QtCore.QSize(0, 25)) self.fSpare2.setSizeIncrement(QtCore.QSize(0, 25)) self.fSpare2.setClearButtonEnabled(True) self.fSpare2.setObjectName("fSpare2") self.gridLayout.addWidget(self.fSpare2, 3, 2, 1, 1) self.label_6 = QtWidgets.QLabel(Form) self.label_6.setMinimumSize(QtCore.QSize(0, 25)) self.label_6.setSizeIncrement(QtCore.QSize(0, 25)) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 0, 0, 1, 1) self.label_13 = QtWidgets.QLabel(Form) self.label_13.setMinimumSize(QtCore.QSize(0, 25)) self.label_13.setSizeIncrement(QtCore.QSize(0, 25)) self.label_13.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 3, 0, 1, 1) self.label_17 = QtWidgets.QLabel(Form) self.label_17.setMinimumSize(QtCore.QSize(0, 25)) self.label_17.setSizeIncrement(QtCore.QSize(0, 25)) self.label_17.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_17.setObjectName("label_17") self.gridLayout.addWidget(self.label_17, 4, 0, 1, 1) self.fTypeID = QtWidgets.QComboBox(Form) self.fTypeID.setObjectName("fTypeID") self.gridLayout.addWidget(self.fTypeID, 0, 2, 1, 1) self.fNote = QtWidgets.QLineEdit(Form) self.fNote.setMinimumSize(QtCore.QSize(0, 25)) self.fNote.setSizeIncrement(QtCore.QSize(0, 25)) self.fNote.setClearButtonEnabled(True) self.fNote.setObjectName("fNote") self.gridLayout.addWidget(self.fNote, 4, 2, 1, 1) self.label_8 = QtWidgets.QLabel(Form) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) self.fSpare1 = QtWidgets.QLineEdit(Form) self.fSpare1.setMinimumSize(QtCore.QSize(0, 25)) self.fSpare1.setSizeIncrement(QtCore.QSize(0, 25)) self.fSpare1.setReadOnly(False) self.fSpare1.setClearButtonEnabled(True) self.fSpare1.setObjectName("fSpare1") self.gridLayout.addWidget(self.fSpare1, 2, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setContentsMargins(-1, 10, -1, 10) self.verticalLayout.setObjectName("verticalLayout") self.line_2 = QtWidgets.QFrame(Form) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout.addWidget(self.line_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setContentsMargins(-1, 10, -1, -1) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.fItemID = QtWidgets.QLineEdit(Form) self.fItemID.setMaximumSize(QtCore.QSize(30, 16777215)) self.fItemID.setReadOnly(True) self.fItemID.setObjectName("fItemID") self.horizontalLayout_3.addWidget(self.fItemID) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem4) self.butPDF = QtWidgets.QPushButton(Form) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("../res/ico/pdf.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butPDF.setIcon(icon) self.butPDF.setIconSize(QtCore.QSize(16, 16)) self.butPDF.setObjectName("butPDF") self.horizontalLayout_3.addWidget(self.butPDF) self.butPrint = QtWidgets.QPushButton(Form) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("../res/ico/printer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butPrint.setIcon(icon1) self.butPrint.setIconSize(QtCore.QSize(16, 16)) self.butPrint.setObjectName("butPrint") self.horizontalLayout_3.addWidget(self.butPrint) self.butSave = QtWidgets.QPushButton(Form) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap("../res/ico/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSave.setIcon(icon2) self.butSave.setIconSize(QtCore.QSize(16, 16)) self.butSave.setObjectName("butSave") self.horizontalLayout_3.addWidget(self.butSave) spacerItem5 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem5) self.verticalLayout.addLayout(self.horizontalLayout_3) self.verticalLayout_2.addLayout(self.verticalLayout) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.fTypeID, self.fTitle) Form.setTabOrder(self.fTitle, self.fSpare1) Form.setTabOrder(self.fSpare1, self.fSpare2) Form.setTabOrder(self.fSpare2, self.fNote) Form.setTabOrder(self.fNote, self.butPDF) Form.setTabOrder(self.butPDF, self.butPrint) Form.setTabOrder(self.butPrint, self.butSave) Form.setTabOrder(self.butSave, self.fItemID)