def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(230, 86) self.gridLayout = QtGui.QGridLayout(Dialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lblPeriod = QtGui.QLabel(Dialog) self.lblPeriod.setObjectName(_fromUtf8("lblPeriod")) self.gridLayout.addWidget(self.lblPeriod, 0, 0, 1, 2) self.lblBegDate = QtGui.QLabel(Dialog) self.lblBegDate.setObjectName(_fromUtf8("lblBegDate")) self.gridLayout.addWidget(self.lblBegDate, 1, 0, 1, 1) self.edtBegDate = QtGui.QDateEdit(Dialog) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 1, 1, 1, 1) self.lblEndDate = QtGui.QLabel(Dialog) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 1, 2, 1, 1) self.edtEndDate = QtGui.QDateEdit(Dialog) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 1, 3, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 2, 1, 1, 3) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(414, 303) self.label = QtGui.QLabel(Dialog) self.label.setGeometry(QtCore.QRect(30, 75, 72, 15)) self.label.setObjectName(_fromUtf8("label")) self.cstart_date = QtGui.QDateEdit(Dialog) self.cstart_date.setGeometry(QtCore.QRect(135, 60, 110, 22)) self.cstart_date.setObjectName(_fromUtf8("cstart_date")) self.cend_date = QtGui.QDateEdit(Dialog) self.cend_date.setGeometry(QtCore.QRect(135, 105, 110, 22)) self.cend_date.setObjectName(_fromUtf8("cend_date")) self.label_2 = QtGui.QLabel(Dialog) self.label_2.setGeometry(QtCore.QRect(30, 105, 72, 15)) self.label_2.setObjectName(_fromUtf8("label_2")) self.groupBox = QtGui.QGroupBox(Dialog) self.groupBox.setGeometry(QtCore.QRect(15, 15, 271, 166)) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.pushButton = QtGui.QPushButton(Dialog) self.pushButton.setGeometry(QtCore.QRect(285, 225, 93, 28)) self.pushButton.setObjectName(_fromUtf8("pushButton")) self.groupBox.raise_() self.label.raise_() self.cstart_date.raise_() self.cend_date.raise_() self.label_2.raise_() self.pushButton.raise_() self.retranslateUi(Dialog) QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), Dialog.slot_sure_clicked) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, ReportLeavedClients): ReportLeavedClients.setObjectName(_fromUtf8("ReportLeavedClients")) ReportLeavedClients.resize(319, 138) self.gridLayout = QtGui.QGridLayout(ReportLeavedClients) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.buttonBox = QtGui.QDialogButtonBox(ReportLeavedClients) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 4, 1, 1, 1) self.edtEndDate = QtGui.QDateEdit(ReportLeavedClients) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 2, 1, 1, 1) self.label = QtGui.QLabel(ReportLeavedClients) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.edtBegDate = QtGui.QDateEdit(ReportLeavedClients) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 0, 1, 1, 1) self.label_2 = QtGui.QLabel(ReportLeavedClients) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) self.retranslateUi(ReportLeavedClients) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ReportLeavedClients.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ReportLeavedClients.reject) QtCore.QMetaObject.connectSlotsByName(ReportLeavedClients)
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(830, 726) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.date_start = QtGui.QDateEdit(self.centralwidget) self.date_start.setObjectName(_fromUtf8("date_start")) self.gridLayout.addWidget(self.date_start, 0, 0, 1, 1) self.table_insurances = QtGui.QTableWidget(self.centralwidget) self.table_insurances.setEditTriggers( QtGui.QAbstractItemView.NoEditTriggers) self.table_insurances.setObjectName(_fromUtf8("table_insurances")) self.table_insurances.setColumnCount(0) self.table_insurances.setRowCount(0) self.gridLayout.addWidget(self.table_insurances, 1, 0, 1, 6) self.date_end = QtGui.QDateEdit(self.centralwidget) self.date_end.setObjectName(_fromUtf8("date_end")) self.gridLayout.addWidget(self.date_end, 0, 1, 1, 1) self.btn_finish = QtGui.QPushButton(self.centralwidget) self.btn_finish.setObjectName(_fromUtf8("btn_finish")) self.gridLayout.addWidget(self.btn_finish, 0, 5, 1, 1) self.btn_export = QtGui.QPushButton(self.centralwidget) self.btn_export.setObjectName(_fromUtf8("btn_export")) self.gridLayout.addWidget(self.btn_export, 0, 2, 1, 1) self.label_status = QtGui.QLabel(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_status.sizePolicy().hasHeightForWidth()) self.label_status.setSizePolicy(sizePolicy) self.label_status.setObjectName(_fromUtf8("label_status")) self.gridLayout.addWidget(self.label_status, 0, 3, 1, 1, QtCore.Qt.AlignRight) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 4, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 830, 23)) self.menubar.setObjectName(_fromUtf8("menubar")) self.menu = QtGui.QMenu(self.menubar) self.menu.setObjectName(_fromUtf8("menu")) MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.act_cleardb = QtGui.QAction(MainWindow) self.act_cleardb.setObjectName(_fromUtf8("act_cleardb")) self.act_clearlog = QtGui.QAction(MainWindow) self.act_clearlog.setObjectName(_fromUtf8("act_clearlog")) self.menu.addAction(self.act_cleardb) self.menu.addAction(self.act_clearlog) self.menubar.addAction(self.menu.menuAction()) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def setupUi(self, Reserva): Reserva.setObjectName(_fromUtf8("Reserva")) Reserva.resize(602, 352) self.gridLayoutWidget_2 = QtGui.QWidget(Reserva) self.gridLayoutWidget_2.setGeometry(QtCore.QRect(50, 50, 311, 151)) self.gridLayoutWidget_2.setObjectName(_fromUtf8("gridLayoutWidget_2")) self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget_2) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_4 = QtGui.QLabel(self.gridLayoutWidget_2) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1) self.tipo_hab = QtGui.QComboBox(self.gridLayoutWidget_2) self.tipo_hab.setObjectName(_fromUtf8("tipo_hab")) self.gridLayout_2.addWidget(self.tipo_hab, 2, 1, 1, 1) self.label = QtGui.QLabel(self.gridLayoutWidget_2) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1) self.fecha_entrada = QtGui.QDateEdit(self.gridLayoutWidget_2) self.fecha_entrada.setDate(QtCore.QDate(2015, 10, 29)) self.fecha_entrada.setCalendarPopup(True) self.fecha_entrada.setObjectName(_fromUtf8("fecha_entrada")) self.gridLayout_2.addWidget(self.fecha_entrada, 0, 1, 1, 1) self.fecha_salida = QtGui.QDateEdit(self.gridLayoutWidget_2) self.fecha_salida.setDate(QtCore.QDate(2015, 10, 29)) self.fecha_salida.setCalendarPopup(True) self.fecha_salida.setObjectName(_fromUtf8("fecha_salida")) self.gridLayout_2.addWidget(self.fecha_salida, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(self.gridLayoutWidget_2) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.label_5 = QtGui.QLabel(self.gridLayoutWidget_2) self.label_5.setText(_fromUtf8("")) self.label_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_2.addWidget(self.label_5, 3, 0, 1, 1) self.plaza_garaje = QtGui.QRadioButton(self.gridLayoutWidget_2) self.plaza_garaje.setObjectName(_fromUtf8("plaza_garaje")) self.gridLayout_2.addWidget(self.plaza_garaje, 3, 1, 1, 1) self.salida = QtGui.QLabel(Reserva) self.salida.setGeometry(QtCore.QRect(50, 250, 501, 41)) self.salida.setFrameShape(QtGui.QFrame.StyledPanel) self.salida.setAlignment(QtCore.Qt.AlignCenter) self.salida.setObjectName(_fromUtf8("salida")) self.reservar = QtGui.QPushButton(Reserva) self.reservar.setGeometry(QtCore.QRect(390, 50, 161, 151)) self.reservar.setObjectName(_fromUtf8("reservar")) self.retranslateUi(Reserva) QtCore.QMetaObject.connectSlotsByName(Reserva)
def setupUi(self, ReportF13SetupDialog): ReportF13SetupDialog.setObjectName(_fromUtf8("ReportF13SetupDialog")) ReportF13SetupDialog.setWindowModality(QtCore.Qt.ApplicationModal) ReportF13SetupDialog.resize(394, 224) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(ReportF13SetupDialog.sizePolicy().hasHeightForWidth()) ReportF13SetupDialog.setSizePolicy(sizePolicy) ReportF13SetupDialog.setSizeGripEnabled(True) self.gridLayout = QtGui.QGridLayout(ReportF13SetupDialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lblBegDate = QtGui.QLabel(ReportF13SetupDialog) self.lblBegDate.setObjectName(_fromUtf8("lblBegDate")) self.gridLayout.addWidget(self.lblBegDate, 0, 0, 1, 1) self.edtBegDate = QtGui.QDateEdit(ReportF13SetupDialog) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 0, 1, 1, 1) self.lblEndDate = QtGui.QLabel(ReportF13SetupDialog) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 1, 0, 1, 1) self.edtEndDate = QtGui.QDateEdit(ReportF13SetupDialog) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 1, 1, 1, 1) self.lblEventType = QtGui.QLabel(ReportF13SetupDialog) self.lblEventType.setObjectName(_fromUtf8("lblEventType")) self.gridLayout.addWidget(self.lblEventType, 2, 0, 1, 1) self.cmbEventType = CRBComboBox(ReportF13SetupDialog) self.cmbEventType.setObjectName(_fromUtf8("cmbEventType")) self.gridLayout.addWidget(self.cmbEventType, 2, 1, 1, 1) self.lblPerson = QtGui.QLabel(ReportF13SetupDialog) self.lblPerson.setObjectName(_fromUtf8("lblPerson")) self.gridLayout.addWidget(self.lblPerson, 3, 0, 1, 1) self.cmbPerson = CPersonComboBoxEx(ReportF13SetupDialog) self.cmbPerson.setEnabled(True) self.cmbPerson.setObjectName(_fromUtf8("cmbPerson")) self.gridLayout.addWidget(self.cmbPerson, 3, 1, 1, 1) self.lblOrgStructure = QtGui.QLabel(ReportF13SetupDialog) self.lblOrgStructure.setObjectName(_fromUtf8("lblOrgStructure")) self.gridLayout.addWidget(self.lblOrgStructure, 4, 0, 1, 1) self.cmbOrgStructure = COrgStructureComboBox(ReportF13SetupDialog) self.cmbOrgStructure.setObjectName(_fromUtf8("cmbOrgStructure")) self.gridLayout.addWidget(self.cmbOrgStructure, 4, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 5, 1, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(ReportF13SetupDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 6, 0, 1, 2) self.lblEventType.setBuddy(self.cmbEventType) self.lblPerson.setBuddy(self.cmbPerson) self.retranslateUi(ReportF13SetupDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ReportF13SetupDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ReportF13SetupDialog.reject) QtCore.QMetaObject.connectSlotsByName(ReportF13SetupDialog)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(264, 191) self.gridLayout = QtGui.QGridLayout(Dialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lblBeginDate = QtGui.QLabel(Dialog) self.lblBeginDate.setObjectName(_fromUtf8("lblBeginDate")) self.gridLayout.addWidget(self.lblBeginDate, 0, 0, 1, 1) self.edtBegDate = QtGui.QDateEdit(Dialog) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 0, 1, 1, 2) self.lblEndDate = QtGui.QLabel(Dialog) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 0, 3, 1, 1) self.edtEndDate = QtGui.QDateEdit(Dialog) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 0, 4, 1, 1) self.lblorgStruct = QtGui.QLabel(Dialog) self.lblorgStruct.setObjectName(_fromUtf8("lblorgStruct")) self.gridLayout.addWidget(self.lblorgStruct, 1, 0, 1, 2) self.cmbOrgStruct = COrgStructureComboBox(Dialog) self.cmbOrgStruct.setObjectName(_fromUtf8("cmbOrgStruct")) self.gridLayout.addWidget(self.cmbOrgStruct, 1, 2, 1, 3) self.lblChiefResearcher = QtGui.QLabel(Dialog) self.lblChiefResearcher.setObjectName(_fromUtf8("lblChiefResearcher")) self.gridLayout.addWidget(self.lblChiefResearcher, 2, 0, 1, 3) self.cmbResearcher = CPersonComboBoxEx(Dialog) self.cmbResearcher.setObjectName(_fromUtf8("cmbResearcher")) self.gridLayout.addWidget(self.cmbResearcher, 2, 3, 1, 2) self.lblPartner = QtGui.QLabel(Dialog) self.lblPartner.setObjectName(_fromUtf8("lblPartner")) self.gridLayout.addWidget(self.lblPartner, 3, 0, 1, 2) self.cmbPartner = COrgComboBox(Dialog) self.cmbPartner.setObjectName(_fromUtf8("cmbPartner")) self.gridLayout.addWidget(self.cmbPartner, 3, 3, 1, 2) self.chkIsValid = QtGui.QCheckBox(Dialog) self.chkIsValid.setObjectName(_fromUtf8("chkIsValid")) self.gridLayout.addWidget(self.chkIsValid, 4, 0, 1, 3) self.chkIsEnrollment = QtGui.QCheckBox(Dialog) self.chkIsEnrollment.setObjectName(_fromUtf8("chkIsEnrollment")) self.gridLayout.addWidget(self.chkIsEnrollment, 5, 0, 1, 4) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 6, 1, 1, 4) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, SearchByDate): SearchByDate.setObjectName(_fromUtf8("SearchByDate")) SearchByDate.resize(703, 252) self.label = QtGui.QLabel(SearchByDate) self.label.setGeometry(QtCore.QRect(40, 25, 191, 31)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setPointSize(14) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.label_2 = QtGui.QLabel(SearchByDate) self.label_2.setGeometry(QtCore.QRect(40, 80, 81, 16)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setPointSize(8) self.label_2.setFont(font) self.label_2.setObjectName(_fromUtf8("label_2")) self.dateFieldComboBox = QtGui.QComboBox(SearchByDate) self.dateFieldComboBox.setGeometry(QtCore.QRect(170, 80, 211, 22)) self.dateFieldComboBox.setObjectName(_fromUtf8("dateFieldComboBox")) self.label_3 = QtGui.QLabel(SearchByDate) self.label_3.setGeometry(QtCore.QRect(40, 130, 91, 16)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.label_4 = QtGui.QLabel(SearchByDate) self.label_4.setGeometry(QtCore.QRect(380, 130, 101, 16)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.label_4.setFont(font) self.label_4.setObjectName(_fromUtf8("label_4")) self.searchButton = QtGui.QPushButton(SearchByDate) self.searchButton.setGeometry(QtCore.QRect(390, 210, 93, 28)) self.searchButton.setObjectName(_fromUtf8("searchButton")) self.cancelButton = QtGui.QPushButton(SearchByDate) self.cancelButton.setGeometry(QtCore.QRect(540, 210, 93, 28)) self.cancelButton.setObjectName(_fromUtf8("cancelButton")) self.startdateEdit = QtGui.QDateEdit(SearchByDate) self.startdateEdit.setGeometry(QtCore.QRect(40, 160, 241, 22)) self.startdateEdit.setObjectName(_fromUtf8("startdateEdit")) self.enddateEdit = QtGui.QDateEdit(SearchByDate) self.enddateEdit.setGeometry(QtCore.QRect(380, 160, 241, 22)) self.enddateEdit.setObjectName(_fromUtf8("enddateEdit")) self.retranslateUi(SearchByDate) QtCore.QObject.connect(self.cancelButton, QtCore.SIGNAL(_fromUtf8("clicked()")), SearchByDate.close) QtCore.QMetaObject.connectSlotsByName(SearchByDate)
def setupUi(self, ReportNonCashDialog): ReportNonCashDialog.setObjectName(_fromUtf8("ReportNonCashDialog")) ReportNonCashDialog.resize(306, 161) self.gridLayout = QtGui.QGridLayout(ReportNonCashDialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lblBeginDate = QtGui.QLabel(ReportNonCashDialog) self.lblBeginDate.setObjectName(_fromUtf8("lblBeginDate")) self.gridLayout.addWidget(self.lblBeginDate, 0, 0, 1, 1) self.edtBegDate = QtGui.QDateEdit(ReportNonCashDialog) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 0, 1, 1, 2) self.lblEndDate = QtGui.QLabel(ReportNonCashDialog) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 0, 3, 1, 1) self.edtEndDate = QtGui.QDateEdit(ReportNonCashDialog) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 0, 4, 1, 1) self.lblorgStatus = QtGui.QLabel(ReportNonCashDialog) self.lblorgStatus.setObjectName(_fromUtf8("lblorgStatus")) self.gridLayout.addWidget(self.lblorgStatus, 1, 0, 1, 2) self.cmbOrgStatus = QtGui.QComboBox(ReportNonCashDialog) self.cmbOrgStatus.setObjectName(_fromUtf8("cmbOrgStatus")) self.cmbOrgStatus.addItem(_fromUtf8("")) self.cmbOrgStatus.addItem(_fromUtf8("")) self.cmbOrgStatus.addItem(_fromUtf8("")) self.cmbOrgStatus.addItem(_fromUtf8("")) self.cmbOrgStatus.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.cmbOrgStatus, 1, 2, 1, 3) self.lblPartner = QtGui.QLabel(ReportNonCashDialog) self.lblPartner.setObjectName(_fromUtf8("lblPartner")) self.gridLayout.addWidget(self.lblPartner, 2, 0, 1, 2) self.cmbPartner = COrgComboBox(ReportNonCashDialog) self.cmbPartner.setObjectName(_fromUtf8("cmbPartner")) self.gridLayout.addWidget(self.cmbPartner, 2, 2, 1, 3) self.chkIsValid = QtGui.QCheckBox(ReportNonCashDialog) self.chkIsValid.setObjectName(_fromUtf8("chkIsValid")) self.gridLayout.addWidget(self.chkIsValid, 3, 0, 1, 3) self.buttonBox = QtGui.QDialogButtonBox(ReportNonCashDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 4, 1, 1, 4) self.retranslateUi(ReportNonCashDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ReportNonCashDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ReportNonCashDialog.reject) QtCore.QMetaObject.connectSlotsByName(ReportNonCashDialog)
def get_height(self): height = [ QtGui.QLineEdit().sizeHint().height(), QtGui.QDateEdit().sizeHint().height(), QtGui.QDateTimeEdit().sizeHint().height(), QtGui.QSpinBox().sizeHint().height(), QtGui.QDateEdit().sizeHint().height(), QtGui.QComboBox().sizeHint().height() ] finalHeight = max(height) return finalHeight
def setupUi(self, ItemEditorDialog): ItemEditorDialog.setObjectName(_fromUtf8("ItemEditorDialog")) ItemEditorDialog.resize(613, 381) ItemEditorDialog.setSizeGripEnabled(True) self.gridLayout = QtGui.QGridLayout(ItemEditorDialog) self.gridLayout.setMargin(4) self.gridLayout.setSpacing(4) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lblType = QtGui.QLabel(ItemEditorDialog) self.lblType.setObjectName(_fromUtf8("lblType")) self.gridLayout.addWidget(self.lblType, 0, 0, 1, 1) self.edtEndDate = QtGui.QDateEdit(ItemEditorDialog) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 2, 1, 1, 1) self.edtBegDate = QtGui.QDateEdit(ItemEditorDialog) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 1, 1, 1, 1) self.cmbType = QtGui.QComboBox(ItemEditorDialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmbType.sizePolicy().hasHeightForWidth()) self.cmbType.setSizePolicy(sizePolicy) self.cmbType.setObjectName(_fromUtf8("cmbType")) self.gridLayout.addWidget(self.cmbType, 0, 1, 1, 2) self.tblItems = CInDocTableView(ItemEditorDialog) self.tblItems.setObjectName(_fromUtf8("tblItems")) self.gridLayout.addWidget(self.tblItems, 4, 0, 1, 3) self.label_2 = QtGui.QLabel(ItemEditorDialog) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(ItemEditorDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 5, 0, 1, 3) self.label = QtGui.QLabel(ItemEditorDialog) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.chkIsActive = QtGui.QCheckBox(ItemEditorDialog) self.chkIsActive.setObjectName(_fromUtf8("chkIsActive")) self.gridLayout.addWidget(self.chkIsActive, 3, 1, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 1, 2, 1, 1) self.lblType.setBuddy(self.cmbType) self.retranslateUi(ItemEditorDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ItemEditorDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ItemEditorDialog.reject) QtCore.QMetaObject.connectSlotsByName(ItemEditorDialog) ItemEditorDialog.setTabOrder(self.cmbType, self.buttonBox)
def setupUi(self, ReportF30PRRSetupDialog): ReportF30PRRSetupDialog.setObjectName( _fromUtf8("ReportF30PRRSetupDialog")) ReportF30PRRSetupDialog.setWindowModality(QtCore.Qt.ApplicationModal) ReportF30PRRSetupDialog.resize(309, 162) ReportF30PRRSetupDialog.setSizeGripEnabled(True) self.gridLayout = QtGui.QGridLayout(ReportF30PRRSetupDialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) spacerItem = QtGui.QSpacerItem(61, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 4, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(ReportF30PRRSetupDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 5, 0, 1, 4) self.edtEndDate = QtGui.QDateEdit(ReportF30PRRSetupDialog) self.edtEndDate.setCalendarPopup(True) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 1, 2, 1, 2) self.lblEndDate = QtGui.QLabel(ReportF30PRRSetupDialog) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 1, 0, 1, 2) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 4, 0, 1, 2) self.lblBegDate = QtGui.QLabel(ReportF30PRRSetupDialog) self.lblBegDate.setObjectName(_fromUtf8("lblBegDate")) self.gridLayout.addWidget(self.lblBegDate, 0, 0, 1, 2) spacerItem2 = QtGui.QSpacerItem(61, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem2, 1, 4, 1, 1) self.edtBegDate = QtGui.QDateEdit(ReportF30PRRSetupDialog) self.edtBegDate.setCalendarPopup(True) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 0, 2, 1, 2) self.lblEndDate.setBuddy(self.edtEndDate) self.lblBegDate.setBuddy(self.edtBegDate) self.retranslateUi(ReportF30PRRSetupDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ReportF30PRRSetupDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ReportF30PRRSetupDialog.reject) QtCore.QMetaObject.connectSlotsByName(ReportF30PRRSetupDialog) ReportF30PRRSetupDialog.setTabOrder(self.edtBegDate, self.edtEndDate) ReportF30PRRSetupDialog.setTabOrder(self.edtEndDate, self.buttonBox)
def makeDates(self): '''dateEdits and Labels''' self.startDate = QtGui.QDateEdit() self.startDate.setDate(QtCore.QDate.fromString('01.03.2010', 'MM.dd.yyyy')) self.endDate = QtGui.QDateEdit() self.endDate.setDate(QtCore.QDate.currentDate()) self.startDateLabel = QtGui.QLabel() self.endDateLabel = QtGui.QLabel() self.endDate.dateChanged.connect(self.dateChange) self.startDate.dateChanged.connect(self.dateChange) self.switchDates(True)
def createUI(self): self.start_date_edit = QtGui.QDateEdit() self.start_date_edit.setMinimumDate(datetime.date(2015, 1, 1)) self.start_date_edit.setToolTip("Select a start date.") self.start_date_edit.setMaximumDate(datetime.date.today()) self.end_date_edit = QtGui.QDateEdit() self.end_date_edit.setToolTip("Select an end date.") self.end_date_edit.setMinimumDate(datetime.date(2015, 1, 1)) self.end_date_edit.setMaximumDate(datetime.date.today()) self.start_date_edit.setCalendarPopup(True) self.end_date_edit.setCalendarPopup(True) self.start_date_label = QtGui.QLabel("Select a start date:") self.end_date_label = QtGui.QLabel("Select an end date:") self.type_combo_box = CheckableComboBox("Article Type") self.type_combo_box.setToolTip( "Select what article types you want to check the helpfulness data metrics for.\nLeave as is to pull the overall metrics." ) self.type_combo_box.setMinimumWidth(210) self.type_combo_box.addItems(["PD", "RPD", "BG"]) self.pull_button = QtGui.QPushButton("Pull Helpfulness Data") self.helpfulness_report_table = QtGui.QTableWidget(0, 0) self.helpfulness_data_table = QtGui.QTableWidget(0, 0) style_string = """ .QTableWidget { gridline-color: rgb(0, 0, 0); } """ self.setStyleSheet(style_string) self.reports_tab = QtGui.QTabWidget() self.reports_tab.addTab(self.helpfulness_report_table, "Report") self.reports_tab.addTab(self.helpfulness_data_table, "Data") self.layout = QtGui.QVBoxLayout() self.form_layout = QtGui.QHBoxLayout() self.form_layout.addWidget(self.start_date_label, 0) self.form_layout.addWidget(self.start_date_edit, 0) self.form_layout.addWidget(self.end_date_label, 0) self.form_layout.addWidget(self.end_date_edit, 0) self.form_layout.addWidget(self.type_combo_box, 2) self.form_layout.addWidget(self.pull_button, 0) self.layout.addLayout(self.form_layout, 0) self.layout.addWidget(self.reports_tab, 1) self.setLayout(self.layout) self.setWindowTitle("Farm Hand") if "OINKModules" in os.getcwd(): icon_file_name_path = os.path.join(os.path.join('..', "Images"), 'PORK_Icon.png') else: icon_file_name_path = os.path.join('Images', 'PORK_Icon.png') self.setWindowIcon(QtGui.QIcon(icon_file_name_path))
def setupUi(self, QuotingEditorDialog): QuotingEditorDialog.setObjectName(_fromUtf8("QuotingEditorDialog")) QuotingEditorDialog.resize(274, 154) self.gridLayout = QtGui.QGridLayout(QuotingEditorDialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lblQyotaType = QtGui.QLabel(QuotingEditorDialog) self.lblQyotaType.setObjectName(_fromUtf8("lblQyotaType")) self.gridLayout.addWidget(self.lblQyotaType, 0, 0, 1, 1) self.cmbQuotaType = CRBComboBox(QuotingEditorDialog) self.cmbQuotaType.setObjectName(_fromUtf8("cmbQuotaType")) self.gridLayout.addWidget(self.cmbQuotaType, 0, 1, 1, 1) self.lblBeginDate = QtGui.QLabel(QuotingEditorDialog) self.lblBeginDate.setObjectName(_fromUtf8("lblBeginDate")) self.gridLayout.addWidget(self.lblBeginDate, 1, 0, 1, 1) self.edtBeginDate = QtGui.QDateEdit(QuotingEditorDialog) self.edtBeginDate.setCalendarPopup(True) self.edtBeginDate.setObjectName(_fromUtf8("edtBeginDate")) self.gridLayout.addWidget(self.edtBeginDate, 1, 1, 1, 1) self.lblEndDate = QtGui.QLabel(QuotingEditorDialog) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 2, 0, 1, 1) self.edtEndDate = QtGui.QDateEdit(QuotingEditorDialog) self.edtEndDate.setCalendarPopup(True) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 2, 1, 1, 1) self.lblLimit = QtGui.QLabel(QuotingEditorDialog) self.lblLimit.setObjectName(_fromUtf8("lblLimit")) self.gridLayout.addWidget(self.lblLimit, 3, 0, 1, 1) self.edtLimit = QtGui.QSpinBox(QuotingEditorDialog) self.edtLimit.setMaximum(131071) self.edtLimit.setObjectName(_fromUtf8("edtLimit")) self.gridLayout.addWidget(self.edtLimit, 3, 1, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(QuotingEditorDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 5, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 24, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 4, 1, 1, 1) self.retranslateUi(QuotingEditorDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), QuotingEditorDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), QuotingEditorDialog.reject) QtCore.QMetaObject.connectSlotsByName(QuotingEditorDialog)
def initInputs(self): self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) #---dateEdit1--- self.dateEdit1 = QtGui.QDateEdit(self.verticalLayoutWidget) self.dateEdit1.setObjectName(_fromUtf8("dateEdit1")) self.horizontalLayout_2.addWidget(self.dateEdit1) style = "QDateEdit {background-color:" \ " QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1," \ " stop: 0 #4d4d4d, stop: 0 #646464, stop: 1 #BDB9B5);" \ " padding: 1px; border-style: solid;" \ " border: 1px solid #656565; border-radius: 5;} " \ "QDateEdit::up-button {border: 1px solid #656565;} " \ "QDateEdit::down-button {border: 1px solid #656565;}" self.dateEdit1.setStyleSheet(style) #---dateEdit2--- self.dateEdit2 = QtGui.QDateEdit(self.verticalLayoutWidget) self.dateEdit2.setDate(QtCore.QDate(2014, 1, 1)) self.dateEdit2.setCalendarPopup(False) self.dateEdit2.setObjectName(_fromUtf8("dateEdit2")) self.horizontalLayout_2.addWidget(self.dateEdit2) style = "QDateEdit {background-color:" \ " QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1," \ " stop: 0 #4d4d4d, stop: 0 #646464, stop: 1 #BDB9B5);" \ " padding: 1px; border-style: solid;" \ " border: 1px solid #656565; border-radius: 5;} " \ "QDateEdit::up-button {border: 1px solid #656565;} " \ "QDateEdit::down-button {border: 1px solid #656565;}" self.dateEdit2.setStyleSheet(style) #---doubleSpinBox--- self.doubleSpinBox = QtGui.QDoubleSpinBox(self.verticalLayoutWidget) self.doubleSpinBox.setMaximum(10000000.0) self.doubleSpinBox.setSingleStep(10.0) self.doubleSpinBox.setObjectName(_fromUtf8("doubleSpinBox")) self.horizontalLayout_2.addWidget(self.doubleSpinBox) style = "QDoubleSpinBox {background-color:" \ " QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1," \ " stop: 0 #4d4d4d, stop: 0 #646464, stop: 1 #BDB9B5);" \ " padding: 1px; border-style: solid;" \ " border: 1px solid #656565; border-radius: 5;} " \ "QDoubleSpinBox::up-button {border: 1px solid #656565;} " \ "QDoubleSpinBox::down-button {border: 1px solid #656565;}" self.doubleSpinBox.setStyleSheet(style) self.verticalLayout.addLayout(self.horizontalLayout_2) #SpaceBar spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.verticalLayout.addItem(spacerItem)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.setWindowModality(QtCore.Qt.ApplicationModal) Dialog.resize(400, 300) Dialog.setModal(True) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setGeometry(QtCore.QRect(30, 240, 341, 32)) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.label = QtGui.QLabel(Dialog) self.label.setGeometry(QtCore.QRect(20, 20, 361, 41)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setPointSize(14) self.label.setFont(font) self.label.setStyleSheet(_fromUtf8("")) self.label.setFrameShape(QtGui.QFrame.Panel) self.label.setFrameShadow(QtGui.QFrame.Sunken) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName(_fromUtf8("label")) self.dateEdit_2 = QtGui.QDateEdit(Dialog) self.dateEdit_2.setGeometry(QtCore.QRect(40, 140, 301, 51)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setPointSize(14) self.dateEdit_2.setFont(font) self.dateEdit_2.setDateTime( QtCore.QDateTime(QtCore.QDate(2016, 1, 2), QtCore.QTime(0, 0, 0))) self.dateEdit_2.setCalendarPopup(True) self.dateEdit_2.setObjectName(_fromUtf8("dateEdit_2")) self.delButton = QtGui.QPushButton(Dialog) self.delButton.setGeometry(QtCore.QRect(20, 230, 111, 41)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) font.setPointSize(14) font.setBold(True) font.setWeight(75) self.delButton.setFont(font) self.delButton.setStyleSheet( _fromUtf8("background-color: rgb(255, 0, 0);\n" "color: rgb(255, 255, 255);")) self.delButton.setObjectName(_fromUtf8("delButton")) self.serial_label = QtGui.QLabel(Dialog) self.serial_label.setGeometry(QtCore.QRect(25, 70, 351, 31)) font = QtGui.QFont() font.setFamily(_fromUtf8("Arial")) self.serial_label.setFont(font) self.serial_label.setAlignment(QtCore.Qt.AlignCenter) self.serial_label.setObjectName(_fromUtf8("serial_label")) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, YearDialog): YearDialog.setObjectName(_fromUtf8("YearDialog")) YearDialog.resize(400, 300) self.dateEditYear = QtGui.QDateEdit(YearDialog) self.dateEditYear.setGeometry(QtCore.QRect(140, 130, 110, 22)) self.dateEditYear.setWrapping(False) self.dateEditYear.setFrame(True) self.dateEditYear.setKeyboardTracking(True) self.dateEditYear.setProperty("showGroupSeparator", False) self.dateEditYear.setMinimumDate(QtCore.QDate(2018, 1, 1)) self.dateEditYear.setCalendarPopup(False) self.dateEditYear.setDate(QtCore.QDate(2018, 1, 1)) self.dateEditYear.setObjectName(_fromUtf8("dateEditYear")) self.label = QtGui.QLabel(YearDialog) self.label.setGeometry(QtCore.QRect(140, 100, 131, 16)) font = QtGui.QFont() font.setPointSize(12) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.pushButtonContinueYear = QtGui.QPushButton(YearDialog) self.pushButtonContinueYear.setGeometry(QtCore.QRect( 140, 220, 111, 41)) self.pushButtonContinueYear.setObjectName( _fromUtf8("pushButtonContinueYear")) self.retranslateUi(YearDialog) QtCore.QMetaObject.connectSlotsByName(YearDialog)
def createWidgets(self): """Efficiency Calculator: Creates widgets.""" self.calc_table = QtGui.QTableWidget() self.category_tree_headers = [ "BU", "Super-Category", "Category", "Sub-Category", "Vertical" ] self.headers = [ "Description Type", "Source" ] + self.category_tree_headers + ["Quantity", "Efficiency", "Target"] self.calc_table.setColumnCount(len(self.headers)) self.calc_table.setMinimumWidth(1200) self.date_label = QtGui.QLabel("Target Date:") self.date_picker = QtGui.QDateEdit() self.date_picker.setMinimumDate(QtCore.QDate(datetime.date(2015, 1, 1))) self.date_picker.setDate(QtCore.QDate(datetime.date.today())) self.date_picker.setCalendarPopup(True) self.date_picker.setDisplayFormat('MMM d yyyy') self.addCalcRow() self.plusButton = QtGui.QPushButton("Add Another Type of Article") #self.findIdenLabel = QtGui.QLabel("Find a vertical") self.refreshButton = QtGui.QPushButton("Recalculate Efficiency") self.totEffLabel = QtGui.QLabel("Total Efficiency:") self.effScoreLabel = QtGui.QLabel("00.00%") label_style_sheet = """ QLabel { font: 16px; font-weight: bold; }""" self.totEffLabel.setStyleSheet(label_style_sheet) self.effScoreLabel.setStyleSheet(label_style_sheet) self.finder_widget = CategoryFinder(self.category_tree, self.category_tree_headers)
def __init__(self, *args): QtGui.QWidget.__init__(self, *args) # date box self.label_date = QtGui.QLabel() self.label_date.setText("Set date of last audit:") default = datetime.date.today() - datetime.timedelta(DEFAULT_DAYS_FROM_LAST_AUDIT) self.datebox = QtGui.QDateEdit(QtCore.Qt.QDate(default.year, default.month, default.day)) # buttons spacer = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding) self.button_ok = QtGui.QPushButton() self.button_ok.setText("OK") self.button_ok.setDefault(True) button_cancel = QtGui.QPushButton() button_cancel.setText("Cancel") # layout layout_right = QtGui.QVBoxLayout(self) layout_right.addWidget(self.label_date) layout_right.addWidget(self.datebox) layout_right.addItem(spacer) layout_right.addWidget(self.button_ok) layout_right.addWidget(button_cancel) # connections self.connect(button_cancel, QtCore.Qt.SIGNAL("clicked(bool)"), self.close) self.connect(self.button_ok, QtCore.Qt.SIGNAL("clicked(bool)"), self.ok_clicked)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(645, 325) self.groupBox = QtGui.QGroupBox(Dialog) self.groupBox.setGeometry(QtCore.QRect(10, 20, 621, 301)) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.formLayoutWidget_3 = QtGui.QWidget(self.groupBox) self.formLayoutWidget_3.setGeometry(QtCore.QRect(10, 40, 441, 101)) self.formLayoutWidget_3.setObjectName(_fromUtf8("formLayoutWidget_3")) self.formLayout = QtGui.QFormLayout(self.formLayoutWidget_3) self.formLayout.setFieldGrowthPolicy( QtGui.QFormLayout.AllNonFixedFieldsGrow) self.formLayout.setMargin(0) self.formLayout.setObjectName(_fromUtf8("formLayout")) self.label_1 = QtGui.QLabel(self.formLayoutWidget_3) self.label_1.setObjectName(_fromUtf8("label_1")) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_1) self.LNombre = QtGui.QLineEdit(self.formLayoutWidget_3) self.LNombre.setObjectName(_fromUtf8("LNombre")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.LNombre) self.label_3 = QtGui.QLabel(self.formLayoutWidget_3) self.label_3.setObjectName(_fromUtf8("label_3")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3) self.LFecha = QtGui.QDateEdit(self.formLayoutWidget_3) self.LFecha.setObjectName(_fromUtf8("LFecha")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.LFecha) self.label_5 = QtGui.QLabel(self.formLayoutWidget_3) self.label_5.setObjectName(_fromUtf8("label_5")) self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_5) self.LGenero = QtGui.QComboBox(self.formLayoutWidget_3) self.LGenero.setObjectName(_fromUtf8("LGenero")) self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.LGenero) self.label_4 = QtGui.QLabel(self.groupBox) self.label_4.setGeometry(QtCore.QRect(10, 150, 51, 20)) self.label_4.setObjectName(_fromUtf8("label_4")) self.LImagen = QtGui.QLineEdit(self.groupBox) self.LImagen.setGeometry(QtCore.QRect(137, 150, 289, 20)) self.LImagen.setObjectName(_fromUtf8("LImagen")) self.toolButton = QtGui.QToolButton(self.groupBox) self.toolButton.setGeometry(QtCore.QRect(425, 150, 25, 21)) self.toolButton.setObjectName(_fromUtf8("toolButton")) self.BListo = QtGui.QPushButton(self.groupBox) self.BListo.setGeometry(QtCore.QRect(456, 260, 71, 21)) self.BListo.setObjectName(_fromUtf8("BListo")) self.BCancelar = QtGui.QPushButton(self.groupBox) self.BCancelar.setGeometry(QtCore.QRect(530, 260, 75, 23)) self.BCancelar.setObjectName(_fromUtf8("BCancelar")) self.Display = QtGui.QLabel(self.groupBox) self.Display.setGeometry(QtCore.QRect(490, 40, 111, 161)) self.Display.setStyleSheet( _fromUtf8(" border-style: solid;\n" " border-width: 2px;\n" " border-radius: 5px;\n" " border-color: black;")) self.Display.setText(_fromUtf8("")) self.Display.setScaledContents(True) self.Display.setObjectName(_fromUtf8("Display")) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog)
def __init__(self, pt=None, parent=None): BaseDialog.__init__(self, parent) self.pt = pt self.setWindowTitle(_("MH Form Print Dialog")) self.radio_button_a = QtGui.QRadioButton(_("Leave fields empty")) self.radio_button_b = QtGui.QRadioButton(_("Populate with current MH")) if self.has_no_patient: message = _("No Patient Selected, A blank form will be produced") else: message = "%s<br /><b>%s</b>" % (_("Medical History form for"), pt.name_id) date_gb = QtGui.QGroupBox(_("Use this date for the form")) self.date_edit = QtGui.QDateEdit() self.date_edit.setDate(self.chosen_date) self.date_edit.setCalendarPopup(True) layout = QtGui.QVBoxLayout(date_gb) layout.addWidget(self.date_edit) label = QtGui.QLabel(message) label.setAlignment(QtCore.Qt.AlignCenter) self.insertWidget(label) self.insertWidget(self.radio_button_a) self.insertWidget(self.radio_button_b) self.insertWidget(date_gb) self.radio_button_a.setVisible(not self.has_no_patient) self.radio_button_b.setVisible(not self.has_no_patient) self.radio_button_a.setChecked(True) self.radio_button_b.setChecked(bool(self.pt and self.pt.mh_chkdate)) self.enableApply()
def initUI(self): #create widgets self.shapeTypeCB = QtGui.QComboBox(parent=self) self.description = QtGui.QLineEdit(self) self.myDate = QtGui.QDateEdit(self) self.myDate.setDate(self.now) self.receipt = QtGui.QLineEdit(self) self.submitBtn = QtGui.QPushButton('submit', self) self.amount = QtGui.QDoubleSpinBox() self.amount.setSingleStep(0.01) self.amount.setMaximum(10000) for i in self.expensetype: self.shapeTypeCB.addItem(i) #create action layout actionLayout = QtGui.QBoxLayout(QtGui.QBoxLayout.LeftToRight, self) #add widgets to layout actionLayout.addWidget(self.description) actionLayout.addWidget(self.shapeTypeCB) actionLayout.addWidget(self.myDate) actionLayout.addWidget(self.receipt) actionLayout.addWidget(self.amount) actionLayout.addWidget(self.submitBtn) #Connecting Signals self.submitBtn.clicked.connect(self.writeData) #self.connect(self.shapeTypeCB, QtCore.SIGNAL("currentIndexChanged(int)"), self.changeLabels) #self.connect(self.saveBtn, QtCore.SIGNAL("clicked()"), self.saveButton) #self.connect(self.loadBtn, QtCore.SIGNAL("clicked()"), self.loadAttr) self.show()
def __init__(self, func): QFrame.__init__(self) self.func = func layout = QHBoxLayout() layout.setMargin(0) self.check = QCheckBox() self.spinner = QtGui.QDoubleSpinBox() self.spinner.setSingleStep(1) self.spinner.setDisabled(True) self.spinner.setMinimum(-10000000000) self.spinner.setMaximum(10000000000) self.spinner.setMaximumWidth(100) self.connect(self.spinner, QtCore.SIGNAL('valueChanged(double)'), self.update) self.date_spinner = QtGui.QDateEdit() self.date_spinner.setDisabled(True) self.date_spinner.setDisplayFormat("dd/MM-yyyy") self.date_spinner.setMaximumWidth(100) self.date_spinner.setCalendarPopup(True) self.connect(self.date_spinner, QtCore.SIGNAL('dateChanged(QDate)'), self.update) self.connect(self.check, SIGNAL('stateChanged(int)'), self.disabler) layout.addWidget(self.check) layout.addWidget(self.spinner) layout.addWidget(self.date_spinner) self.setLayout(layout) self.showDate(False)
def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(800, 600) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.fecha = QtGui.QDateEdit(self.centralwidget) self.fecha.setGeometry(QtCore.QRect(280, 110, 110, 27)) self.fecha.setObjectName(_fromUtf8("fecha")) self.fisico = QtGui.QPushButton(self.centralwidget) self.fisico.setGeometry(QtCore.QRect(80, 250, 97, 27)) self.fisico.setObjectName(_fromUtf8("fisico")) self.animico = QtGui.QPushButton(self.centralwidget) self.animico.setGeometry(QtCore.QRect(250, 250, 97, 27)) self.animico.setObjectName(_fromUtf8("animico")) self.intelectual = QtGui.QPushButton(self.centralwidget) self.intelectual.setGeometry(QtCore.QRect(410, 250, 97, 27)) self.intelectual.setObjectName(_fromUtf8("intelectual")) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 25)) self.menubar.setObjectName(_fromUtf8("menubar")) MainWindow.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) self.fisico.clicked.connect(self.calculoFisico) self.animico.clicked.connect(self.calculoEmocional) self.intelectual.clicked.connect(self.calculoIntelectual)
def __init__(self, parent=None): super().__init__(parent) inputstuff = QtGui.QGridLayout(self) self.day = QtGui.QComboBox(self) self.day.addItem("Sun") self.day.addItem("Moon") self.day.addItem("Mars") self.day.addItem("Mercury") self.day.addItem("Jupiter") self.day.addItem("Venus") self.day.addItem("Saturn") self.day.addItem("Everyday") self.day.addItem("Weekends") self.day.addItem("Weekdays") self.day.addItem("Custom") inputstuff.addWidget(self.day, 0, 0) self.dateplanned = QtGui.QDateEdit(self) #self.dateplanned.setCalendarPopup (True) self.dateplanned.setDisplayFormat("MM/dd/yyyy") self.dateplanned.hide() inputstuff.addWidget(self.dateplanned, 0, 1) self.day.activated.connect(self.checkSwitch) inputstuff.setContentsMargins(0, 0, 0, 0) inputstuff.setHorizontalSpacing(0)
def setupUi(self, MonthDialog): MonthDialog.setObjectName(_fromUtf8("MonthDialog")) MonthDialog.resize(400, 300) self.label = QtGui.QLabel(MonthDialog) self.label.setGeometry(QtCore.QRect(120, 80, 171, 16)) font = QtGui.QFont() font.setPointSize(12) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.pushButtonContinueMonth = QtGui.QPushButton(MonthDialog) self.pushButtonContinueMonth.setGeometry( QtCore.QRect(140, 200, 111, 41)) self.pushButtonContinueMonth.setObjectName( _fromUtf8("pushButtonContinueMonth")) self.dateEditMonth = QtGui.QDateEdit(MonthDialog) self.dateEditMonth.setGeometry(QtCore.QRect(140, 110, 110, 22)) self.dateEditMonth.setWrapping(False) self.dateEditMonth.setFrame(True) self.dateEditMonth.setAccelerated(False) self.dateEditMonth.setCorrectionMode( QtGui.QAbstractSpinBox.CorrectToPreviousValue) self.dateEditMonth.setKeyboardTracking(True) self.dateEditMonth.setProperty("showGroupSeparator", False) self.dateEditMonth.setMinimumDate(QtCore.QDate(2018, 1, 1)) self.dateEditMonth.setCurrentSection(QtGui.QDateTimeEdit.MonthSection) self.dateEditMonth.setCalendarPopup(False) self.dateEditMonth.setTimeSpec(QtCore.Qt.LocalTime) self.dateEditMonth.setDate(QtCore.QDate(2018, 1, 1)) self.dateEditMonth.setObjectName(_fromUtf8("dateEditMonth")) self.retranslateUi(MonthDialog) QtCore.QMetaObject.connectSlotsByName(MonthDialog)
def __init__(self, parent=None): QtGui.QDialog.__init__(self, parent) self.setWindowIcon(QtGui.QIcon('guis/icons/tent.png')) self.setWindowTitle(u'新增假期') layout = QtGui.QGridLayout() layout.addWidget(QtGui.QLabel(u'日期'),0,0,1,1) self.date = QtGui.QDateEdit(datetime.datetime.today()) self.date.setCalendarPopup(True) layout.addWidget(self.date,0,1,1,1) layout.addWidget(QtGui.QLabel(u'假期'),1,0,1,1) self.nameList = QtGui.QComboBox() self.nameList.addItems([u'元旦',u'春节',u'清明节',u'劳动节',u'端午节',u'中秋节',u'国庆节',u'其他']) self.nameList.setEditable(True) layout.addWidget(self.nameList,1,1,1,1) layout.addWidget(QtGui.QLabel(u'状态'),2,0,1,1) self.statusList = QtGui.QComboBox() self.statusList.addItems([u'预期',u'确定',u'工作']) layout.addWidget(self.statusList,2,1,1,1) self.ok = QtGui.QPushButton(u'确定') self.ok.clicked.connect(self.accept) layout.addWidget(self.ok,3,0,1,1) self.cancel = QtGui.QPushButton(u'取消') self.cancel.clicked.connect(self.close) layout.addWidget(self.cancel,3,1,1,1) self.setLayout(layout)
def setupUi(self, ReportHospitalization_Krasnodar): ReportHospitalization_Krasnodar.setObjectName( _fromUtf8("ReportHospitalization_Krasnodar")) ReportHospitalization_Krasnodar.setWindowModality( QtCore.Qt.ApplicationModal) ReportHospitalization_Krasnodar.resize(373, 124) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( ReportHospitalization_Krasnodar.sizePolicy().hasHeightForWidth()) ReportHospitalization_Krasnodar.setSizePolicy(sizePolicy) ReportHospitalization_Krasnodar.setSizeGripEnabled(True) self.gridLayout = QtGui.QGridLayout(ReportHospitalization_Krasnodar) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lblBegDate = QtGui.QLabel(ReportHospitalization_Krasnodar) self.lblBegDate.setObjectName(_fromUtf8("lblBegDate")) self.gridLayout.addWidget(self.lblBegDate, 0, 0, 1, 1) self.edtBegDate = QtGui.QDateEdit(ReportHospitalization_Krasnodar) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 0, 1, 1, 1) self.lblEndDate = QtGui.QLabel(ReportHospitalization_Krasnodar) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 1, 0, 1, 1) self.edtEndDate = QtGui.QDateEdit(ReportHospitalization_Krasnodar) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 1, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 2, 1, 1, 1) self.buttonBox = QtGui.QDialogButtonBox( ReportHospitalization_Krasnodar) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 2) self.retranslateUi(ReportHospitalization_Krasnodar) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ReportHospitalization_Krasnodar.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ReportHospitalization_Krasnodar.reject) QtCore.QMetaObject.connectSlotsByName(ReportHospitalization_Krasnodar)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(307, 138) self.gridLayout = QtGui.QGridLayout(Dialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lblPeriod = QtGui.QLabel(Dialog) self.lblPeriod.setObjectName(_fromUtf8("lblPeriod")) self.gridLayout.addWidget(self.lblPeriod, 0, 0, 1, 2) self.lblDateFrom = QtGui.QLabel(Dialog) self.lblDateFrom.setObjectName(_fromUtf8("lblDateFrom")) self.gridLayout.addWidget(self.lblDateFrom, 1, 0, 1, 1) self.dtFrom = QtGui.QDateEdit(Dialog) self.dtFrom.setObjectName(_fromUtf8("dtFrom")) self.gridLayout.addWidget(self.dtFrom, 1, 1, 1, 2) self.lblDateTo = QtGui.QLabel(Dialog) self.lblDateTo.setObjectName(_fromUtf8("lblDateTo")) self.gridLayout.addWidget(self.lblDateTo, 1, 3, 1, 1) self.dtTo = QtGui.QDateEdit(Dialog) self.dtTo.setObjectName(_fromUtf8("dtTo")) self.gridLayout.addWidget(self.dtTo, 1, 4, 1, 1) self.lblOrgstructure = QtGui.QLabel(Dialog) self.lblOrgstructure.setObjectName(_fromUtf8("lblOrgstructure")) self.gridLayout.addWidget(self.lblOrgstructure, 2, 0, 1, 2) self.cmbOrgStruct = COrgStructureComboBox(Dialog) self.cmbOrgStruct.setObjectName(_fromUtf8("cmbOrgStruct")) self.gridLayout.addWidget(self.cmbOrgStruct, 2, 2, 1, 3) self.lblPerson = QtGui.QLabel(Dialog) self.lblPerson.setObjectName(_fromUtf8("lblPerson")) self.gridLayout.addWidget(self.lblPerson, 3, 0, 1, 1) self.cmbPerson = CPersonComboBoxEx(Dialog) self.cmbPerson.setObjectName(_fromUtf8("cmbPerson")) self.gridLayout.addWidget(self.cmbPerson, 3, 2, 1, 3) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 5) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)