Ejemplo n.º 1
0
            def __init__(self, date_start, date_end, *args, **kwargs):
                super(DateDialog, self).__init__(*args, **kwargs)

                # noinspection PyArgumentList
                self.setMinimumSize(300, 500)
                self.setWindowTitle('SSP date range to plot')

                self.start_date = QtWidgets.QLabel()
                self.start_date.setText("Start date:")
                self.cal_start_date = QtWidgets.QCalendarWidget()
                self.cal_start_date.setSelectedDate(date_start)

                self.end_date = QtWidgets.QLabel()
                self.end_date.setText("End date:")
                self.cal_end_date = QtWidgets.QCalendarWidget()
                self.cal_end_date.setSelectedDate(date_end)

                self.ok = QtWidgets.QPushButton("OK")
                # noinspection PyUnresolvedReferences
                self.ok.clicked.connect(self.on_click_ok)
                self.cancel = QtWidgets.QPushButton("Cancel")
                # noinspection PyUnresolvedReferences
                self.cancel.clicked.connect(self.on_click_cancel)

                vbox = QtWidgets.QVBoxLayout()
                self.setLayout(vbox)
                vbox.addWidget(self.start_date)
                vbox.addWidget(self.cal_start_date)
                vbox.addWidget(self.end_date)
                vbox.addWidget(self.cal_end_date)
                vbox.addWidget(self.ok)
                vbox.addWidget(self.cancel)
Ejemplo n.º 2
0
    def __init__(self):
        """MainWindow constructor"""
        super().__init__()
        # Configure the window
        self.setWindowTitle("My Calendar App")
        self.resize(800, 600)

        # Create our widgets
        self.calendar = qtw.QCalendarWidget()
        self.event_list = qtw.QListWidget()
        self.event_title = qtw.QLineEdit()
        self.event_category = qtw.QComboBox()
        self.event_time = qtw.QTimeEdit(qtc.QTime(8, 0))
        self.allday_check = qtw.QCheckBox('All Day')
        self.event_detail = qtw.QTextEdit()
        self.add_button = qtw.QPushButton('Add/Update')
        self.del_button = qtw.QPushButton('Delete')

        # Add event categories
        self.event_category.addItems([
            'Select category...', 'New...', 'Work', 'Meeting', 'Doctor',
            'Family'
        ])
        # disable the first category item
        self.event_category.model().item(0).setEnabled(False)

        main_layout = qtw.QHBoxLayout()
        self.setLayout(main_layout)
        main_layout.addWidget(self.calendar)
        self.calendar.setSizePolicy(qtw.QSizePolicy.Expanding,
                                    qtw.QSizePolicy.Expanding)

        right_layout = qtw.QVBoxLayout()
        main_layout.addLayout(right_layout)
        right_layout.addWidget(qtw.QLabel('Event on Date'))
        right_layout.addWidget(self.event_list)
        self.event_list.setSizePolicy(qtw.QSizePolicy.Expanding,
                                      qtw.QSizePolicy.Expanding)

        event_form = qtw.QGroupBox('Event')
        right_layout.addWidget(event_form)
        event_form_layout = qtw.QGridLayout()
        event_form.setLayout(event_form_layout)

        event_form_layout.addWidget(self.event_title, 1, 1, 1, 3)
        event_form_layout.addWidget(self.event_category, 2, 1)
        event_form_layout.addWidget(
            self.event_time,
            2,
            2,
        )
        event_form_layout.addWidget(self.allday_check, 2, 3)
        event_form_layout.addWidget(self.event_detail, 3, 1, 1, 3)
        event_form_layout.addWidget(self.add_button, 4, 2)
        event_form_layout.addWidget(self.del_button, 4, 3)

        self.show()
Ejemplo n.º 3
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(477, 364)
        self.calendarWidget = QtWidgets.QCalendarWidget(Form)
        self.calendarWidget.setGeometry(QtCore.QRect(0, 0, 471, 361))
        self.calendarWidget.setObjectName("calendarWidget")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Ejemplo n.º 4
0
    def __init__(self):
        super(MyApplication, self).__init__()

        #get the application handle to connect signal
        qApp = QtCore.QCoreApplication.instance()

        #change the QMainWindow StyleSheet with signal StyleSheet_0
        qApp.connect(QtCore.SIGNAL("StyleSheet_0(QString)"),
                     self.setStyleSheet)

        #########################################
        # Define a TextEdit as a central widget
        #########################################
        sText = """
        "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 
        Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure 
        dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
        proident, sunt in culpa qui officia deserunt mollit anim id est laborum."        
        """
        self.textEdit = QtWidgets.QTextEdit(sText, parent=self)
        self.setCentralWidget(self.textEdit)

        #####################################
        # Define a Calendar in a DockWidget
        #####################################
        wdDockCalendar = QtWidgets.QDockWidget("Calendar", self)
        calendar = QtWidgets.QCalendarWidget()
        wdDockCalendar.setWidget(calendar)
        self.addDockWidget(QtCore.Qt.LeftDockWidgetArea, wdDockCalendar)

        #change the DockWidget StyleSheet with signal StyleSheet_1
        qApp.connect(QtCore.SIGNAL("StyleSheet_1(QString)"),
                     wdDockCalendar.setStyleSheet)

        #####################################
        # Define a TextEdit in a DockWidget
        #####################################
        sText = """
        "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque 
        ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia 
        voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. 
        Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi 
        tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem 
        ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea 
        voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"        
        """
        wdDockTextEdit = QtWidgets.QDockWidget("Editor", self)
        wdTextEdit = QtWidgets.QTextEdit(sText)
        wdDockTextEdit.setWidget(wdTextEdit)
        self.addDockWidget(QtCore.Qt.RightDockWidgetArea, wdDockTextEdit)

        #change the DockWidget StyleSheet with signal StyleSheet_2
        qApp.connect(QtCore.SIGNAL("StyleSheet_2(QString)"),
                     wdDockTextEdit.setStyleSheet)
Ejemplo n.º 5
0
    def initUI(self):

        cal = QtWidgets.QCalendarWidget(self)
        cal.setGridVisible(True)
        cal.move(20, 20)
        cal.clicked[QtCore.QDate].connect(self.showDate)

        self.lbl = QtWidgets.QLabel(self)
        date = cal.selectedDate()
        self.lbl.setText(date.toString())
        self.lbl.move(130, 260)

        self.setGeometry(300, 300, 350, 300)
        self.setWindowTitle('Calendar')
        self.show()
Ejemplo n.º 6
0
    def init(self):
        c = QtWidgets.QCalendarWidget(self)
        c.setGridVisible(True)
        c.move(20, 20)
        l = QtWidgets.QLabel(self)
        l.move(20, 250)
        self.setGeometry(100, 100, 500, 500)
        self.setWindowTitle("Select Date Calender")

        def show_data(date):
            l.setText(date.toString())

        c.clicked[QtCore.QDate].connect(show_data)
        show_data(c.selectedDate())
        self.show()
Ejemplo n.º 7
0
    def __init__(self):
        super(BScalender, self).__init__()
        # self.onCreateInterface()
        #print 'creating calender'
        #creat widget
        self.calender = QtWidgets.QCalendarWidget()
        self.title = QtWidgets.QLabel('TO Calender!')
        self.title.setAlignment(QtCore.Qt.AlignCenter)
        self.title.setStyleSheet('color:green; font-size:20px;')

        #layout
        layout = QtWidgets.QVBoxLayout()

        layout.addWidget(self.title)
        layout.addWidget(self.calender)

        self.setLayout(layout)
Ejemplo n.º 8
0
 def setupUi(self, MainWindow):
     MainWindow.setObjectName("MainWindow")
     MainWindow.resize(800, 600)
     self.centralwidget = QtWidgets.QWidget(MainWindow)
     self.centralwidget.setObjectName("centralwidget")
     self.calendarWidget = QtWidgets.QCalendarWidget(self.centralwidget)
     self.calendarWidget.setGeometry(QtCore.QRect(130, 160, 248, 197))
     self.calendarWidget.setObjectName("calendarWidget")
     MainWindow.setCentralWidget(self.centralwidget)
     self.menubar = QtWidgets.QMenuBar(MainWindow)
     self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
     self.menubar.setObjectName("menubar")
     MainWindow.setMenuBar(self.menubar)
     self.statusbar = QtWidgets.QStatusBar(MainWindow)
     self.statusbar.setObjectName("statusbar")
     MainWindow.setStatusBar(self.statusbar)
     self.retranslateUi(MainWindow)
     QtCore.QMetaObject.connectSlotsByName(MainWindow)
Ejemplo n.º 9
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(450, 360, 331, 191))
        self.pushButton.setObjectName("pushButton")
        self.timeEdit = QtWidgets.QTimeEdit(self.centralwidget)
        self.timeEdit.setGeometry(QtCore.QRect(180, 490, 118, 24))
        self.timeEdit.setObjectName("timeEdit")
        self.dateEdit = QtWidgets.QDateEdit(self.centralwidget)
        self.dateEdit.setGeometry(QtCore.QRect(40, 490, 110, 24))
        self.dateEdit.setObjectName("dateEdit")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(60, 0, 91, 41))
        self.label.setObjectName("label")
        self.dial = QtWidgets.QDial(self.centralwidget)
        self.dial.setGeometry(QtCore.QRect(610, 220, 161, 151))
        self.dial.setObjectName("dial")
        self.horizontalSlider = QtWidgets.QSlider(self.centralwidget)
        self.horizontalSlider.setGeometry(QtCore.QRect(300, 510, 160, 22))
        self.horizontalSlider.setSliderPosition(50)
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setTickInterval(6)
        self.horizontalSlider.setObjectName("horizontalSlider")
        self.calendarWidget = QtWidgets.QCalendarWidget(self.centralwidget)
        self.calendarWidget.setGeometry(QtCore.QRect(460, 0, 296, 173))
        self.calendarWidget.setObjectName("calendarWidget")
        self.tableView = QtWidgets.QTableView(self.centralwidget)
        self.tableView.setGeometry(QtCore.QRect(40, 50, 391, 401))
        self.tableView.setObjectName("tableView")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar()
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Ejemplo n.º 10
0
    def setup_ui(self):
        # this attribute centralizes all widgets for the instance
        self.layoutmain = QtWidgets.QVBoxLayout(self)
        # Widget for the title movie
        self.ln_MovieTitle = QtWidgets.QLineEdit()
        # Widget for the button add
        self.btn_Add = QtWidgets.QPushButton("Add movie")
        # Widget for the view all movies
        self.list_View = QtWidgets.QListWidget()
        # We configure the possibility of choice multiple movies
        self.list_View.setSelectionMode(
            QtWidgets.QListWidget.ExtendedSelection)
        # Widget for the button remove
        self.btn_Delete = QtWidgets.QPushButton("Remove movie(s)")
        self.date_Calendar = QtWidgets.QCalendarWidget()

        # This method add widget at the layout, one for widget
        self.layoutmain.addWidget(self.ln_MovieTitle)
        self.layoutmain.addWidget(self.date_Calendar)
        self.layoutmain.addWidget(self.btn_Add)
        self.layoutmain.addWidget(self.list_View)
        self.layoutmain.addWidget(self.btn_Delete)
Ejemplo n.º 11
0
    def __init__(self, parent=None):

        super().__init__(parent)
        self.path = ""
        self.path_labels = "C:/Users/Petar Stefanovic/Desktop/singi/I_semestar/MRS/P_1/labels.csv"
        self.model = 0
        self.layout = QtWidgets.QVBoxLayout()

        self.vbox_layout = QtWidgets.QVBoxLayout()
        self.hbox_layout_1 = QtWidgets.QHBoxLayout()
        self.hbox_layout_2 = QtWidgets.QHBoxLayout()
        self.hbox_layout_3 = QtWidgets.QHBoxLayout()

        # =============================================================================
        #         Buttons
        # =============================================================================
        self.open_calendar = QtWidgets.QPushButton(
            QtGui.QIcon('resources/icons/folder-open-document.png'),
            'Open calendar', self)
        self.delete_event = QtWidgets.QPushButton(
            QtGui.QIcon('resources/icons/cross.png'), 'Remove event', self)
        self.save_event = QtWidgets.QPushButton(
            QtGui.QIcon('resources/icons/disk.png'), 'Save calendar', self)
        self.create_label = QtWidgets.QPushButton(
            QtGui.QIcon('resources/icons/application-plus.png'),
            'Create label', self)

        self.open_calendar.clicked.connect(self._on_open)
        self.delete_event.clicked.connect(self._on_remove)
        self.save_event.clicked.connect(self._on_save)
        self.create_label.clicked.connect(self._on_create_label)

        # =============================================================================
        #         Kalendar
        # =============================================================================
        self.calendar = QtWidgets.QCalendarWidget()
        self.calendar.setFirstDayOfWeek(QtCore.Qt.Monday)
        self.calendar.setGridVisible(True)
        self.calendar.setHorizontalHeaderFormat(
            QtWidgets.QCalendarWidget().HorizontalHeaderFormat(3))

        # format = QtGui.QTextCharFormat()
        # format.setFontCapitalization(QtGui.QFont().Capitalization(1))
        # self.calendar.setHeaderTextFormat(format)

        self.calendar.setStyleSheet(
            'background: white; color: black; font: 15px')
        self.calendar.setWindowTitle('Calendar Widget')

        # self.calendar.mousePressEvent()

        # rmb = QtGui.QMouseEvent(QtCore.QPoint(QtGui.QMouseEvent().globalX(), QtGui.QMouseEvent().globalY()))
        # print(rmb)
        # =============================================================================
        #         Current Date
        # =============================================================================
        self.current_date = QtWidgets.QDateEdit()
        self.current_date.setDisplayFormat('dd MMM yyyy')
        self.current_date.setDate(self.calendar.selectedDate())
        self.current_date.dateChanged.connect(self.calendar.setSelectedDate)

        self.current_date.setStyleSheet('font: 15px bold')
        # self.calendar.selectionChanged.connect(self.selected_date_change)
        # self.calendar.selectionChanged.connect(self.table_change)
        # =============================================================================
        #         Pravimo apstraktni View preko kalendara kako bi omogucili otvaranje meni-ja na RMB
        # =============================================================================
        self.table_view = QtWidgets.QTableView(self)
        self.table_view.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
        self.table_view.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.table_view.setStyleSheet('font: 15px')

        self.hbox_layout_1.addWidget(self.open_calendar)
        self.hbox_layout_1.addWidget(self.delete_event)
        self.hbox_layout_1.addWidget(self.save_event)
        self.hbox_layout_1.addWidget(self.create_label)
        self.hbox_layout_2.addWidget(self.current_date)
        self.hbox_layout_3.addWidget(self.calendar)
        self.vbox_layout.addLayout(self.hbox_layout_1)
        self.vbox_layout.addLayout(self.hbox_layout_2)
        self.vbox_layout.addLayout(self.hbox_layout_3)
        self.vbox_layout.addWidget(self.table_view, 1, 0)

        self.layout.addLayout(self.vbox_layout)
        self.setLayout(self.layout)

        self._table = self.calendar.findChild(QtWidgets.QTableView)
        self._table.setMouseTracking(True)
        self._table.viewport().installEventFilter(self)

        self.single_click_timer = QtCore.QTimer()
        self.single_click_timer.setInterval(200)
Ejemplo n.º 12
0
 def setupUi(self, zhu_jie_mian):
     zhu_jie_mian.setObjectName("zhu_jie_mian")
     zhu_jie_mian.setWindowModality(QtCore.Qt.NonModal)
     zhu_jie_mian.resize(1113, 685)
     sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
     sizePolicy.setHorizontalStretch(0)
     sizePolicy.setVerticalStretch(0)
     sizePolicy.setHeightForWidth(zhu_jie_mian.sizePolicy().hasHeightForWidth())
     zhu_jie_mian.setSizePolicy(sizePolicy)
     icon = QtGui.QIcon()
     icon.addPixmap(QtGui.QPixmap("ICO/主题.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     zhu_jie_mian.setWindowIcon(icon)
     zhu_jie_mian.setStatusTip("")
     zhu_jie_mian.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
     self.centralwidget = QtWidgets.QWidget(zhu_jie_mian)
     sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
     sizePolicy.setHorizontalStretch(0)
     sizePolicy.setVerticalStretch(0)
     sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
     self.centralwidget.setSizePolicy(sizePolicy)
     self.centralwidget.setMinimumSize(QtCore.QSize(800, 505))
     self.centralwidget.setObjectName("centralwidget")
     self.gridLayout_3 = QtWidgets.QGridLayout(self.centralwidget)
     self.gridLayout_3.setSpacing(1)
     self.gridLayout_3.setContentsMargins(1, 1, 0, 1)
     self.gridLayout_3.setObjectName("gridLayout_3")
     self.ZhuCaiDan = QtWidgets.QTabWidget(self.centralwidget)
     self.ZhuCaiDan.setEnabled(True)
     self.ZhuCaiDan.setMouseTracking(True)
     self.ZhuCaiDan.setTabletTracking(True)
     self.ZhuCaiDan.setFocusPolicy(QtCore.Qt.ClickFocus)
     self.ZhuCaiDan.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
     self.ZhuCaiDan.setAcceptDrops(True)
     self.ZhuCaiDan.setToolTipDuration(-1)
     self.ZhuCaiDan.setStatusTip("")
     self.ZhuCaiDan.setStyleSheet("")
     self.ZhuCaiDan.setObjectName("ZhuCaiDan")
     self.ranwu = QtWidgets.QWidget()
     self.ranwu.setObjectName("ranwu")
     self.gridLayout_4 = QtWidgets.QGridLayout(self.ranwu)
     self.gridLayout_4.setObjectName("gridLayout_4")
     self.gridLayout_2 = QtWidgets.QGridLayout()
     self.gridLayout_2.setObjectName("gridLayout_2")
     self.calendarWidget_2 = QtWidgets.QCalendarWidget(self.ranwu)
     self.calendarWidget_2.setObjectName("calendarWidget_2")
     self.gridLayout_2.addWidget(self.calendarWidget_2, 3, 2, 1, 1)
     self.lineEdit_4 = QtWidgets.QLineEdit(self.ranwu)
     self.lineEdit_4.setObjectName("lineEdit_4")
     self.gridLayout_2.addWidget(self.lineEdit_4, 0, 1, 1, 1)
     self.label_7 = QtWidgets.QLabel(self.ranwu)
     self.label_7.setObjectName("label_7")
     self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 1)
     self.progressBar = QtWidgets.QProgressBar(self.ranwu)
     self.progressBar.setProperty("value", 24)
     self.progressBar.setObjectName("progressBar")
     self.gridLayout_2.addWidget(self.progressBar, 4, 0, 1, 2)
     self.textBrowser_2 = QtWidgets.QTextBrowser(self.ranwu)
     self.textBrowser_2.setObjectName("textBrowser_2")
     self.gridLayout_2.addWidget(self.textBrowser_2, 1, 1, 1, 1)
     self.label_8 = QtWidgets.QLabel(self.ranwu)
     self.label_8.setObjectName("label_8")
     self.gridLayout_2.addWidget(self.label_8, 1, 0, 3, 1)
     self.gridLayout_4.addLayout(self.gridLayout_2, 0, 0, 1, 1)
     self.formLayout = QtWidgets.QFormLayout()
     self.formLayout.setObjectName("formLayout")
     self.label_10 = QtWidgets.QLabel(self.ranwu)
     self.label_10.setObjectName("label_10")
     self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10)
     self.lineEdit_6 = QtWidgets.QLineEdit(self.ranwu)
     self.lineEdit_6.setObjectName("lineEdit_6")
     self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.lineEdit_6)
     self.label_11 = QtWidgets.QLabel(self.ranwu)
     self.label_11.setObjectName("label_11")
     self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_11)
     self.lineEdit_7 = QtWidgets.QLineEdit(self.ranwu)
     self.lineEdit_7.setObjectName("lineEdit_7")
     self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.lineEdit_7)
     self.textBrowser_3 = QtWidgets.QTextBrowser(self.ranwu)
     self.textBrowser_3.setObjectName("textBrowser_3")
     self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.textBrowser_3)
     self.label_9 = QtWidgets.QLabel(self.ranwu)
     self.label_9.setObjectName("label_9")
     self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_9)
     self.lineEdit_5 = QtWidgets.QLineEdit(self.ranwu)
     self.lineEdit_5.setObjectName("lineEdit_5")
     self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEdit_5)
     self.gridLayout_4.addLayout(self.formLayout, 0, 1, 1, 1)
     self.ZhuCaiDan.addTab(self.ranwu, "")
     self.zhicaidan = QtWidgets.QWidget()
     self.zhicaidan.setObjectName("zhicaidan")
     self.ZhuCaiDan.addTab(self.zhicaidan, "")
     self.renyuanxinxi = QtWidgets.QWidget()
     self.renyuanxinxi.setObjectName("renyuanxinxi")
     self.gridLayout_5 = QtWidgets.QGridLayout(self.renyuanxinxi)
     self.gridLayout_5.setSpacing(0)
     self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_5.setObjectName("gridLayout_5")
     self.groupBox_2 = QtWidgets.QGroupBox(self.renyuanxinxi)
     self.groupBox_2.setMaximumSize(QtCore.QSize(16777215, 60))
     self.groupBox_2.setTitle("")
     self.groupBox_2.setObjectName("groupBox_2")
     self.layoutWidget = QtWidgets.QWidget(self.groupBox_2)
     self.layoutWidget.setGeometry(QtCore.QRect(0, 0, 390, 60))
     self.layoutWidget.setObjectName("layoutWidget")
     self.gridLayout_6 = QtWidgets.QGridLayout(self.layoutWidget)
     self.gridLayout_6.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_6.setObjectName("gridLayout_6")
     self.toolButton_6 = QtWidgets.QToolButton(self.layoutWidget)
     icon1 = QtGui.QIcon()
     icon1.addPixmap(QtGui.QPixmap("ICO/png/1110305.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_6.setIcon(icon1)
     self.toolButton_6.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_6.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_6.setAutoRaise(True)
     self.toolButton_6.setObjectName("toolButton_6")
     self.gridLayout_6.addWidget(self.toolButton_6, 0, 9, 1, 1)
     self.toolButton_8 = QtWidgets.QToolButton(self.layoutWidget)
     icon2 = QtGui.QIcon()
     icon2.addPixmap(QtGui.QPixmap("ICO/png/1081628.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_8.setIcon(icon2)
     self.toolButton_8.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_8.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_8.setAutoRaise(True)
     self.toolButton_8.setObjectName("toolButton_8")
     self.gridLayout_6.addWidget(self.toolButton_8, 0, 7, 1, 1)
     self.line = QtWidgets.QFrame(self.layoutWidget)
     self.line.setFrameShape(QtWidgets.QFrame.VLine)
     self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line.setObjectName("line")
     self.gridLayout_6.addWidget(self.line, 0, 3, 1, 1)
     self.toolButton_5 = QtWidgets.QToolButton(self.layoutWidget)
     icon3 = QtGui.QIcon()
     icon3.addPixmap(QtGui.QPixmap("ICO/png/1081656.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_5.setIcon(icon3)
     self.toolButton_5.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_5.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_5.setAutoRaise(True)
     self.toolButton_5.setObjectName("toolButton_5")
     self.gridLayout_6.addWidget(self.toolButton_5, 0, 5, 1, 1)
     self.toolButton = QtWidgets.QToolButton(self.layoutWidget)
     icon4 = QtGui.QIcon()
     icon4.addPixmap(QtGui.QPixmap("ICO/png/1081676.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton.setIcon(icon4)
     self.toolButton.setIconSize(QtCore.QSize(36, 36))
     self.toolButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton.setAutoRaise(True)
     self.toolButton.setObjectName("toolButton")
     self.gridLayout_6.addWidget(self.toolButton, 0, 0, 1, 1)
     self.toolButton_2 = QtWidgets.QToolButton(self.layoutWidget)
     icon5 = QtGui.QIcon()
     icon5.addPixmap(QtGui.QPixmap("ICO/png/1081640.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_2.setIcon(icon5)
     self.toolButton_2.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_2.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_2.setAutoRaise(True)
     self.toolButton_2.setObjectName("toolButton_2")
     self.gridLayout_6.addWidget(self.toolButton_2, 0, 1, 1, 1)
     self.line_2 = QtWidgets.QFrame(self.layoutWidget)
     self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
     self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line_2.setObjectName("line_2")
     self.gridLayout_6.addWidget(self.line_2, 0, 6, 1, 1)
     self.toolButton_4 = QtWidgets.QToolButton(self.layoutWidget)
     icon6 = QtGui.QIcon()
     icon6.addPixmap(QtGui.QPixmap("ICO/png/1081662.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_4.setIcon(icon6)
     self.toolButton_4.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_4.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_4.setAutoRaise(True)
     self.toolButton_4.setObjectName("toolButton_4")
     self.gridLayout_6.addWidget(self.toolButton_4, 0, 4, 1, 1)
     self.toolButton_3 = QtWidgets.QToolButton(self.layoutWidget)
     icon7 = QtGui.QIcon()
     icon7.addPixmap(QtGui.QPixmap("ICO/png/1073170.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_3.setIcon(icon7)
     self.toolButton_3.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_3.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_3.setAutoRaise(True)
     self.toolButton_3.setObjectName("toolButton_3")
     self.gridLayout_6.addWidget(self.toolButton_3, 0, 2, 1, 1)
     self.line_3 = QtWidgets.QFrame(self.layoutWidget)
     self.line_3.setFrameShape(QtWidgets.QFrame.VLine)
     self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line_3.setObjectName("line_3")
     self.gridLayout_6.addWidget(self.line_3, 0, 8, 1, 1)
     self.gridLayout_5.addWidget(self.groupBox_2, 1, 0, 1, 1)
     self.tableWidget = QtWidgets.QTableWidget(self.renyuanxinxi)
     sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
     sizePolicy.setHorizontalStretch(0)
     sizePolicy.setVerticalStretch(0)
     sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth())
     self.tableWidget.setSizePolicy(sizePolicy)
     self.tableWidget.setAutoScroll(True)
     self.tableWidget.setObjectName("tableWidget")
     self.tableWidget.setColumnCount(16)
     self.tableWidget.setRowCount(0)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(0, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(1, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(2, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(3, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(4, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(5, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(6, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(7, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(8, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(9, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(10, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(11, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(12, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(13, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(14, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(15, item)
     self.gridLayout_5.addWidget(self.tableWidget, 3, 0, 1, 1)
     self.groupBox = QtWidgets.QGroupBox(self.renyuanxinxi)
     self.groupBox.setMaximumSize(QtCore.QSize(16777215, 40))
     self.groupBox.setTitle("")
     self.groupBox.setObjectName("groupBox")
     self.chaxun = QtWidgets.QPushButton(self.groupBox)
     self.chaxun.setEnabled(True)
     self.chaxun.setGeometry(QtCore.QRect(790, 9, 75, 23))
     self.chaxun.setObjectName("chaxun")
     self.lineEdit_2 = QtWidgets.QLineEdit(self.groupBox)
     self.lineEdit_2.setGeometry(QtCore.QRect(190, 10, 81, 20))
     self.lineEdit_2.setMinimumSize(QtCore.QSize(81, 20))
     self.lineEdit_2.setMaximumSize(QtCore.QSize(81, 20))
     self.lineEdit_2.setObjectName("lineEdit_2")
     self.lineEdit_3 = QtWidgets.QLineEdit(self.groupBox)
     self.lineEdit_3.setGeometry(QtCore.QRect(320, 10, 81, 20))
     self.lineEdit_3.setMinimumSize(QtCore.QSize(81, 20))
     self.lineEdit_3.setMaximumSize(QtCore.QSize(81, 20))
     self.lineEdit_3.setObjectName("lineEdit_3")
     self.label_5 = QtWidgets.QLabel(self.groupBox)
     self.label_5.setGeometry(QtCore.QRect(555, 11, 31, 16))
     self.label_5.setMaximumSize(QtCore.QSize(36, 16))
     self.label_5.setObjectName("label_5")
     self.dateEdit_2 = QtWidgets.QDateEdit(self.groupBox)
     self.dateEdit_2.setGeometry(QtCore.QRect(697, 10, 88, 20))
     self.dateEdit_2.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit_2.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit_2.setCurrentSection(QtWidgets.QDateTimeEdit.YearSection)
     self.dateEdit_2.setCalendarPopup(True)
     self.dateEdit_2.setDate(QtCore.QDate(2020, 1, 1))
     self.dateEdit_2.setObjectName("dateEdit_2")
     self.label_2 = QtWidgets.QLabel(self.groupBox)
     self.label_2.setGeometry(QtCore.QRect(9, 11, 31, 16))
     self.label_2.setMaximumSize(QtCore.QSize(36, 16))
     self.label_2.setStyleSheet("")
     self.label_2.setObjectName("label_2")
     self.label_3 = QtWidgets.QLabel(self.groupBox)
     self.label_3.setGeometry(QtCore.QRect(160, 11, 31, 16))
     self.label_3.setMaximumSize(QtCore.QSize(36, 16))
     self.label_3.setObjectName("label_3")
     self.label_4 = QtWidgets.QLabel(self.groupBox)
     self.label_4.setGeometry(QtCore.QRect(290, 11, 31, 16))
     self.label_4.setMaximumSize(QtCore.QSize(36, 16))
     self.label_4.setObjectName("label_4")
     self.label_6 = QtWidgets.QLabel(self.groupBox)
     self.label_6.setGeometry(QtCore.QRect(680, 10, 16, 16))
     self.label_6.setObjectName("label_6")
     self.dateEdit = QtWidgets.QDateEdit(self.groupBox)
     self.dateEdit.setGeometry(QtCore.QRect(587, 10, 88, 20))
     self.dateEdit.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit.setCalendarPopup(True)
     self.dateEdit.setDate(QtCore.QDate(2020, 1, 1))
     self.dateEdit.setObjectName("dateEdit")
     self.label_13 = QtWidgets.QLabel(self.groupBox)
     self.label_13.setGeometry(QtCore.QRect(410, 10, 60, 20))
     self.label_13.setMaximumSize(QtCore.QSize(60, 20))
     self.label_13.setObjectName("label_13")
     self.comboBox = QtWidgets.QComboBox(self.groupBox)
     self.comboBox.setGeometry(QtCore.QRect(470, 10, 81, 22))
     self.comboBox.setObjectName("comboBox")
     self.comboBox.addItem("")
     self.comboBox.addItem("")
     self.comboBox.addItem("")
     self.comboBox.addItem("")
     self.comboBox_8 = QtWidgets.QComboBox(self.groupBox)
     self.comboBox_8.setGeometry(QtCore.QRect(40, 10, 111, 20))
     self.comboBox_8.setMaximumSize(QtCore.QSize(800, 20))
     self.comboBox_8.setEditable(True)
     self.comboBox_8.setObjectName("comboBox_8")
     self.gridLayout_5.addWidget(self.groupBox, 2, 0, 1, 1)
     self.ZhuCaiDan.addTab(self.renyuanxinxi, "")
     self.xiangmuxinxi = QtWidgets.QWidget()
     self.xiangmuxinxi.setObjectName("xiangmuxinxi")
     self.gridLayout_8 = QtWidgets.QGridLayout(self.xiangmuxinxi)
     self.gridLayout_8.setSpacing(0)
     self.gridLayout_8.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_8.setObjectName("gridLayout_8")
     self.tableWidget_2 = QtWidgets.QTableWidget(self.xiangmuxinxi)
     sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
     sizePolicy.setHorizontalStretch(0)
     sizePolicy.setVerticalStretch(0)
     sizePolicy.setHeightForWidth(self.tableWidget_2.sizePolicy().hasHeightForWidth())
     self.tableWidget_2.setSizePolicy(sizePolicy)
     self.tableWidget_2.setAutoScroll(True)
     self.tableWidget_2.setObjectName("tableWidget_2")
     self.tableWidget_2.setColumnCount(15)
     self.tableWidget_2.setRowCount(0)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(16, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(17, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(18, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(19, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(20, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(21, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(22, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(23, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(24, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(25, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(26, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(27, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(28, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(29, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(30, item)
     self.gridLayout_8.addWidget(self.tableWidget_2, 3, 0, 1, 1)
     self.groupBox_4 = QtWidgets.QGroupBox(self.xiangmuxinxi)
     self.groupBox_4.setMaximumSize(QtCore.QSize(16777215, 60))
     self.groupBox_4.setTitle("")
     self.groupBox_4.setObjectName("groupBox_4")
     self.layoutWidget_2 = QtWidgets.QWidget(self.groupBox_4)
     self.layoutWidget_2.setGeometry(QtCore.QRect(0, 0, 390, 60))
     self.layoutWidget_2.setObjectName("layoutWidget_2")
     self.gridLayout_7 = QtWidgets.QGridLayout(self.layoutWidget_2)
     self.gridLayout_7.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_7.setObjectName("gridLayout_7")
     self.toolButton_7 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_7.setIcon(icon1)
     self.toolButton_7.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_7.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_7.setAutoRaise(True)
     self.toolButton_7.setObjectName("toolButton_7")
     self.gridLayout_7.addWidget(self.toolButton_7, 0, 9, 1, 1)
     self.toolButton_9 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_9.setIcon(icon2)
     self.toolButton_9.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_9.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_9.setAutoRaise(True)
     self.toolButton_9.setObjectName("toolButton_9")
     self.gridLayout_7.addWidget(self.toolButton_9, 0, 7, 1, 1)
     self.line_4 = QtWidgets.QFrame(self.layoutWidget_2)
     self.line_4.setFrameShape(QtWidgets.QFrame.VLine)
     self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line_4.setObjectName("line_4")
     self.gridLayout_7.addWidget(self.line_4, 0, 3, 1, 1)
     self.toolButton_10 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_10.setIcon(icon3)
     self.toolButton_10.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_10.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_10.setAutoRaise(True)
     self.toolButton_10.setObjectName("toolButton_10")
     self.gridLayout_7.addWidget(self.toolButton_10, 0, 5, 1, 1)
     self.toolButton_11 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_11.setIcon(icon4)
     self.toolButton_11.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_11.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_11.setAutoRaise(True)
     self.toolButton_11.setObjectName("toolButton_11")
     self.gridLayout_7.addWidget(self.toolButton_11, 0, 0, 1, 1)
     self.toolButton_12 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_12.setIcon(icon5)
     self.toolButton_12.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_12.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_12.setAutoRaise(True)
     self.toolButton_12.setObjectName("toolButton_12")
     self.gridLayout_7.addWidget(self.toolButton_12, 0, 1, 1, 1)
     self.line_5 = QtWidgets.QFrame(self.layoutWidget_2)
     self.line_5.setFrameShape(QtWidgets.QFrame.VLine)
     self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line_5.setObjectName("line_5")
     self.gridLayout_7.addWidget(self.line_5, 0, 6, 1, 1)
     self.toolButton_13 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_13.setIcon(icon6)
     self.toolButton_13.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_13.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_13.setAutoRaise(True)
     self.toolButton_13.setObjectName("toolButton_13")
     self.gridLayout_7.addWidget(self.toolButton_13, 0, 4, 1, 1)
     self.toolButton_14 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_14.setIcon(icon7)
     self.toolButton_14.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_14.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_14.setAutoRaise(True)
     self.toolButton_14.setObjectName("toolButton_14")
     self.gridLayout_7.addWidget(self.toolButton_14, 0, 2, 1, 1)
     self.line_6 = QtWidgets.QFrame(self.layoutWidget_2)
     self.line_6.setFrameShape(QtWidgets.QFrame.VLine)
     self.line_6.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line_6.setObjectName("line_6")
     self.gridLayout_7.addWidget(self.line_6, 0, 8, 1, 1)
     self.gridLayout_8.addWidget(self.groupBox_4, 0, 0, 1, 1)
     self.groupBox_3 = QtWidgets.QGroupBox(self.xiangmuxinxi)
     self.groupBox_3.setMaximumSize(QtCore.QSize(16777215, 40))
     self.groupBox_3.setTitle("")
     self.groupBox_3.setObjectName("groupBox_3")
     self.chaxun_2 = QtWidgets.QPushButton(self.groupBox_3)
     self.chaxun_2.setEnabled(True)
     self.chaxun_2.setGeometry(QtCore.QRect(1090, 10, 75, 23))
     self.chaxun_2.setObjectName("chaxun_2")
     self.label_12 = QtWidgets.QLabel(self.groupBox_3)
     self.label_12.setGeometry(QtCore.QRect(755, 12, 31, 16))
     self.label_12.setMaximumSize(QtCore.QSize(36, 16))
     self.label_12.setObjectName("label_12")
     self.dateEdit_3 = QtWidgets.QDateEdit(self.groupBox_3)
     self.dateEdit_3.setGeometry(QtCore.QRect(897, 11, 88, 20))
     self.dateEdit_3.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit_3.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit_3.setCalendarPopup(True)
     self.dateEdit_3.setObjectName("dateEdit_3")
     self.label_14 = QtWidgets.QLabel(self.groupBox_3)
     self.label_14.setGeometry(QtCore.QRect(9, 11, 31, 16))
     self.label_14.setMaximumSize(QtCore.QSize(36, 16))
     self.label_14.setStyleSheet("")
     self.label_14.setObjectName("label_14")
     self.label_15 = QtWidgets.QLabel(self.groupBox_3)
     self.label_15.setGeometry(QtCore.QRect(120, 10, 31, 16))
     self.label_15.setMaximumSize(QtCore.QSize(36, 16))
     self.label_15.setObjectName("label_15")
     self.label_17 = QtWidgets.QLabel(self.groupBox_3)
     self.label_17.setGeometry(QtCore.QRect(880, 11, 16, 16))
     self.label_17.setObjectName("label_17")
     self.dateEdit_4 = QtWidgets.QDateEdit(self.groupBox_3)
     self.dateEdit_4.setGeometry(QtCore.QRect(787, 11, 88, 20))
     self.dateEdit_4.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit_4.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit_4.setCalendarPopup(True)
     self.dateEdit_4.setObjectName("dateEdit_4")
     self.label_18 = QtWidgets.QLabel(self.groupBox_3)
     self.label_18.setGeometry(QtCore.QRect(610, 10, 60, 20))
     self.label_18.setMaximumSize(QtCore.QSize(60, 20))
     self.label_18.setObjectName("label_18")
     self.comboBox_2 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_2.setGeometry(QtCore.QRect(460, 9, 51, 22))
     self.comboBox_2.setObjectName("comboBox_2")
     self.comboBox_2.addItem("")
     self.comboBox_2.addItem("")
     self.comboBox_2.addItem("")
     self.comboBox_2.addItem("")
     self.comboBox_3 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_3.setGeometry(QtCore.QRect(40, 9, 69, 22))
     self.comboBox_3.setEditable(True)
     self.comboBox_3.setObjectName("comboBox_3")
     self.comboBox_4 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_4.setGeometry(QtCore.QRect(150, 9, 69, 22))
     self.comboBox_4.setEditable(True)
     self.comboBox_4.setObjectName("comboBox_4")
     self.comboBox_5 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_5.setGeometry(QtCore.QRect(290, 9, 111, 22))
     self.comboBox_5.setEditable(True)
     self.comboBox_5.setObjectName("comboBox_5")
     self.label_19 = QtWidgets.QLabel(self.groupBox_3)
     self.label_19.setGeometry(QtCore.QRect(230, 10, 61, 20))
     self.label_19.setObjectName("label_19")
     self.label_20 = QtWidgets.QLabel(self.groupBox_3)
     self.label_20.setGeometry(QtCore.QRect(420, 10, 51, 20))
     self.label_20.setMaximumSize(QtCore.QSize(60, 20))
     self.label_20.setObjectName("label_20")
     self.comboBox_6 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_6.setGeometry(QtCore.QRect(510, 9, 81, 22))
     self.comboBox_6.setEditable(True)
     self.comboBox_6.setObjectName("comboBox_6")
     self.comboBox_7 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_7.setGeometry(QtCore.QRect(670, 10, 51, 22))
     self.comboBox_7.setObjectName("comboBox_7")
     self.comboBox_7.addItem("")
     self.comboBox_7.addItem("")
     self.comboBox_7.addItem("")
     self.checkBox_3 = QtWidgets.QCheckBox(self.groupBox_3)
     self.checkBox_3.setGeometry(QtCore.QRect(990, 2, 89, 16))
     self.checkBox_3.setObjectName("checkBox_3")
     self.checkBox_4 = QtWidgets.QCheckBox(self.groupBox_3)
     self.checkBox_4.setGeometry(QtCore.QRect(990, 20, 89, 16))
     self.checkBox_4.setObjectName("checkBox_4")
     self.gridLayout_8.addWidget(self.groupBox_3, 1, 0, 1, 1)
     self.ZhuCaiDan.addTab(self.xiangmuxinxi, "")
     self.jiancebaogao = QtWidgets.QWidget()
     self.jiancebaogao.setObjectName("jiancebaogao")
     self.gridLayout_10 = QtWidgets.QGridLayout(self.jiancebaogao)
     self.gridLayout_10.setSpacing(0)
     self.gridLayout_10.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_10.setObjectName("gridLayout_10")
     self.groupBox_6 = QtWidgets.QGroupBox(self.jiancebaogao)
     self.groupBox_6.setMaximumSize(QtCore.QSize(16777215, 60))
     self.groupBox_6.setTitle("")
     self.groupBox_6.setObjectName("groupBox_6")
     self.layoutWidget_3 = QtWidgets.QWidget(self.groupBox_6)
     self.layoutWidget_3.setGeometry(QtCore.QRect(0, 0, 371, 60))
     self.layoutWidget_3.setObjectName("layoutWidget_3")
     self.gridLayout_9 = QtWidgets.QGridLayout(self.layoutWidget_3)
     self.gridLayout_9.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_9.setObjectName("gridLayout_9")
     self.toolButton_15 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_15.setIcon(icon6)
     self.toolButton_15.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_15.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_15.setAutoRaise(True)
     self.toolButton_15.setObjectName("toolButton_15")
     self.gridLayout_9.addWidget(self.toolButton_15, 0, 3, 1, 1)
     self.toolButton_16 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_16.setIcon(icon7)
     self.toolButton_16.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_16.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_16.setAutoRaise(True)
     self.toolButton_16.setObjectName("toolButton_16")
     self.gridLayout_9.addWidget(self.toolButton_16, 0, 2, 1, 1)
     self.toolButton_17 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_17.setIcon(icon2)
     self.toolButton_17.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_17.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_17.setAutoRaise(True)
     self.toolButton_17.setObjectName("toolButton_17")
     self.gridLayout_9.addWidget(self.toolButton_17, 0, 6, 1, 1)
     self.toolButton_18 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_18.setIcon(icon5)
     self.toolButton_18.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_18.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_18.setAutoRaise(True)
     self.toolButton_18.setObjectName("toolButton_18")
     self.gridLayout_9.addWidget(self.toolButton_18, 0, 1, 1, 1)
     self.toolButton_19 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_19.setIcon(icon4)
     self.toolButton_19.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_19.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_19.setAutoRaise(True)
     self.toolButton_19.setObjectName("toolButton_19")
     self.gridLayout_9.addWidget(self.toolButton_19, 0, 0, 1, 1)
     self.toolButton_20 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_20.setIcon(icon3)
     self.toolButton_20.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_20.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_20.setAutoRaise(True)
     self.toolButton_20.setObjectName("toolButton_20")
     self.gridLayout_9.addWidget(self.toolButton_20, 0, 4, 1, 1)
     self.toolButton_21 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_21.setIcon(icon1)
     self.toolButton_21.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_21.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_21.setAutoRaise(True)
     self.toolButton_21.setObjectName("toolButton_21")
     self.gridLayout_9.addWidget(self.toolButton_21, 0, 7, 1, 1)
     self.gridLayout_10.addWidget(self.groupBox_6, 0, 0, 1, 1)
     self.groupBox_5 = QtWidgets.QGroupBox(self.jiancebaogao)
     self.groupBox_5.setMaximumSize(QtCore.QSize(16777215, 40))
     self.groupBox_5.setTitle("")
     self.groupBox_5.setObjectName("groupBox_5")
     self.chaxun_4 = QtWidgets.QPushButton(self.groupBox_5)
     self.chaxun_4.setEnabled(True)
     self.chaxun_4.setGeometry(QtCore.QRect(1050, 10, 75, 23))
     self.chaxun_4.setObjectName("chaxun_4")
     self.label_27 = QtWidgets.QLabel(self.groupBox_5)
     self.label_27.setGeometry(QtCore.QRect(688, 12, 31, 16))
     self.label_27.setMaximumSize(QtCore.QSize(36, 16))
     self.label_27.setObjectName("label_27")
     self.dateEdit_7 = QtWidgets.QDateEdit(self.groupBox_5)
     self.dateEdit_7.setGeometry(QtCore.QRect(830, 11, 88, 20))
     self.dateEdit_7.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit_7.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit_7.setCalendarPopup(True)
     self.dateEdit_7.setObjectName("dateEdit_7")
     self.label_28 = QtWidgets.QLabel(self.groupBox_5)
     self.label_28.setGeometry(QtCore.QRect(9, 11, 31, 16))
     self.label_28.setMaximumSize(QtCore.QSize(36, 16))
     self.label_28.setStyleSheet("")
     self.label_28.setObjectName("label_28")
     self.label_29 = QtWidgets.QLabel(self.groupBox_5)
     self.label_29.setGeometry(QtCore.QRect(120, 10, 31, 16))
     self.label_29.setMaximumSize(QtCore.QSize(36, 16))
     self.label_29.setObjectName("label_29")
     self.label_30 = QtWidgets.QLabel(self.groupBox_5)
     self.label_30.setGeometry(QtCore.QRect(813, 11, 16, 16))
     self.label_30.setObjectName("label_30")
     self.dateEdit_8 = QtWidgets.QDateEdit(self.groupBox_5)
     self.dateEdit_8.setGeometry(QtCore.QRect(720, 11, 88, 20))
     self.dateEdit_8.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit_8.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit_8.setCalendarPopup(True)
     self.dateEdit_8.setObjectName("dateEdit_8")
     self.label_31 = QtWidgets.QLabel(self.groupBox_5)
     self.label_31.setGeometry(QtCore.QRect(530, 10, 60, 20))
     self.label_31.setMaximumSize(QtCore.QSize(60, 20))
     self.label_31.setObjectName("label_31")
     self.label_32 = QtWidgets.QLabel(self.groupBox_5)
     self.label_32.setGeometry(QtCore.QRect(240, 10, 61, 20))
     self.label_32.setObjectName("label_32")
     self.label_33 = QtWidgets.QLabel(self.groupBox_5)
     self.label_33.setGeometry(QtCore.QRect(430, 10, 31, 20))
     self.label_33.setMaximumSize(QtCore.QSize(60, 20))
     self.label_33.setObjectName("label_33")
     self.comboBox_18 = QtWidgets.QComboBox(self.groupBox_5)
     self.comboBox_18.setGeometry(QtCore.QRect(460, 10, 51, 22))
     self.comboBox_18.setObjectName("comboBox_18")
     self.comboBox_18.addItem("")
     self.comboBox_18.addItem("")
     self.comboBox_18.addItem("")
     self.lineEdit_8 = QtWidgets.QLineEdit(self.groupBox_5)
     self.lineEdit_8.setGeometry(QtCore.QRect(590, 10, 81, 20))
     self.lineEdit_8.setMinimumSize(QtCore.QSize(81, 20))
     self.lineEdit_8.setMaximumSize(QtCore.QSize(81, 20))
     self.lineEdit_8.setDragEnabled(False)
     self.lineEdit_8.setReadOnly(False)
     self.lineEdit_8.setClearButtonEnabled(False)
     self.lineEdit_8.setObjectName("lineEdit_8")
     self.checkBox = QtWidgets.QCheckBox(self.groupBox_5)
     self.checkBox.setGeometry(QtCore.QRect(930, 2, 89, 16))
     self.checkBox.setObjectName("checkBox")
     self.checkBox_2 = QtWidgets.QCheckBox(self.groupBox_5)
     self.checkBox_2.setGeometry(QtCore.QRect(930, 20, 89, 16))
     self.checkBox_2.setObjectName("checkBox_2")
     self.fontComboBox_4 = QtWidgets.QFontComboBox(self.groupBox_5)
     self.fontComboBox_4.setGeometry(QtCore.QRect(150, 9, 81, 22))
Ejemplo n.º 13
0
        layout.addLayout(horLayout)
        
        wdLabel = QtWidgets.QLabel("Name :")
        horLayout.addWidget(wdLabel)
        
        self.wdLineEdit = QtWidgets.QLineEdit('')
        horLayout.addWidget(self.wdLineEdit)

        wdButton = QtWidgets.QPushButton("Say Hello")
        layout.addWidget(wdButton)
        wdButton.clicked.connect(self.PrintLine)
        
    def PrintLine(self):
        print ("Hello {}".format(self.wdLineEdit.text()))
        
if __name__ == "__main__":
    app = QApplication(sys.argv)
    
    wdFrame = QtWidgets.QFrame()
    layout = QtWidgets.QHBoxLayout(wdFrame)
    
    wdCal = QtWidgets.QCalendarWidget()
    layout.addWidget(wdCal)
    
    wd = QMyHelloWorld()
    layout.addWidget(wd)
    
    wdFrame.show()

    sys.exit(app.exec_())
Ejemplo n.º 14
0
    def __init__(self):
        W.QWidget.__init__(self)

        if "attributes":
            self.setWindowTitle("Data Form - click field to edit")
            self.setGeometry(glb.win_placement)
            self.setMinimumSize(160, 160)
            self.invalid_msg = None

        if "QActions":

            self.to_previous_win_act = W.QAction('Return to previous',
                                                 self,
                                                 shortcut='Ctrl+R')
            self.save_act = W.QAction("Save ...", self, enabled=True)
            self.cancel_act = W.QAction("Cancel ...", self, enabled=True)
            self.delete_row_act = W.QAction("Delete ...", self, enabled=True)
            self.about_app_act = W.QAction("Show the About box",
                                           self,
                                           shortcut="Ctrl+A")
            self.print_act = W.QAction('Print', self)

        if "action icons":

            self.to_previous_win_act.setIcon(
                G.QIcon(glb.icons + '/actions/go-previous.png'))
            self.save_act.setIcon(
                G.QIcon(glb.icons + '/actions/document-save.png'))
            self.cancel_act.setIcon(
                G.QIcon(glb.icons + '/actions/edit-undo.png'))
            self.delete_row_act.setIcon(
                G.QIcon(glb.icons + '/actions/edit-delete.png'))
            self.about_app_act.setIcon(
                G.QIcon(glb.icons + '/actions/help-about.png'))
            self.print_act.setIcon(
                G.QIcon(glb.icons + '/actions/document-print.png'))

        if "action connections":

            self.to_previous_win_act.triggered.connect(self.close)
            #self.save_act -  connected below for addnew or update case
            self.cancel_act.triggered.connect(self.cancel_update)
            self.delete_row_act.triggered.connect(self.delete_row)
            self.about_app_act.triggered.connect(lambda: W.QMessageBox.about(
                self, "About Window class module", __doc__))
            self.print_act.triggered.connect(self.print_form)

        if "toolbar":

            self.tool_bar = W.QToolBar(self)
            self.tool_bar.addAction(self.to_previous_win_act)
            self.tool_bar.addAction(self.about_app_act)
            self.tool_bar.addAction(self.print_act)
            self.tool_bar.addAction(self.cancel_act)
            self.tool_bar.addAction(self.save_act)
            self.tool_bar.addAction(self.delete_row_act)

            self.tool_bar.setLayoutDirection(Qt.RightToLeft)

        if "default toolbar status":
            self.save_act.setEnabled(False)
            self.cancel_act.setEnabled(False)
            self.delete_row_act.setEnabled(False)

        if "window layout":
            self.window_layout = W.QGridLayout(self)

            if "add toolbar":
                self.window_layout.addWidget(self.tool_bar, 0, 0)
                self.setLayout(self.window_layout)

            if "header setup":
                self.header = W.QLabel()
                self.header.setFont(G.QFont("Times", 15, G.QFont.Bold))

            if "form setup":
                self.form_layout = W.QFormLayout()
                self.form_groupbox = W.QGroupBox()
                self.form_groupbox.setLayout(self.form_layout)
                self.form_groupbox.setFont(G.QFont("Times", 15))

            if "add widgets to window layout":
                self.window_layout.addWidget(self.header, 1, 0)
                self.window_layout.addWidget(self.form_groupbox, 2, 0)

            if "add calendar":
                self.cal01 = W.QCalendarWidget(self)
                self.window_layout.addWidget(self.cal01, 3, 0)
                self.cal01.hide()

            if "push all widgets up":
                self.window_layout.setRowStretch(4, 100)

        if "form widgets":
            self.led01 = W.QLineEdit(self)  # TEXT
            self.led02 = W.QLineEdit(self)  # INTEGER
            self.led03 = W.QLineEdit(self)  # REAL
            self.led04 = W.QLineEdit(self)  # DATE yyyy-MM-dd

        if "form layout":
            self.form_layout.addRow('Text:   ', self.led01)
            self.form_layout.addRow('Integer:', self.led02)
            self.form_layout.addRow('Real:   ', self.led03)
            self.form_layout.addRow('Date:   ', self.led04)

        if "install local event filter":
            """for individual widgets,  connect to local eventFilter (see below) """
            self.led01.installEventFilter(self)  # works,  but only on led01
            self.led02.installEventFilter(self)  # works,  but only on led02
            self.led03.installEventFilter(self)  # works,  but only on led03
            self.led04.installEventFilter(self)  # works,  but only on led04
Ejemplo n.º 15
0
    def setupUi(self, DockWidget):
        DockWidget.setObjectName("DockWidget")
        DockWidget.resize(703, 632)
        self.dockWidgetContents = QtWidgets.QWidget()
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.gridLayout = QtWidgets.QGridLayout(self.dockWidgetContents)
        self.gridLayout.setObjectName("gridLayout")
        self.textBrowser = QtWidgets.QTextBrowser(self.dockWidgetContents)
        self.textBrowser.setMinimumSize(QtCore.QSize(0, 0))
        self.textBrowser.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.textBrowser.setObjectName("textBrowser")
        self.gridLayout.addWidget(self.textBrowser, 2, 1, 1, 1)
        self.label_77 = QtWidgets.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_77.setFont(font)
        self.label_77.setObjectName("label_77")
        self.gridLayout.addWidget(self.label_77, 0, 1, 1, 1)
        self.label_78 = QtWidgets.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_78.setFont(font)
        self.label_78.setObjectName("label_78")
        self.gridLayout.addWidget(self.label_78, 0, 2, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_3.setMinimumSize(QtCore.QSize(0, 0))
        self.label_3.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.label_79 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_79.setEnabled(False)
        self.label_79.setObjectName("label_79")
        self.gridLayout.addWidget(self.label_79, 1, 2, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_4.setMinimumSize(QtCore.QSize(0, 0))
        self.label_4.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_4.setFont(font)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 2, 0, 1, 1)
        self.textBrowserDis = QtWidgets.QTextBrowser(self.dockWidgetContents)
        self.textBrowserDis.setEnabled(False)
        self.textBrowserDis.setObjectName("textBrowserDis")
        self.gridLayout.addWidget(self.textBrowserDis, 2, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_5.setMinimumSize(QtCore.QSize(0, 0))
        self.label_5.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 3, 0, 1, 1)
        self.graphicsView = QtWidgets.QGraphicsView(self.dockWidgetContents)
        self.graphicsView.setMinimumSize(QtCore.QSize(0, 0))
        self.graphicsView.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout.addWidget(self.graphicsView, 3, 1, 1, 1)
        self.graphicsViewDis = QtWidgets.QGraphicsView(self.dockWidgetContents)
        self.graphicsViewDis.setEnabled(False)
        self.graphicsViewDis.setObjectName("graphicsViewDis")
        self.gridLayout.addWidget(self.graphicsViewDis, 3, 2, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_6.setMinimumSize(QtCore.QSize(0, 0))
        self.label_6.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 4, 0, 1, 1)
        self.calendarWidget = QtWidgets.QCalendarWidget(
            self.dockWidgetContents)
        self.calendarWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.calendarWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.calendarWidget.setObjectName("calendarWidget")
        self.gridLayout.addWidget(self.calendarWidget, 4, 1, 1, 1)
        self.calendarWidgetDis = QtWidgets.QCalendarWidget(
            self.dockWidgetContents)
        self.calendarWidgetDis.setEnabled(False)
        self.calendarWidgetDis.setObjectName("calendarWidgetDis")
        self.gridLayout.addWidget(self.calendarWidgetDis, 4, 2, 1, 1)
        self.lcdNumberDis = QtWidgets.QLCDNumber(self.dockWidgetContents)
        self.lcdNumberDis.setEnabled(False)
        self.lcdNumberDis.setObjectName("lcdNumberDis")
        self.gridLayout.addWidget(self.lcdNumberDis, 5, 2, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_7.setMinimumSize(QtCore.QSize(0, 0))
        self.label_7.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_7.setFont(font)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 5, 0, 1, 1)
        self.lcdNumber = QtWidgets.QLCDNumber(self.dockWidgetContents)
        self.lcdNumber.setMinimumSize(QtCore.QSize(0, 0))
        self.lcdNumber.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lcdNumber.setObjectName("lcdNumber")
        self.gridLayout.addWidget(self.lcdNumber, 5, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_8.setMinimumSize(QtCore.QSize(0, 0))
        self.label_8.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_8.setFont(font)
        self.label_8.setObjectName("label_8")
        self.gridLayout.addWidget(self.label_8, 6, 0, 1, 1)
        self.progressBar = QtWidgets.QProgressBar(self.dockWidgetContents)
        self.progressBar.setMinimumSize(QtCore.QSize(0, 0))
        self.progressBar.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")
        self.gridLayout.addWidget(self.progressBar, 6, 1, 1, 1)
        self.progressBarDis = QtWidgets.QProgressBar(self.dockWidgetContents)
        self.progressBarDis.setEnabled(False)
        self.progressBarDis.setProperty("value", 24)
        self.progressBarDis.setObjectName("progressBarDis")
        self.gridLayout.addWidget(self.progressBarDis, 6, 2, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_9.setMinimumSize(QtCore.QSize(0, 0))
        self.label_9.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_9.setFont(font)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 7, 0, 1, 1)
        self.lineH = QtWidgets.QFrame(self.dockWidgetContents)
        self.lineH.setMinimumSize(QtCore.QSize(0, 0))
        self.lineH.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lineH.setFrameShape(QtWidgets.QFrame.HLine)
        self.lineH.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.lineH.setObjectName("lineH")
        self.gridLayout.addWidget(self.lineH, 7, 1, 1, 1)
        self.lineHDis = QtWidgets.QFrame(self.dockWidgetContents)
        self.lineHDis.setEnabled(False)
        self.lineHDis.setFrameShape(QtWidgets.QFrame.HLine)
        self.lineHDis.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.lineHDis.setObjectName("lineHDis")
        self.gridLayout.addWidget(self.lineHDis, 7, 2, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_10.setMinimumSize(QtCore.QSize(0, 0))
        self.label_10.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_10.setFont(font)
        self.label_10.setObjectName("label_10")
        self.gridLayout.addWidget(self.label_10, 8, 0, 1, 1)
        self.lineV = QtWidgets.QFrame(self.dockWidgetContents)
        self.lineV.setMinimumSize(QtCore.QSize(0, 50))
        self.lineV.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lineV.setFrameShape(QtWidgets.QFrame.VLine)
        self.lineV.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.lineV.setObjectName("lineV")
        self.gridLayout.addWidget(self.lineV, 8, 1, 1, 1)
        self.lineVDis = QtWidgets.QFrame(self.dockWidgetContents)
        self.lineVDis.setEnabled(False)
        self.lineVDis.setMinimumSize(QtCore.QSize(0, 50))
        self.lineVDis.setFrameShape(QtWidgets.QFrame.VLine)
        self.lineVDis.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.lineVDis.setObjectName("lineVDis")
        self.gridLayout.addWidget(self.lineVDis, 8, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 9, 0, 1, 1)
        self.label_37 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_37.setAlignment(QtCore.Qt.AlignCenter)
        self.label_37.setObjectName("label_37")
        self.gridLayout.addWidget(self.label_37, 10, 0, 1, 3)
        self.label_2 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_2.setMinimumSize(QtCore.QSize(0, 0))
        self.label_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 1, 1, 1)
        DockWidget.setWidget(self.dockWidgetContents)

        self.retranslateUi(DockWidget)
        QtCore.QObject.connect(self.calendarWidget,
                               QtCore.SIGNAL("currentPageChanged(int,int)"),
                               self.calendarWidgetDis.setCurrentPage)
        QtCore.QObject.connect(self.calendarWidget,
                               QtCore.SIGNAL("clicked(QDate)"),
                               self.calendarWidgetDis.setSelectedDate)
        QtCore.QObject.connect(self.progressBar,
                               QtCore.SIGNAL("valueChanged(int)"),
                               self.progressBarDis.setValue)
        QtCore.QMetaObject.connectSlotsByName(DockWidget)
Ejemplo n.º 16
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(447, 546)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.tasks_label = QtWidgets.QLabel(Dialog)
        self.tasks_label.setObjectName("tasks_label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.tasks_label)
        self.task_progressBar = QtWidgets.QProgressBar(Dialog)
        self.task_progressBar.setProperty("value", 24)
        self.task_progressBar.setObjectName("task_progressBar")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.task_progressBar)
        self.resources_label = QtWidgets.QLabel(Dialog)
        self.resources_label.setObjectName("resources_label")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.resources_label)
        self.resource_comboBox = QtWidgets.QComboBox(Dialog)
        self.resource_comboBox.setObjectName("resource_comboBox")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.resource_comboBox)
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setObjectName("label_5")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_5)
        self.calendarWidget = QtWidgets.QCalendarWidget(Dialog)
        self.calendarWidget.setFirstDayOfWeek(QtCore.Qt.Monday)
        self.calendarWidget.setObjectName("calendarWidget")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.calendarWidget)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_2)
        self.info_area_label = QtWidgets.QLabel(Dialog)
        self.info_area_label.setObjectName("info_area_label")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.info_area_label)
        self.revision_label = QtWidgets.QLabel(Dialog)
        self.revision_label.setObjectName("revision_label")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.revision_label)
        self.revision_type_comboBox = QtWidgets.QComboBox(Dialog)
        self.revision_type_comboBox.setObjectName("revision_type_comboBox")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.revision_type_comboBox)
        self.label_7 = QtWidgets.QLabel(Dialog)
        self.label_7.setObjectName("label_7")
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_7)
        self.description_plainTextEdit = QtWidgets.QPlainTextEdit(Dialog)
        self.description_plainTextEdit.setObjectName("description_plainTextEdit")
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.description_plainTextEdit)
        self.label_9 = QtWidgets.QLabel(Dialog)
        self.label_9.setObjectName("label_9")
        self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_9)
        self.not_finished_yet_radioButton = QtWidgets.QRadioButton(Dialog)
        self.not_finished_yet_radioButton.setChecked(True)
        self.not_finished_yet_radioButton.setObjectName("not_finished_yet_radioButton")
        self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.not_finished_yet_radioButton)
        self.set_as_complete_radioButton = QtWidgets.QRadioButton(Dialog)
        self.set_as_complete_radioButton.setObjectName("set_as_complete_radioButton")
        self.formLayout.setWidget(10, QtWidgets.QFormLayout.FieldRole, self.set_as_complete_radioButton)
        self.submit_for_final_review_radioButton = QtWidgets.QRadioButton(Dialog)
        self.submit_for_final_review_radioButton.setObjectName("submit_for_final_review_radioButton")
        self.formLayout.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.submit_for_final_review_radioButton)
        self.verticalLayout.addLayout(self.formLayout)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(Dialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), Dialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
Ejemplo n.º 17
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1113, 879)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.lineEditEndDate = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEditEndDate.setObjectName("lineEditEndDate")
        self.gridLayout.addWidget(self.lineEditEndDate, 10, 4, 1, 1)
        self.calendarWidgetEndDate = QtWidgets.QCalendarWidget(
            self.centralwidget)
        self.calendarWidgetEndDate.setObjectName("calendarWidgetEndDate")
        self.gridLayout.addWidget(self.calendarWidgetEndDate, 7, 3, 3, 2)
        self.labelEndDate = QtWidgets.QLabel(self.centralwidget)
        self.labelEndDate.setAlignment(QtCore.Qt.AlignRight
                                       | QtCore.Qt.AlignTrailing
                                       | QtCore.Qt.AlignVCenter)
        self.labelEndDate.setObjectName("labelEndDate")
        self.gridLayout.addWidget(self.labelEndDate, 10, 3, 1, 1)
        self.checkBoxAllNews = QtWidgets.QCheckBox(self.centralwidget)
        self.checkBoxAllNews.setChecked(True)
        self.checkBoxAllNews.setObjectName("checkBoxAllNews")
        self.gridLayout.addWidget(self.checkBoxAllNews, 3, 1, 1, 1)
        self.labelEmpID = QtWidgets.QLabel(self.centralwidget)
        self.labelEmpID.setObjectName("labelEmpID")
        self.gridLayout.addWidget(self.labelEmpID, 0, 0, 1, 1)
        self.labelInFilePth = QtWidgets.QLabel(self.centralwidget)
        self.labelInFilePth.setObjectName("labelInFilePth")
        self.gridLayout.addWidget(self.labelInFilePth, 2, 0, 1, 1)
        #self.labelProxyIDPW = QtWidgets.QLabel(self.centralwidget)
        #self.labelProxyIDPW.setObjectName("labelProxyIDPW")
        #self.gridLayout.addWidget(self.labelProxyIDPW, 1, 0, 1, 1)
        #self.labelProxyPW = QtWidgets.QLabel(self.centralwidget)
        #self.labelProxyPW.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        #self.labelProxyPW.setObjectName("labelProxyPW")
        #self.gridLayout.addWidget(self.labelProxyPW, 1, 3, 1, 1)
        self.pushButtonInFileCho = QtWidgets.QPushButton(self.centralwidget)
        self.pushButtonInFileCho.setObjectName("pushButtonInFileCho")
        self.gridLayout.addWidget(self.pushButtonInFileCho, 2, 5, 1, 1)
        #self.lineEditProxyPW = QtWidgets.QLineEdit(self.centralwidget)
        #self.lineEditProxyPW.setObjectName("lineEditProxyPW")
        #self.gridLayout.addWidget(self.lineEditProxyPW, 1, 4, 1, 1)

        self.lineEditInFilePth = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEditInFilePth.setText("")
        self.lineEditInFilePth.setObjectName("lineEditInFilePth")
        self.gridLayout.addWidget(self.lineEditInFilePth, 2, 1, 1, 4)
        #self.lineEditProxyID = QtWidgets.QLineEdit(self.centralwidget)
        #self.lineEditProxyID.setObjectName("lineEditProxyID")
        #self.gridLayout.addWidget(self.lineEditProxyID, 1, 2, 1, 1)

        self.lineEditEmpID = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEditEmpID.setObjectName("lineEditEmpID")
        self.gridLayout.addWidget(self.lineEditEmpID, 0, 1, 1, 5)
        #self.labelProxyID = QtWidgets.QLabel(self.centralwidget)
        #self.labelProxyID.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        #self.labelProxyID.setObjectName("labelProxyID")
        #self.gridLayout.addWidget(self.labelProxyID, 1, 1, 1, 1)
        self.labelMsg = QtWidgets.QLabel(self.centralwidget)
        self.labelMsg.setObjectName("labelMsg")
        self.gridLayout.addWidget(self.labelMsg, 12, 0, 1, 1)
        self.radioButtonSourceCodeChoY = QtWidgets.QRadioButton(
            self.centralwidget)
        self.radioButtonSourceCodeChoY.setChecked(True)
        self.radioButtonSourceCodeChoY.setObjectName(
            "radioButtonSourceCodeChoY")
        self.gridLayout.addWidget(self.radioButtonSourceCodeChoY, 4, 1, 1, 1)
        self.labelKeyCht = QtWidgets.QLabel(self.centralwidget)
        self.labelKeyCht.setObjectName("labelKeyCht")
        self.gridLayout.addWidget(self.labelKeyCht, 5, 1, 1, 1)
        self.checkBoxSiteCountry = QtWidgets.QCheckBox(self.centralwidget)
        self.checkBoxSiteCountry.setChecked(True)
        self.checkBoxSiteCountry.setObjectName("checkBoxSiteCountry")
        self.gridLayout.addWidget(self.checkBoxSiteCountry, 3, 5, 1, 1)
        self.checkBoxAllCountry = QtWidgets.QCheckBox(self.centralwidget)
        self.checkBoxAllCountry.setChecked(True)
        self.checkBoxAllCountry.setObjectName("checkBoxAllCountry")
        self.gridLayout.addWidget(self.checkBoxAllCountry, 3, 3, 1, 1)
        self.labelSourceCodeCho = QtWidgets.QLabel(self.centralwidget)
        self.labelSourceCodeCho.setObjectName("labelSourceCodeCho")
        self.gridLayout.addWidget(self.labelSourceCodeCho, 4, 0, 1, 1)
        self.radioButtonSourceCodeChoN = QtWidgets.QRadioButton(
            self.centralwidget)
        self.radioButtonSourceCodeChoN.setChecked(False)
        self.radioButtonSourceCodeChoN.setObjectName(
            "radioButtonSourceCodeChoN")
        self.gridLayout.addWidget(self.radioButtonSourceCodeChoN, 4, 3, 1, 1)
        self.labelCountryEng = QtWidgets.QLabel(self.centralwidget)
        self.labelCountryEng.setObjectName("labelCountryEng")
        self.gridLayout.addWidget(self.labelCountryEng, 5, 3, 1, 1)
        self.labelKeyEng = QtWidgets.QLabel(self.centralwidget)
        self.labelKeyEng.setObjectName("labelKeyEng")
        self.gridLayout.addWidget(self.labelKeyEng, 5, 0, 1, 1)
        self.plainTextEditKeyCht = QtWidgets.QPlainTextEdit(self.centralwidget)
        self.plainTextEditKeyCht.setEnabled(True)
        self.plainTextEditKeyCht.setReadOnly(True)
        self.plainTextEditKeyCht.setObjectName("plainTextEditKeyCht")
        self.gridLayout.addWidget(self.plainTextEditKeyCht, 6, 1, 1, 2)
        self.plainTextEditKeyEng = QtWidgets.QPlainTextEdit(self.centralwidget)
        self.plainTextEditKeyEng.setEnabled(True)
        self.plainTextEditKeyEng.setReadOnly(True)
        self.plainTextEditKeyEng.setObjectName("plainTextEditKeyEng")
        self.gridLayout.addWidget(self.plainTextEditKeyEng, 6, 0, 1, 1)
        self.plainTextEditCountryCht = QtWidgets.QPlainTextEdit(
            self.centralwidget)
        self.plainTextEditCountryCht.setEnabled(True)
        self.plainTextEditCountryCht.setReadOnly(True)
        self.plainTextEditCountryCht.setObjectName("plainTextEditCountryCht")
        self.gridLayout.addWidget(self.plainTextEditCountryCht, 6, 5, 1, 1)
        self.labelDateRange = QtWidgets.QLabel(self.centralwidget)
        self.labelDateRange.setObjectName("labelDateRange")
        self.gridLayout.addWidget(self.labelDateRange, 7, 0, 1, 1)
        self.calendarWidgetStartDate = QtWidgets.QCalendarWidget(
            self.centralwidget)
        self.calendarWidgetStartDate.setObjectName("calendarWidgetStartDate")
        self.gridLayout.addWidget(self.calendarWidgetStartDate, 7, 1, 3, 2)
        self.labelStartDate = QtWidgets.QLabel(self.centralwidget)
        self.labelStartDate.setAlignment(QtCore.Qt.AlignRight
                                         | QtCore.Qt.AlignTrailing
                                         | QtCore.Qt.AlignVCenter)
        self.labelStartDate.setObjectName("labelStartDate")
        self.gridLayout.addWidget(self.labelStartDate, 10, 1, 1, 1)
        self.lineEditStartDate = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEditStartDate.setObjectName("lineEditStartDate")
        self.gridLayout.addWidget(self.lineEditStartDate, 10, 2, 1, 1)
        self.labelOutPath = QtWidgets.QLabel(self.centralwidget)
        self.labelOutPath.setObjectName("labelOutPath")
        self.gridLayout.addWidget(self.labelOutPath, 11, 0, 1, 1)
        self.lineEditOutPath = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEditOutPath.setText("")
        self.lineEditOutPath.setObjectName("lineEditOutPath")
        self.gridLayout.addWidget(self.lineEditOutPath, 11, 1, 1, 3)
        self.pushButtonBegin = QtWidgets.QPushButton(self.centralwidget)
        self.pushButtonBegin.setObjectName("pushButtonBegin")
        self.gridLayout.addWidget(self.pushButtonBegin, 12, 1, 1, 4)
        self.plainTextEditMsg = QtWidgets.QPlainTextEdit(self.centralwidget)
        self.plainTextEditMsg.setReadOnly(True)
        self.plainTextEditMsg.setObjectName("plainTextEditMsg")
        self.gridLayout.addWidget(self.plainTextEditMsg, 13, 0, 1, 6)
        self.pushButtonOutFileCho = QtWidgets.QPushButton(self.centralwidget)
        self.pushButtonOutFileCho.setObjectName("pushButtonOutFileCho")
        self.gridLayout.addWidget(self.pushButtonOutFileCho, 11, 4, 1, 1)
        self.pushButtonCancel = QtWidgets.QPushButton(self.centralwidget)
        self.pushButtonCancel.setObjectName("pushButtonCancel")
        self.gridLayout.addWidget(self.pushButtonCancel, 12, 5, 1, 1)
        self.labelOutCho = QtWidgets.QLabel(self.centralwidget)
        self.labelOutCho.setObjectName("labelOutCho")
        self.gridLayout.addWidget(self.labelOutCho, 3, 0, 1, 1)
        self.labelCountryCht = QtWidgets.QLabel(self.centralwidget)
        self.labelCountryCht.setObjectName("labelCountryCht")
        self.gridLayout.addWidget(self.labelCountryCht, 5, 5, 1, 1)
        self.plainTextEditCountryEng = QtWidgets.QPlainTextEdit(
            self.centralwidget)
        self.plainTextEditCountryEng.setEnabled(True)
        self.plainTextEditCountryEng.setReadOnly(True)
        self.plainTextEditCountryEng.setObjectName("plainTextEditCountryEng")
        self.gridLayout.addWidget(self.plainTextEditCountryEng, 6, 3, 1, 2)
        self.checkBoxNoDateRange = QtWidgets.QCheckBox(self.centralwidget)
        self.checkBoxNoDateRange.setObjectName("checkBoxNoDateRange")
        self.gridLayout.addWidget(self.checkBoxNoDateRange, 8, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Ejemplo n.º 18
0
 def get_widget(self, parent=None):
     return QtWidgets.QCalendarWidget(), None, None