Beispiel #1
0
    def createBottomRightGroupBox(self):
        self.bottomRightGroupBox = QtGui.QGroupBox("Group 3")
        self.bottomRightGroupBox.setCheckable(True)
        self.bottomRightGroupBox.setChecked(True)

        lineEdit = QtGui.QLineEdit('s3cRe7')
        lineEdit.setEchoMode(QtGui.QLineEdit.Password)

        spinBox = QtGui.QSpinBox(self.bottomRightGroupBox)
        spinBox.setValue(50)

        dateTimeEdit = QtGui.QDateTimeEdit(self.bottomRightGroupBox)
        dateTimeEdit.setDateTime(QtCore.QDateTime.currentDateTime())

        slider = QtGui.QSlider(QtCore.Qt.Horizontal, self.bottomRightGroupBox)
        slider.setValue(40)

        scrollBar = QtGui.QScrollBar(QtCore.Qt.Horizontal,
                                     self.bottomRightGroupBox)
        scrollBar.setValue(60)

        dial = QtGui.QDial(self.bottomRightGroupBox)
        dial.setValue(30)
        dial.setNotchesVisible(True)

        layout = QtGui.QGridLayout()
        layout.addWidget(lineEdit, 0, 0, 1, 2)
        layout.addWidget(spinBox, 1, 0, 1, 2)
        layout.addWidget(dateTimeEdit, 2, 0, 1, 2)
        layout.addWidget(slider, 3, 0)
        layout.addWidget(scrollBar, 4, 0)
        layout.addWidget(dial, 3, 1, 2, 1)
        layout.setRowStretch(5, 1)
        self.bottomRightGroupBox.setLayout(layout)
Beispiel #2
0
  def iniciar_ui(self):
    self.fecha = QtGui.QDateTimeEdit()
    self.zona = WidgetComboBoxExtensible(Zona, self.parent)
    self.latitud = QtGui.QLineEdit()
    self.longitud = QtGui.QLineEdit()
    self.fotografos = WidgetComboBoxExtensible(Fotografo, self.parent)
    self.cantidadSapitos = QtGui.QLineEdit()
    self.observaciones = QtGui.QTextEdit()

    qgridLayout = QtGui.QGridLayout()

    qgridLayout.addWidget(QtGui.QLabel("CAPTURA"), 0, 0)
    qgridLayout.addWidget(QtGui.QLabel("fecha: "), 1, 0)
    qgridLayout.addWidget(self.fecha, 1, 1)
    qgridLayout.addWidget(QtGui.QLabel("Zona: "), 2, 0)
    qgridLayout.addWidget(self.zona, 2, 1)
    qgridLayout.addWidget(QtGui.QLabel("Latitud: "), 3, 0)
    qgridLayout.addWidget(self.latitud, 3, 1)
    qgridLayout.addWidget(QtGui.QLabel("Longitud: "), 4, 0)
    qgridLayout.addWidget(self.longitud, 4, 1)
    qgridLayout.addWidget(QtGui.QLabel("Fotografo: "), 5, 0)
    qgridLayout.addWidget(self.fotografos, 5, 1)
    qgridLayout.addWidget(QtGui.QLabel("Sapitos acomp: "), 6, 0)
    qgridLayout.addWidget(self.cantidadSapitos, 6, 1)
    qgridLayout.addWidget(QtGui.QLabel("Observaciones: "), 7, 0)
    qgridLayout.addWidget(self.observaciones, 7, 1)

    self.setLayout(qgridLayout)
Beispiel #3
0
    def __init__(self):
        super(QuickSetTime, self).__init__()
        self.dt_box = QtGui.QDateTimeEdit()
        font = QtGui.QFont()
        font.setPointSize(15)
        self.dt_box.setFont(font)
        self.dt_box.setAlignment(QtCore.Qt.AlignCenter)

        dt_sec_hbox = QtGui.QHBoxLayout()
        self.dt_sec_l = QtGui.QLabel()
        self.dt_sec_l.setText('秒数')
        self.dt_sec_box = QtGui.QLineEdit()
        self.dt_sec_b = QtGui.QPushButton()
        self.dt_sec_b.setMaximumWidth(50)
        self.dt_sec_b.setText('转换')
        dt_sec_hbox.addWidget(self.dt_sec_l)
        dt_sec_hbox.addWidget(self.dt_sec_box)
        dt_sec_hbox.addWidget(self.dt_sec_b)

        self.read_dt_b = QtGui.QPushButton()
        self.read_dt_b.setText('读取')
        self.set_dt_b = QtGui.QPushButton()
        self.set_dt_b.setText('设置')
        self.set_current_dt_b = QtGui.QPushButton()
        self.set_current_dt_b.setText('设置当前时间')

        hbox = QtGui.QHBoxLayout()
        hbox.addWidget(self.read_dt_b)
        hbox.addWidget(self.set_dt_b)
        vbox = QtGui.QVBoxLayout(self)
        vbox.addWidget(self.dt_box)
        vbox.addLayout(dt_sec_hbox)
        vbox.addLayout(hbox)
        vbox.addWidget(self.set_current_dt_b)
        vbox.addStretch(1)
Beispiel #4
0
    def setupUi(self, AddTCView):
        AddTCView.setObjectName("AddTCView")
        AddTCView.resize(420, 710)
        self.buttonBox = QtGui.QDialogButtonBox(AddTCView)
        self.buttonBox.setGeometry(QtCore.QRect(70, 670, 341, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.serviceComboBox = QtGui.QComboBox(AddTCView)
        self.serviceComboBox.setGeometry(QtCore.QRect(100, 70, 85, 27))
        self.serviceComboBox.setObjectName("serviceComboBox")
        self.parentTCLbl = QtGui.QLabel(AddTCView)
        self.parentTCLbl.setGeometry(QtCore.QRect(10, 30, 401, 17))
        self.parentTCLbl.setObjectName("parentTCLbl")
        self.pckSecHeaderTextEdit = QtGui.QPlainTextEdit(AddTCView)
        self.pckSecHeaderTextEdit.setGeometry(QtCore.QRect(10, 150, 401, 251))
        self.pckSecHeaderTextEdit.setObjectName("pckSecHeaderTextEdit")
        self.label_2 = QtGui.QLabel(AddTCView)
        self.label_2.setGeometry(QtCore.QRect(10, 75, 121, 17))
        self.label_2.setObjectName("label_2")
        self.label = QtGui.QLabel(AddTCView)
        self.label.setGeometry(QtCore.QRect(10, 10, 401, 21))
        self.label.setObjectName("label")
        self.label_3 = QtGui.QLabel(AddTCView)
        self.label_3.setGeometry(QtCore.QRect(200, 75, 121, 17))
        self.label_3.setObjectName("label_3")
        self.msgComboBox = QtGui.QComboBox(AddTCView)
        self.msgComboBox.setGeometry(QtCore.QRect(330, 70, 85, 27))
        self.msgComboBox.setObjectName("msgComboBox")
        self.pckSecHeaderLbl = QtGui.QLabel(AddTCView)
        self.pckSecHeaderLbl.setGeometry(QtCore.QRect(10, 130, 171, 17))
        self.pckSecHeaderLbl.setObjectName("pckSecHeaderLbl")
        self.srcDataLbl = QtGui.QLabel(AddTCView)
        self.srcDataLbl.setGeometry(QtCore.QRect(10, 410, 171, 17))
        self.srcDataLbl.setObjectName("srcDataLbl")
        self.srcDataTextEdit = QtGui.QPlainTextEdit(AddTCView)
        self.srcDataTextEdit.setGeometry(QtCore.QRect(10, 430, 401, 231))
        self.srcDataTextEdit.setObjectName("srcDataTextEdit")
        self.dateTimeEdit = QtGui.QDateTimeEdit(AddTCView)
        self.dateTimeEdit.setGeometry(QtCore.QRect(100, 100, 131, 27))
        self.dateTimeEdit.setObjectName("dateTimeEdit")
        self.scheduleLbl = QtGui.QLabel(AddTCView)
        self.scheduleLbl.setGeometry(QtCore.QRect(30, 103, 61, 20))
        self.scheduleLbl.setObjectName("scheduleLbl")
        self.eventIdLbl = QtGui.QLabel(AddTCView)
        self.eventIdLbl.setGeometry(QtCore.QRect(35, 103, 61, 17))
        self.eventIdLbl.setObjectName("eventIdLbl")
        self.eventIdLineEdit = QtGui.QLineEdit(AddTCView)
        self.eventIdLineEdit.setGeometry(QtCore.QRect(100, 100, 131, 27))
        self.eventIdLineEdit.setObjectName("eventIdLineEdit")

        self.retranslateUi(AddTCView)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), AddTCView.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), AddTCView.reject)
        QtCore.QMetaObject.connectSlotsByName(AddTCView)
Beispiel #5
0
    def __init__(self, parent=None):
        super(AddProjectPanel, self).__init__(parent)
        self.setupUi(self)

        self.shot_num_spin.setValue(65)

        self.add_project_table.horizontalHeader().setStretchLastSection(True)

        self.setStyleSheet("""
			*{color:#fffff8;
			font-family:宋体;
			font-size:12px;}
			QListWidget{
			font-size:17px;
			}
		""")

        # 设置表头
        self.add_project_table.setColumnCount(len(table_hand))

        self.add_project_table.setHorizontalHeaderLabels(table_hand.keys())
        self.add_project_table.setColumnWidth(0, 400)
        self.add_project_table.setColumnWidth(1, 120)
        self.add_project_table.setColumnWidth(2, 120)
        self.add_project_table.setColumnWidth(3, 150)

        self.add_project_table.setRowCount(int(self.shot_num_spin.text()))

        self.shot_num_spin.valueChanged.connect(self.shot_num_spin_change)
        self.creat_project_btn.clicked.connect(self.creat_project_btn_clicked)

        for r in xrange(int(self.shot_num_spin.text())):
            # 插入时间
            self.date_time_edit = QtGui.QDateTimeEdit(self)
            self.date_time_edit.setDateTime(QtCore.QDateTime.currentDateTime())
            self.date_time_edit.setCalendarPopup(True)
            self.add_project_table.setCellWidget(
                r, self.get_header_index(u"expected_time"),
                self.date_time_edit)

            # 插入制作人员列表
            self.user_comb = QtGui.QComboBox(self)
            for user_comb_item in artists_list:
                self.user_comb.addItem(user_comb_item)
            self.add_project_table.setCellWidget(
                r, self.get_header_index(u"artist"), self.user_comb)

            # 插入分级列表
            self.grade_comb = QtGui.QComboBox(self)
            for grade_comb_item in grade_list:
                self.grade_comb.addItem(grade_comb_item)
            self.add_project_table.setCellWidget(
                r, self.get_header_index(u"grade"), self.grade_comb)
Beispiel #6
0
    def __init__(self):
        super(MainWindow, self).__init__()

        self.selectedDate = QtCore.QDate.currentDate()
        self.fontSize = 10

        centralWidget = QtGui.QWidget()

        dateLabel = QtGui.QLabel("Date:")
        monthCombo = QtGui.QComboBox()

        for month in range(1, 13):
            monthCombo.addItem(QtCore.QDate.longMonthName(month))

        yearEdit = QtGui.QDateTimeEdit()
        yearEdit.setDisplayFormat('yyyy')
        yearEdit.setDateRange(QtCore.QDate(1753, 1, 1),
                              QtCore.QDate(8000, 1, 1))

        monthCombo.setCurrentIndex(self.selectedDate.month() - 1)
        yearEdit.setDate(self.selectedDate)

        self.fontSizeLabel = QtGui.QLabel("Font size:")
        self.fontSizeSpinBox = QtGui.QSpinBox()
        self.fontSizeSpinBox.setRange(1, 64)
        self.fontSizeSpinBox.setValue(10)

        self.editor = QtGui.QTextBrowser()
        self.insertCalendar()

        monthCombo.activated[int].connect(self.setMonth)
        yearEdit.dateChanged.connect(self.setYear)
        self.fontSizeSpinBox.valueChanged.connect(self.setfontSize)

        controlsLayout = QtGui.QHBoxLayout()
        controlsLayout.addWidget(dateLabel)
        controlsLayout.addWidget(monthCombo)
        controlsLayout.addWidget(yearEdit)
        controlsLayout.addSpacing(24)
        controlsLayout.addWidget(self.fontSizeLabel)
        controlsLayout.addWidget(self.fontSizeSpinBox)
        controlsLayout.addStretch(1)

        centralLayout = QtGui.QVBoxLayout()
        centralLayout.addLayout(controlsLayout)
        centralLayout.addWidget(self.editor, 1)
        centralWidget.setLayout(centralLayout)

        self.setCentralWidget(centralWidget)
    def createEditor(self, parent, option, index):
        '''
        Creates editor when mouse is clicked
        '''
        dateTimeEdit = _QtGui.QDateTimeEdit(parent)  #create new editor

        dateTimeEdit.setDate(
            _QtCore.QDate.fromString(str(index.data()), "dd - MMM - yyyy"))
        #set properties of editor
        dateTimeEdit.setDisplayFormat("dd - MMM - yyyy")
        dateTimeEdit.setCalendarPopup(True)

        dateTimeEdit.dateChanged.connect(self._datechanges)

        return dateTimeEdit
Beispiel #8
0
  def iniciar_ui(self):
    self.setWindowTitle("Captura")
    self.fecha = QtGui.QDateTimeEdit()
    self.zona = WidgetComboBoxExtensible(Zona, self.parent)
    self.latitud = QtGui.QLineEdit()
    self.longitud = QtGui.QLineEdit()
    self.fotografos = WidgetComboBoxExtensible(Fotografo, self.parent)
    self.cantidadSapitos = QtGui.QLineEdit()
    self.observaciones = QtGui.QTextEdit()
    self.imagen_label = QtGui.QLabel()

    qgridLayout = QtGui.QGridLayout()

    qgridLayout.addWidget(QtGui.QLabel("CAPTURA"), 0, 0)
    qgridLayout.addWidget(QtGui.QLabel("fecha: "), 1, 0)
    qgridLayout.addWidget(self.fecha, 1, 1)
    qgridLayout.addWidget(QtGui.QLabel("Zona: "), 2, 0)
    qgridLayout.addWidget(self.zona, 2, 1)
    qgridLayout.addWidget(QtGui.QLabel("Latitud: "), 3, 0)
    qgridLayout.addWidget(self.latitud, 3, 1)
    qgridLayout.addWidget(QtGui.QLabel("Longitud: "), 4, 0)
    qgridLayout.addWidget(self.longitud, 4, 1)
    qgridLayout.addWidget(QtGui.QLabel("Fotografo: "), 5, 0)
    qgridLayout.addWidget(self.fotografos, 5, 1)
    qgridLayout.addWidget(QtGui.QLabel("Sapitos acomp: "), 6, 0)
    qgridLayout.addWidget(self.cantidadSapitos, 6, 1)
    qgridLayout.addWidget(QtGui.QLabel("Observaciones: "), 7, 0)
    qgridLayout.addWidget(self.observaciones, 7, 1)

    self.boton_borrar = QtGui.QPushButton("Borrar")
    self.boton_borrar.clicked.connect(self.borrar)

    self.boton_guardar = QtGui.QPushButton("Guardar")
    self.boton_guardar.clicked.connect(self.guardar)

    self.vbox = QtGui.QVBoxLayout()

    hbox = QtGui.QHBoxLayout()
    hbox.addWidget(self.boton_borrar)
    hbox.addWidget(self.boton_guardar)
    self.vbox.addLayout(qgridLayout)
    self.vbox.addLayout(hbox)

    hbox_principal = QtGui.QHBoxLayout()
    hbox_principal.addLayout(self.vbox)
    hbox_principal.addWidget(self.imagen_label)

    self.setLayout(hbox_principal)
Beispiel #9
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.setWindowModality(QtCore.Qt.NonModal)
        Dialog.resize(383, 137)
        self.verticalLayout = QtGui.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_2 = QtGui.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.verticalLayout.addWidget(self.label_2)
        self.dateTimeEdit = QtGui.QDateTimeEdit(Dialog)
        self.dateTimeEdit.setDate(QtCore.QDate(2017, 1, 1))
        self.dateTimeEdit.setCurrentSection(QtGui.QDateTimeEdit.MonthSection)
        self.dateTimeEdit.setCalendarPopup(True)
        self.dateTimeEdit.setObjectName("dateTimeEdit")
        self.verticalLayout.addWidget(self.dateTimeEdit)
        self.label = QtGui.QLabel(Dialog)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lineEdit = QtGui.QLineEdit(Dialog)
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout.addWidget(self.lineEdit)
        self.toolButton = QtGui.QToolButton(Dialog)
        self.toolButton.setObjectName("toolButton")
        self.horizontalLayout.addWidget(self.toolButton)
        self.verticalLayout.addLayout(self.horizontalLayout)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.buttonBox = QtGui.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)
        self.actionPath = QtGui.QAction(Dialog)
        self.actionPath.setObjectName("actionPath")

        self.retranslateUi(Dialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"),
                               Dialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"),
                               Dialog.reject)
        QtCore.QObject.connect(self.toolButton, QtCore.SIGNAL("pressed()"),
                               self.actionPath.trigger)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
Beispiel #10
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(400, 300)
        self.spinBox = QtGui.QSpinBox(Dialog)
        self.spinBox.setGeometry(QtCore.QRect(20, 20, 53, 24))
        self.spinBox.setMinimum(1)
        self.spinBox.setMaximum(5)
        self.spinBox.setObjectName("spinBox")
        self.stackedWidget = QtGui.QStackedWidget(Dialog)
        self.stackedWidget.setGeometry(QtCore.QRect(60, 90, 251, 141))
        self.stackedWidget.setObjectName("stackedWidget")
        self.page = QtGui.QWidget()
        self.page.setObjectName("page")
        self.radioButton = QtGui.QRadioButton(self.page)
        self.radioButton.setGeometry(QtCore.QRect(40, 70, 97, 18))
        self.radioButton.setObjectName("radioButton")
        self.stackedWidget.addWidget(self.page)
        self.page_3 = QtGui.QWidget()
        self.page_3.setObjectName("page_3")
        self.timeEdit = QtGui.QTimeEdit(self.page_3)
        self.timeEdit.setGeometry(QtCore.QRect(40, 50, 118, 24))
        self.timeEdit.setObjectName("timeEdit")
        self.dateTimeEdit = QtGui.QDateTimeEdit(self.page_3)
        self.dateTimeEdit.setGeometry(QtCore.QRect(30, 90, 194, 24))
        self.dateTimeEdit.setObjectName("dateTimeEdit")
        self.horizontalScrollBar = QtGui.QScrollBar(self.page_3)
        self.horizontalScrollBar.setGeometry(QtCore.QRect(40, 10, 160, 16))
        self.horizontalScrollBar.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalScrollBar.setObjectName("horizontalScrollBar")
        self.horizontalSlider = QtGui.QSlider(self.page_3)
        self.horizontalSlider.setGeometry(QtCore.QRect(40, 30, 160, 22))
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName("horizontalSlider")
        self.stackedWidget.addWidget(self.page_3)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName("page_2")
        self.doubleSpinBox = QtGui.QDoubleSpinBox(self.page_2)
        self.doubleSpinBox.setGeometry(QtCore.QRect(50, 30, 62, 24))
        self.doubleSpinBox.setObjectName("doubleSpinBox")
        self.spinBox_2 = QtGui.QSpinBox(self.page_2)
        self.spinBox_2.setGeometry(QtCore.QRect(150, 30, 53, 24))
        self.spinBox_2.setObjectName("spinBox_2")
        self.stackedWidget.addWidget(self.page_2)

        self.retranslateUi(Dialog)
        self.stackedWidget.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
Beispiel #11
0
    def createDateTimeEdits(self):
        self.editsGroup = QtGui.QGroupBox("Date and time spin boxes")

        dateLabel = QtGui.QLabel()
        dateEdit = QtGui.QDateEdit(QtCore.QDate.currentDate())
        dateEdit.setDateRange(QtCore.QDate(2005, 1, 1),
                              QtCore.QDate(2010, 12, 31))
        dateLabel.setText("Appointment date (between %s and %s):" %
                          (dateEdit.minimumDate().toString(QtCore.Qt.ISODate),
                           dateEdit.maximumDate().toString(QtCore.Qt.ISODate)))

        timeLabel = QtGui.QLabel()
        timeEdit = QtGui.QTimeEdit(QtCore.QTime.currentTime())
        timeEdit.setTimeRange(QtCore.QTime(9, 0, 0, 0),
                              QtCore.QTime(16, 30, 0, 0))
        timeLabel.setText("Appointment time (between %s and %s):" %
                          (timeEdit.minimumTime().toString(QtCore.Qt.ISODate),
                           timeEdit.maximumTime().toString(QtCore.Qt.ISODate)))

        self.meetingLabel = QtGui.QLabel()
        self.meetingEdit = QtGui.QDateTimeEdit(
            QtCore.QDateTime.currentDateTime())

        formatLabel = QtGui.QLabel(
            "Format string for the meeting date and time:")

        formatComboBox = QtGui.QComboBox()
        formatComboBox.addItem('yyyy-MM-dd hh:mm:ss (zzz \'ms\')')
        formatComboBox.addItem('hh:mm:ss MM/dd/yyyy')
        formatComboBox.addItem('hh:mm:ss dd/MM/yyyy')
        formatComboBox.addItem('hh:mm:ss')
        formatComboBox.addItem('hh:mm ap')

        formatComboBox.activated[str].connect(self.setFormatString)

        self.setFormatString(formatComboBox.currentText())

        editsLayout = QtGui.QVBoxLayout()
        editsLayout.addWidget(dateLabel)
        editsLayout.addWidget(dateEdit)
        editsLayout.addWidget(timeLabel)
        editsLayout.addWidget(timeEdit)
        editsLayout.addWidget(self.meetingLabel)
        editsLayout.addWidget(self.meetingEdit)
        editsLayout.addWidget(formatLabel)
        editsLayout.addWidget(formatComboBox)
        self.editsGroup.setLayout(editsLayout)
Beispiel #12
0
    def __init__(self, parent=None):
        super(DateDialog, self).__init__(parent)

        layout = QtGui.QVBoxLayout(self)

        # nice widget for editing the date
        self.datetime = QtGui.QDateTimeEdit(self)
        self.datetime.setCalendarPopup(True)
        self.datetime.setDateTime(QtCore.QDateTime.currentDateTime())
        layout.addWidget(self.datetime)

        # OK and Cancel buttons
        buttons = QtGui.QDialogButtonBox(
            QtGui.QDialogButtonBox.Ok | QtGui.QDialogButtonBox.Cancel,
            QtCore.Qt.Horizontal, self)
        buttons.accepted.connect(self.accept)
        buttons.rejected.connect(self.reject)
        layout.addWidget(buttons)
Beispiel #13
0
def take_date_time_s(data_list, table, depth=0):
    """take_date_time_s"""
    offset = 0
    year = int(data_list[0] + data_list[1], 16)
    month = int(data_list[2], 16)
    day = int(data_list[3], 16)
    hour = int(data_list[4], 16)
    minute = int(data_list[5], 16)
    second = int(data_list[6], 16)
    offset += 7

    table_row_num = table.rowCount()
    table.insertRow(table_row_num)
    item = QtGui.QTableWidgetItem('date_time_s')
    table.setItem(table_row_num, 0, item)
    dt_w = QtGui.QDateTimeEdit()
    dt_read = QtCore.QDateTime(year, month, day, hour, minute, second)
    dt_w.setDateTime(dt_read)
    table.setCellWidget(table_row_num, 1, dt_w)
    return offset
Beispiel #14
0
    def __init__(self, parent=None):
        super(QueryPage, self).__init__(parent)

        packagesGroup = QtGui.QGroupBox("Look for packages")

        nameLabel = QtGui.QLabel("Name:")
        nameEdit = QtGui.QLineEdit()

        dateLabel = QtGui.QLabel("Released after:")
        dateEdit = QtGui.QDateTimeEdit(QtCore.QDate.currentDate())

        releasesCheckBox = QtGui.QCheckBox("Releases")
        upgradesCheckBox = QtGui.QCheckBox("Upgrades")

        hitsSpinBox = QtGui.QSpinBox()
        hitsSpinBox.setPrefix("Return up to ")
        hitsSpinBox.setSuffix(" results")
        hitsSpinBox.setSpecialValueText("Return only the first result")
        hitsSpinBox.setMinimum(1)
        hitsSpinBox.setMaximum(100)
        hitsSpinBox.setSingleStep(10)

        startQueryButton = QtGui.QPushButton("Start query")

        packagesLayout = QtGui.QGridLayout()
        packagesLayout.addWidget(nameLabel, 0, 0)
        packagesLayout.addWidget(nameEdit, 0, 1)
        packagesLayout.addWidget(dateLabel, 1, 0)
        packagesLayout.addWidget(dateEdit, 1, 1)
        packagesLayout.addWidget(releasesCheckBox, 2, 0)
        packagesLayout.addWidget(upgradesCheckBox, 3, 0)
        packagesLayout.addWidget(hitsSpinBox, 4, 0, 1, 2)
        packagesGroup.setLayout(packagesLayout)

        mainLayout = QtGui.QVBoxLayout()
        mainLayout.addWidget(packagesGroup)
        mainLayout.addSpacing(12)
        mainLayout.addWidget(startQueryButton)
        mainLayout.addStretch(1)

        self.setLayout(mainLayout)
    def _build_output(self, layout):
        layout.addWidget(self.section(m.output))
        self._out_type = QtGui.QButtonGroup(self)
        self._out_pk = QtGui.QRadioButton(m.out_pk)
        self._out_pk.setProperty('value', 'pk')
        self._out_ssc = QtGui.QRadioButton(m.out_ssc)
        self._out_ssc.setProperty('value', 'ssc')
        self._out_csr = QtGui.QRadioButton(m.out_csr)
        self._out_csr.setProperty('value', 'csr')
        self._out_ca = QtGui.QRadioButton(m.out_ca)
        self._out_ca.setProperty('value', 'ca')
        self._out_type.addButton(self._out_pk)
        self._out_type.addButton(self._out_ssc)
        self._out_type.addButton(self._out_csr)
        out_btns = []
        for button in self._out_type.buttons():
            value = button.property('value')
            if value in settings[SETTINGS.SHOWN_OUT_FORMS]:
                layout.addWidget(button)
                out_btns.append(button)
                if value == settings[SETTINGS.OUT_TYPE]:
                    button.setChecked(True)

        self._cert_tmpl = QtGui.QLineEdit(settings[SETTINGS.CERTREQ_TEMPLATE])
        if 'ca' in settings[SETTINGS.SHOWN_OUT_FORMS]:
            if has_ca():
                out_btns.append(self._out_ca)
                self._out_type.addButton(self._out_ca)
                self._out_ca.setChecked(True)
                layout.addWidget(self._out_ca)
                if not settings.is_locked(SETTINGS.CERTREQ_TEMPLATE):
                    cert_box = QtGui.QHBoxLayout()
                    cert_box.addWidget(QtGui.QLabel(m.cert_tmpl))
                    cert_box.addWidget(self._cert_tmpl)
                    layout.addLayout(cert_box)
            else:
                layout.addWidget(QtGui.QLabel(m.ca_not_connected))

        self._out_type.buttonClicked.connect(self._output_changed)

        buttons = QtGui.QDialogButtonBox(QtGui.QDialogButtonBox.Ok
                                         | QtGui.QDialogButtonBox.Cancel)

        self._subject = QtGui.QLineEdit(settings[SETTINGS.SUBJECT])
        self._subject.setValidator(SUBJECT_VALIDATOR)

        today = QtCore.QDate.currentDate()
        self._expire_date = QtGui.QDateTimeEdit(today.addYears(1))
        self._expire_date.setDisplayFormat("yyyy-MM-dd")
        self._expire_date.setMinimumDate(today.addDays(1))

        if not out_btns:
            layout.addWidget(QtGui.QLabel(m.no_output))
            buttons.button(QtGui.QDialogButtonBox.Ok).setDisabled(True)
        else:
            if not settings.is_locked(SETTINGS.SUBJECT) and \
                    needs_subject([b.property('value') for b in out_btns]):
                subject_box = QtGui.QHBoxLayout()
                subject_box.addWidget(QtGui.QLabel(m.subject))
                subject_box.addWidget(self._subject)
                layout.addLayout(subject_box)
                expire_date = QtGui.QHBoxLayout()
                expire_date.addWidget(QtGui.QLabel(m.expiration_date))
                expire_date.addWidget(self._expire_date)
                layout.addLayout(expire_date)

            out_btn = self._out_type.checkedButton()
            if out_btn is None:
                out_btn = out_btns[0]
                out_btn.setChecked(True)
            self._output_changed(out_btn)
        buttons.accepted.connect(self._generate)
        buttons.rejected.connect(self.reject)
        layout.addWidget(buttons)
Beispiel #16
0
 def __init__(self, parent = None):
   super(WidgetBuscarCaptura, self).__init__(parent)
   self.parent = parent
   self.iniciar_ui()
   self.showMaximized()
   self.default_date_time = QtGui.QDateTimeEdit().dateTime()
    def setupUi(self, dlgSampleCCD):
        dlgSampleCCD.setObjectName("dlgSampleCCD")
        dlgSampleCCD.resize(594, 555)
        font = QtGui.QFont()
        font.setPointSize(14)
        dlgSampleCCD.setFont(font)
        self.groupBox_2 = QtGui.QGroupBox(dlgSampleCCD)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 10, 571, 211))
        self.groupBox_2.setAutoFillBackground(True)
        self.groupBox_2.setObjectName("groupBox_2")
        self.label_7 = QtGui.QLabel(self.groupBox_2)
        self.label_7.setGeometry(QtCore.QRect(20, 105, 441, 16))
        self.label_7.setObjectName("label_7")
        self.label_8 = QtGui.QLabel(self.groupBox_2)
        self.label_8.setGeometry(QtCore.QRect(20, 139, 381, 16))
        self.label_8.setObjectName("label_8")
        self.leSampleCode = QtGui.QLineEdit(self.groupBox_2)
        self.leSampleCode.setGeometry(QtCore.QRect(460, 100, 101, 31))
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setWeight(75)
        font.setBold(True)
        self.leSampleCode.setFont(font)
        self.leSampleCode.setObjectName("leSampleCode")
        self.leSampleDescription = QtGui.QLineEdit(self.groupBox_2)
        self.leSampleDescription.setGeometry(QtCore.QRect(20, 169, 541, 31))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.leSampleDescription.setFont(font)
        self.leSampleDescription.setObjectName("leSampleDescription")
        self.leDataFolder = QtGui.QLineEdit(self.groupBox_2)
        self.leDataFolder.setGeometry(QtCore.QRect(20, 60, 531, 29))
        self.leDataFolder.setObjectName("leDataFolder")
        self.label_13 = QtGui.QLabel(self.groupBox_2)
        self.label_13.setGeometry(QtCore.QRect(20, 30, 171, 20))
        self.label_13.setObjectName("label_13")
        self.groupBox_3 = QtGui.QGroupBox(dlgSampleCCD)
        self.groupBox_3.setGeometry(QtCore.QRect(10, 240, 571, 221))
        self.groupBox_3.setAutoFillBackground(True)
        self.groupBox_3.setObjectName("groupBox_3")
        self.label_11 = QtGui.QLabel(self.groupBox_3)
        self.label_11.setGeometry(QtCore.QRect(207, 40, 201, 16))
        self.label_11.setObjectName("label_11")
        self.dsbExposureTime = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.dsbExposureTime.setGeometry(QtCore.QRect(397, 38, 111, 31))
        self.dsbExposureTime.setAlignment(QtCore.Qt.AlignRight
                                          | QtCore.Qt.AlignTrailing
                                          | QtCore.Qt.AlignVCenter)
        self.dsbExposureTime.setDecimals(3)
        self.dsbExposureTime.setMinimum(0.01)
        self.dsbExposureTime.setMaximum(99999.99)
        self.dsbExposureTime.setProperty("value", 1.0)
        self.dsbExposureTime.setObjectName("dsbExposureTime")
        self.label_12 = QtGui.QLabel(self.groupBox_3)
        self.label_12.setGeometry(QtCore.QRect(207, 90, 201, 16))
        self.label_12.setObjectName("label_12")
        self.sbNumberOfFrames = QtGui.QSpinBox(self.groupBox_3)
        self.sbNumberOfFrames.setGeometry(QtCore.QRect(397, 80, 111, 31))
        self.sbNumberOfFrames.setAlignment(QtCore.Qt.AlignRight
                                           | QtCore.Qt.AlignTrailing
                                           | QtCore.Qt.AlignVCenter)
        self.sbNumberOfFrames.setMinimum(1)
        self.sbNumberOfFrames.setMaximum(99999)
        self.sbNumberOfFrames.setObjectName("sbNumberOfFrames")
        self.label_14 = QtGui.QLabel(self.groupBox_3)
        self.label_14.setGeometry(QtCore.QRect(210, 130, 181, 16))
        self.label_14.setObjectName("label_14")
        self.lblDetectorStatus = QtGui.QLabel(self.groupBox_3)
        self.lblDetectorStatus.setGeometry(QtCore.QRect(407, 120, 151, 31))
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setWeight(75)
        font.setBold(True)
        self.lblDetectorStatus.setFont(font)
        self.lblDetectorStatus.setStyleSheet("color:green")
        self.lblDetectorStatus.setObjectName("lblDetectorStatus")
        self.pbStartMarCCD = QtGui.QPushButton(self.groupBox_3)
        self.pbStartMarCCD.setGeometry(QtCore.QRect(330, 160, 141, 41))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.pbStartMarCCD.setFont(font)
        self.pbStartMarCCD.setStyleSheet("")
        self.pbStartMarCCD.setObjectName("pbStartMarCCD")
        self.pbTakeDark = QtGui.QPushButton(self.groupBox_3)
        self.pbTakeDark.setGeometry(QtCore.QRect(20, 40, 141, 41))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.pbTakeDark.setFont(font)
        self.pbTakeDark.setStyleSheet("")
        self.pbTakeDark.setObjectName("pbTakeDark")
        self.dteNow = QtGui.QDateTimeEdit(dlgSampleCCD)
        self.dteNow.setGeometry(QtCore.QRect(10, 492, 311, 51))
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setWeight(50)
        font.setBold(False)
        self.dteNow.setFont(font)
        self.dteNow.setReadOnly(True)
        self.dteNow.setDate(QtCore.QDate(2016, 3, 10))
        self.dteNow.setTime(QtCore.QTime(13, 0, 0))
        self.dteNow.setMaximumTime(QtCore.QTime(22, 59, 59))
        self.dteNow.setObjectName("dteNow")
        self.line = QtGui.QFrame(dlgSampleCCD)
        self.line.setGeometry(QtCore.QRect(10, 470, 571, 20))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.label_15 = QtGui.QLabel(dlgSampleCCD)
        self.label_15.setGeometry(QtCore.QRect(330, 520, 221, 31))
        self.label_15.setObjectName("label_15")
        self.lblStorageRingCurrent = QtGui.QLabel(dlgSampleCCD)
        self.lblStorageRingCurrent.setGeometry(QtCore.QRect(480, 510, 111, 51))
        font = QtGui.QFont()
        font.setPointSize(20)
        font.setWeight(75)
        font.setBold(True)
        self.lblStorageRingCurrent.setFont(font)
        self.lblStorageRingCurrent.setStyleSheet("color:green")
        self.lblStorageRingCurrent.setAlignment(QtCore.Qt.AlignRight
                                                | QtCore.Qt.AlignTrailing
                                                | QtCore.Qt.AlignVCenter)
        self.lblStorageRingCurrent.setIndent(0)
        self.lblStorageRingCurrent.setObjectName("lblStorageRingCurrent")
        self.label_9 = QtGui.QLabel(dlgSampleCCD)
        self.label_9.setGeometry(QtCore.QRect(330, 490, 171, 21))
        self.label_9.setObjectName("label_9")
        self.lblRunNumber = QtGui.QLabel(dlgSampleCCD)
        self.lblRunNumber.setGeometry(QtCore.QRect(490, 490, 101, 16))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.lblRunNumber.setFont(font)
        self.lblRunNumber.setAlignment(QtCore.Qt.AlignRight
                                       | QtCore.Qt.AlignTrailing
                                       | QtCore.Qt.AlignVCenter)
        self.lblRunNumber.setObjectName("lblRunNumber")

        self.retranslateUi(dlgSampleCCD)
        QtCore.QMetaObject.connectSlotsByName(dlgSampleCCD)
        dlgSampleCCD.setTabOrder(self.leDataFolder, self.leSampleCode)
        dlgSampleCCD.setTabOrder(self.leSampleCode, self.leSampleDescription)
        dlgSampleCCD.setTabOrder(self.leSampleDescription,
                                 self.dsbExposureTime)
        dlgSampleCCD.setTabOrder(self.dsbExposureTime, self.sbNumberOfFrames)
        dlgSampleCCD.setTabOrder(self.sbNumberOfFrames, self.pbStartMarCCD)
        dlgSampleCCD.setTabOrder(self.pbStartMarCCD, self.dteNow)
Beispiel #18
0
from myTool.lib import qt
from PySide import QtGui, QtCore
window = QtGui.QWidget(qt.getMayaWindow())
window.setWindowFlags(QtCore.Qt.Window)
layout = QtGui.QHBoxLayout(window)

widget = QtGui.QDateTimeEdit(window)
date = QtCore.QDate(2016, 1, 1)
time = QtCore.QTime(20, 00, 00)
dateTime = QtCore.QDateTime(date, time)
widget.setDateTime(dateTime)
layout.addWidget(widget)

window.show()
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(962, 771)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.uiSPL_test1 = QtGui.QSplitter(self.centralwidget)
        self.uiSPL_test1.setOrientation(QtCore.Qt.Horizontal)
        self.uiSPL_test1.setHandleWidth(10)
        self.uiSPL_test1.setObjectName("uiSPL_test1")
        self.layoutWidget = QtGui.QWidget(self.uiSPL_test1)
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.uiCHK_test1 = QtGui.QCheckBox(self.layoutWidget)
        self.uiCHK_test1.setObjectName("uiCHK_test1")
        self.verticalLayout.addWidget(self.uiCHK_test1)
        self.uiCHK_testTri1 = QtGui.QCheckBox(self.layoutWidget)
        self.uiCHK_testTri1.setTristate(True)
        self.uiCHK_testTri1.setObjectName("uiCHK_testTri1")
        self.verticalLayout.addWidget(self.uiCHK_testTri1)
        self.uiGRPBOX_test1 = QtGui.QGroupBox(self.layoutWidget)
        self.uiGRPBOX_test1.setCheckable(True)
        self.uiGRPBOX_test1.setChecked(True)
        self.uiGRPBOX_test1.setObjectName("uiGRPBOX_test1")
        self.horizontalLayout = QtGui.QHBoxLayout(self.uiGRPBOX_test1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.uiRAD_test1 = QtGui.QRadioButton(self.uiGRPBOX_test1)
        self.uiRAD_test1.setObjectName("uiRAD_test1")
        self.horizontalLayout.addWidget(self.uiRAD_test1)
        self.uiRAD_test2 = QtGui.QRadioButton(self.uiGRPBOX_test1)
        self.uiRAD_test2.setObjectName("uiRAD_test2")
        self.horizontalLayout.addWidget(self.uiRAD_test2)
        self.verticalLayout.addWidget(self.uiGRPBOX_test1)
        self.uiLED_test1 = QtGui.QLineEdit(self.layoutWidget)
        self.uiLED_test1.setObjectName("uiLED_test1")
        self.verticalLayout.addWidget(self.uiLED_test1)
        self.uiSPN_test1 = QtGui.QSpinBox(self.layoutWidget)
        self.uiSPN_test1.setObjectName("uiSPN_test1")
        self.verticalLayout.addWidget(self.uiSPN_test1)
        self.uiSPNDBL_test1 = QtGui.QDoubleSpinBox(self.layoutWidget)
        self.uiSPNDBL_test1.setObjectName("uiSPNDBL_test1")
        self.verticalLayout.addWidget(self.uiSPNDBL_test1)
        self.uiTIMEDT_test1 = QtGui.QTimeEdit(self.layoutWidget)
        self.uiTIMEDT_test1.setObjectName("uiTIMEDT_test1")
        self.verticalLayout.addWidget(self.uiTIMEDT_test1)
        self.uiDATEDT_test1 = QtGui.QDateEdit(self.layoutWidget)
        self.uiDATEDT_test1.setObjectName("uiDATEDT_test1")
        self.verticalLayout.addWidget(self.uiDATEDT_test1)
        self.uiDTEDIT_test1 = QtGui.QDateTimeEdit(self.layoutWidget)
        self.uiDTEDIT_test1.setObjectName("uiDTEDIT_test1")
        self.verticalLayout.addWidget(self.uiDTEDIT_test1)
        self.uiBTN_test1 = QtGui.QPushButton(self.layoutWidget)
        self.uiBTN_test1.setCheckable(True)
        self.uiBTN_test1.setObjectName("uiBTN_test1")
        self.verticalLayout.addWidget(self.uiBTN_test1)
        self.uiCBX_test1 = QtGui.QComboBox(self.layoutWidget)
        self.uiCBX_test1.setObjectName("uiCBX_test1")
        self.uiCBX_test1.addItem("")
        self.uiCBX_test1.addItem("")
        self.uiCBX_test1.addItem("")
        self.uiCBX_test1.addItem("")
        self.uiCBX_test1.addItem("")
        self.uiCBX_test1.addItem("")
        self.uiCBX_test1.addItem("")
        self.verticalLayout.addWidget(self.uiCBX_test1)
        self.uiCBX_test2 = QtGui.QComboBox(self.layoutWidget)
        self.uiCBX_test2.setEditable(True)
        self.uiCBX_test2.setObjectName("uiCBX_test2")
        self.verticalLayout.addWidget(self.uiCBX_test2)
        self.uiSCR_test1 = QtGui.QScrollBar(self.layoutWidget)
        self.uiSCR_test1.setOrientation(QtCore.Qt.Horizontal)
        self.uiSCR_test1.setObjectName("uiSCR_test1")
        self.verticalLayout.addWidget(self.uiSCR_test1)
        self.uiSLD_test1 = QtGui.QSlider(self.layoutWidget)
        self.uiSLD_test1.setOrientation(QtCore.Qt.Horizontal)
        self.uiSLD_test1.setObjectName("uiSLD_test1")
        self.verticalLayout.addWidget(self.uiSLD_test1)
        self.uiDIA_test1 = QtGui.QDial(self.layoutWidget)
        self.uiDIA_test1.setObjectName("uiDIA_test1")
        self.verticalLayout.addWidget(self.uiDIA_test1)
        self.horizontalLayout_15 = QtGui.QHBoxLayout()
        self.horizontalLayout_15.setObjectName("horizontalLayout_15")
        self.label_4 = QtGui.QLabel(self.layoutWidget)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_15.addWidget(self.label_4)
        self.uiLED_testVariable1 = QtGui.QLineEdit(self.layoutWidget)
        self.uiLED_testVariable1.setObjectName("uiLED_testVariable1")
        self.horizontalLayout_15.addWidget(self.uiLED_testVariable1)
        self.verticalLayout.addLayout(self.horizontalLayout_15)
        self.uiBTN_showDialog = QtGui.QPushButton(self.layoutWidget)
        self.uiBTN_showDialog.setObjectName("uiBTN_showDialog")
        self.verticalLayout.addWidget(self.uiBTN_showDialog)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.uiTAB_test1 = QtGui.QTabWidget(self.uiSPL_test1)
        self.uiTAB_test1.setObjectName("uiTAB_test1")
        self.uiTABPG_listWidget = QtGui.QWidget()
        self.uiTABPG_listWidget.setObjectName("uiTABPG_listWidget")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.uiTABPG_listWidget)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.uiLSTWID_test1 = QtGui.QListWidget(self.uiTABPG_listWidget)
        self.uiLSTWID_test1.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.uiLSTWID_test1.setObjectName("uiLSTWID_test1")
        QtGui.QListWidgetItem(self.uiLSTWID_test1)
        QtGui.QListWidgetItem(self.uiLSTWID_test1)
        QtGui.QListWidgetItem(self.uiLSTWID_test1)
        QtGui.QListWidgetItem(self.uiLSTWID_test1)
        QtGui.QListWidgetItem(self.uiLSTWID_test1)
        QtGui.QListWidgetItem(self.uiLSTWID_test1)
        QtGui.QListWidgetItem(self.uiLSTWID_test1)
        self.horizontalLayout_2.addWidget(self.uiLSTWID_test1)
        self.uiTAB_test1.addTab(self.uiTABPG_listWidget, "")
        self.uiTABPG_treeWidget = QtGui.QWidget()
        self.uiTABPG_treeWidget.setObjectName("uiTABPG_treeWidget")
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.uiTABPG_treeWidget)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.uiTREW_test1 = QtGui.QTreeWidget(self.uiTABPG_treeWidget)
        self.uiTREW_test1.setAlternatingRowColors(True)
        self.uiTREW_test1.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.uiTREW_test1.setSelectionBehavior(
            QtGui.QAbstractItemView.SelectItems)
        self.uiTREW_test1.setObjectName("uiTREW_test1")
        item_0 = QtGui.QTreeWidgetItem(self.uiTREW_test1)
        item_0 = QtGui.QTreeWidgetItem(self.uiTREW_test1)
        item_0 = QtGui.QTreeWidgetItem(self.uiTREW_test1)
        item_0 = QtGui.QTreeWidgetItem(self.uiTREW_test1)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_0 = QtGui.QTreeWidgetItem(self.uiTREW_test1)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_0 = QtGui.QTreeWidgetItem(self.uiTREW_test1)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        self.uiTREW_test1.header().setDefaultSectionSize(200)
        self.uiTREW_test1.header().setMinimumSectionSize(200)
        self.uiTREW_test1.header().setSortIndicatorShown(True)
        self.horizontalLayout_3.addWidget(self.uiTREW_test1)
        self.uiTAB_test1.addTab(self.uiTABPG_treeWidget, "")
        self.uiTABPG_tableWidget = QtGui.QWidget()
        self.uiTABPG_tableWidget.setObjectName("uiTABPG_tableWidget")
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.uiTABPG_tableWidget)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.uiTBLWID_test1 = QtGui.QTableWidget(self.uiTABPG_tableWidget)
        self.uiTBLWID_test1.setObjectName("uiTBLWID_test1")
        self.uiTBLWID_test1.setColumnCount(2)
        self.uiTBLWID_test1.setRowCount(7)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setVerticalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setVerticalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setVerticalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(0, 0, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(0, 1, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(1, 0, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(1, 1, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(2, 0, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(2, 1, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(3, 0, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(3, 1, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(4, 0, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(4, 1, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(5, 0, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(5, 1, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(6, 0, item)
        item = QtGui.QTableWidgetItem()
        self.uiTBLWID_test1.setItem(6, 1, item)
        self.uiTBLWID_test1.horizontalHeader().setSortIndicatorShown(True)
        self.horizontalLayout_4.addWidget(self.uiTBLWID_test1)
        self.uiTAB_test1.addTab(self.uiTABPG_tableWidget, "")
        self.uiTABPG_listView = QtGui.QWidget()
        self.uiTABPG_listView.setObjectName("uiTABPG_listView")
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.uiTABPG_listView)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.uiLSTV_test1 = QtGui.QListView(self.uiTABPG_listView)
        self.uiLSTV_test1.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.uiLSTV_test1.setObjectName("uiLSTV_test1")
        self.horizontalLayout_7.addWidget(self.uiLSTV_test1)
        self.uiTAB_test1.addTab(self.uiTABPG_listView, "")
        self.uiTABPG_treeView = QtGui.QWidget()
        self.uiTABPG_treeView.setObjectName("uiTABPG_treeView")
        self.horizontalLayout_8 = QtGui.QHBoxLayout(self.uiTABPG_treeView)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.uiTREV_test1 = QtGui.QTreeView(self.uiTABPG_treeView)
        self.uiTREV_test1.setAlternatingRowColors(True)
        self.uiTREV_test1.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.uiTREV_test1.setSelectionBehavior(
            QtGui.QAbstractItemView.SelectItems)
        self.uiTREV_test1.setSortingEnabled(True)
        self.uiTREV_test1.setObjectName("uiTREV_test1")
        self.uiTREV_test1.header().setDefaultSectionSize(200)
        self.uiTREV_test1.header().setMinimumSectionSize(200)
        self.uiTREV_test1.header().setSortIndicatorShown(True)
        self.horizontalLayout_8.addWidget(self.uiTREV_test1)
        self.uiTAB_test1.addTab(self.uiTABPG_treeView, "")
        self.uiTABPG_tableView = QtGui.QWidget()
        self.uiTABPG_tableView.setObjectName("uiTABPG_tableView")
        self.horizontalLayout_10 = QtGui.QHBoxLayout(self.uiTABPG_tableView)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.uiTBLV_test1 = QtGui.QTableView(self.uiTABPG_tableView)
        self.uiTBLV_test1.setSortingEnabled(True)
        self.uiTBLV_test1.setObjectName("uiTBLV_test1")
        self.uiTBLV_test1.horizontalHeader().setSortIndicatorShown(True)
        self.horizontalLayout_10.addWidget(self.uiTBLV_test1)
        self.uiTAB_test1.addTab(self.uiTABPG_tableView, "")
        self.uiTABPG_columnView = QtGui.QWidget()
        self.uiTABPG_columnView.setObjectName("uiTABPG_columnView")
        self.horizontalLayout_9 = QtGui.QHBoxLayout(self.uiTABPG_columnView)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.uiCOLV_test1 = QtGui.QColumnView(self.uiTABPG_columnView)
        self.uiCOLV_test1.setObjectName("uiCOLV_test1")
        self.horizontalLayout_9.addWidget(self.uiCOLV_test1)
        self.uiTAB_test1.addTab(self.uiTABPG_columnView, "")
        self.uiTABPG_scrollText = QtGui.QWidget()
        self.uiTABPG_scrollText.setObjectName("uiTABPG_scrollText")
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.uiTABPG_scrollText)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.uiSCA_test1 = QtGui.QScrollArea(self.uiTABPG_scrollText)
        self.uiSCA_test1.setWidgetResizable(True)
        self.uiSCA_test1.setObjectName("uiSCA_test1")
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 634, 676))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.horizontalLayout_11 = QtGui.QHBoxLayout(
            self.scrollAreaWidgetContents)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.uiTXTEDT_test1 = QtGui.QTextEdit(self.scrollAreaWidgetContents)
        self.uiTXTEDT_test1.setMinimumSize(QtCore.QSize(300, 600))
        self.uiTXTEDT_test1.setObjectName("uiTXTEDT_test1")
        self.horizontalLayout_11.addWidget(self.uiTXTEDT_test1)
        self.uiPTXEDT_test1 = QtGui.QPlainTextEdit(
            self.scrollAreaWidgetContents)
        self.uiPTXEDT_test1.setMinimumSize(QtCore.QSize(300, 600))
        self.uiPTXEDT_test1.setObjectName("uiPTXEDT_test1")
        self.horizontalLayout_11.addWidget(self.uiPTXEDT_test1)
        self.uiSCA_test1.setWidget(self.scrollAreaWidgetContents)
        self.horizontalLayout_6.addWidget(self.uiSCA_test1)
        self.uiTAB_test1.addTab(self.uiTABPG_scrollText, "")
        self.uiTABPG_stackTool = QtGui.QWidget()
        self.uiTABPG_stackTool.setObjectName("uiTABPG_stackTool")
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.uiTABPG_stackTool)
        self.verticalLayout_6.setSpacing(0)
        self.verticalLayout_6.setContentsMargins(4, 6, 4, 4)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_12 = QtGui.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_12.addItem(spacerItem1)
        self.uiBTN_stackDec = QtGui.QPushButton(self.uiTABPG_stackTool)
        self.uiBTN_stackDec.setObjectName("uiBTN_stackDec")
        self.horizontalLayout_12.addWidget(self.uiBTN_stackDec)
        self.uiBTN_stackInc = QtGui.QPushButton(self.uiTABPG_stackTool)
        self.uiBTN_stackInc.setObjectName("uiBTN_stackInc")
        self.horizontalLayout_12.addWidget(self.uiBTN_stackInc)
        self.verticalLayout_6.addLayout(self.horizontalLayout_12)
        self.uiSTK_test1 = QtGui.QStackedWidget(self.uiTABPG_stackTool)
        self.uiSTK_test1.setObjectName("uiSTK_test1")
        self.page0 = QtGui.QWidget()
        self.page0.setObjectName("page0")
        self.horizontalLayout_14 = QtGui.QHBoxLayout(self.page0)
        self.horizontalLayout_14.setSpacing(0)
        self.horizontalLayout_14.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label = QtGui.QLabel(self.page0)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.verticalLayout_3.addWidget(self.label)
        self.horizontalLayout_13 = QtGui.QHBoxLayout()
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.uiTBX_test1 = QtGui.QToolBox(self.page0)
        self.uiTBX_test1.setObjectName("uiTBX_test1")
        self.page = QtGui.QWidget()
        self.page.setGeometry(QtCore.QRect(0, 0, 98, 28))
        self.page.setObjectName("page")
        self.uiTBX_test1.addItem(self.page, "")
        self.page_2 = QtGui.QWidget()
        self.page_2.setGeometry(QtCore.QRect(0, 0, 98, 28))
        self.page_2.setObjectName("page_2")
        self.uiTBX_test1.addItem(self.page_2, "")
        self.page_5 = QtGui.QWidget()
        self.page_5.setGeometry(QtCore.QRect(0, 0, 318, 557))
        self.page_5.setObjectName("page_5")
        self.uiTBX_test1.addItem(self.page_5, "")
        self.horizontalLayout_13.addWidget(self.uiTBX_test1)
        self.uiTBX_test2 = QtGui.QToolBox(self.page0)
        self.uiTBX_test2.setObjectName("uiTBX_test2")
        self.page_3 = QtGui.QWidget()
        self.page_3.setGeometry(QtCore.QRect(0, 0, 98, 28))
        self.page_3.setObjectName("page_3")
        self.uiTBX_test2.addItem(self.page_3, "")
        self.page_4 = QtGui.QWidget()
        self.page_4.setGeometry(QtCore.QRect(0, 0, 98, 28))
        self.page_4.setObjectName("page_4")
        self.uiTBX_test2.addItem(self.page_4, "")
        self.page_6 = QtGui.QWidget()
        self.page_6.setGeometry(QtCore.QRect(0, 0, 318, 557))
        self.page_6.setObjectName("page_6")
        self.uiTBX_test2.addItem(self.page_6, "")
        self.horizontalLayout_13.addWidget(self.uiTBX_test2)
        self.verticalLayout_3.addLayout(self.horizontalLayout_13)
        self.horizontalLayout_14.addLayout(self.verticalLayout_3)
        self.uiSTK_test1.addWidget(self.page0)
        self.page1 = QtGui.QWidget()
        self.page1.setObjectName("page1")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.page1)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_2 = QtGui.QLabel(self.page1)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_4.addWidget(self.label_2)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem2)
        self.uiSTK_test1.addWidget(self.page1)
        self.page2 = QtGui.QWidget()
        self.page2.setObjectName("page2")
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.page2)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.label_3 = QtGui.QLabel(self.page2)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_5.addWidget(self.label_3)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem3)
        self.uiSTK_test1.addWidget(self.page2)
        self.verticalLayout_6.addWidget(self.uiSTK_test1)
        self.uiTAB_test1.addTab(self.uiTABPG_stackTool, "")
        self.verticalLayout_2.addWidget(self.uiSPL_test1)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem4)
        self.uiBTN_savePrefs = QtGui.QPushButton(self.centralwidget)
        self.uiBTN_savePrefs.setObjectName("uiBTN_savePrefs")
        self.horizontalLayout_5.addWidget(self.uiBTN_savePrefs)
        self.uiBTN_loadPrefs = QtGui.QPushButton(self.centralwidget)
        self.uiBTN_loadPrefs.setObjectName("uiBTN_loadPrefs")
        self.horizontalLayout_5.addWidget(self.uiBTN_loadPrefs)
        self.uiBTN_resetPrefs = QtGui.QPushButton(self.centralwidget)
        self.uiBTN_resetPrefs.setObjectName("uiBTN_resetPrefs")
        self.horizontalLayout_5.addWidget(self.uiBTN_resetPrefs)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.verticalLayout_2.setStretch(0, 1)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        self.uiTAB_test1.setCurrentIndex(2)
        self.uiSTK_test1.setCurrentIndex(0)
        self.uiTBX_test1.setCurrentIndex(2)
        self.uiTBX_test2.setCurrentIndex(2)
        QtCore.QObject.connect(self.uiBTN_savePrefs,
                               QtCore.SIGNAL("clicked()"),
                               MainWindow.onSavePrefsClicked)
        QtCore.QObject.connect(self.uiBTN_loadPrefs,
                               QtCore.SIGNAL("clicked()"),
                               MainWindow.onLoadPrefsClicked)
        QtCore.QObject.connect(self.uiBTN_resetPrefs,
                               QtCore.SIGNAL("clicked()"),
                               MainWindow.onResetPrefsClicked)
        QtCore.QObject.connect(self.uiBTN_showDialog,
                               QtCore.SIGNAL("clicked()"),
                               MainWindow.onShowDialogClicked)
        QtCore.QObject.connect(self.uiBTN_stackDec, QtCore.SIGNAL("clicked()"),
                               MainWindow.onStackedWidgetPageDec)
        QtCore.QObject.connect(self.uiBTN_stackInc, QtCore.SIGNAL("clicked()"),
                               MainWindow.onStackedWidgetPageInc)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
    def siapkanUI(self):
        self.resize(300, 200)
        self.setWindowTitle('Tutorial PySide')

        layout = QtGui.QFormLayout(self)

        nasiGoreng = QtGui.QCheckBox('Nasi Goreng')
        nasiPecel = QtGui.QCheckBox('Nasi Pecel')
        nasiKuning = QtGui.QCheckBox('Nasi Kuning')

        bungkus = QtGui.QRadioButton('Bungkus')

        menuComboBox = QtGui.QComboBox()
        menuComboBox.insertItem(1, 'Nasi Goreng')
        menuComboBox.insertItem(2, 'Nasi Pecel')
        menuComboBox.insertItem(3, 'Nasi Kuning')

        fontComboBox = QtGui.QFontComboBox()

        dateTimeEdit = QtGui.QDateTimeEdit(QtCore.QDateTime.currentDateTime())
        dateEdit = QtGui.QDateEdit(QtCore.QDate.currentDate())
        timeEdit = QtGui.QTimeEdit(QtCore.QTime.currentTime())

        lineEdit = QtGui.QLineEdit()
        spinBox = QtGui.QSpinBox()
        textEdit = QtGui.QTextEdit()

        button = QtGui.QPushButton('Pesan')

        layout.addRow(QtGui.QLabel('Menu:'))
        layout.addRow(nasiGoreng)
        layout.addRow(nasiPecel)
        layout.addRow(nasiKuning)

        layout.addRow(QtGui.QLabel('Bungkus Makanan?'))
        layout.addRow(bungkus)

        layout.addRow(QtGui.QLabel('Menu Makanan'))
        layout.addRow(menuComboBox)

        layout.addRow(QtGui.QLabel('Pilih Font'))
        layout.addRow(fontComboBox)

        layout.addRow(QtGui.QLabel('Tanggal dan Waktu'))
        layout.addRow(dateTimeEdit)

        layout.addRow(QtGui.QLabel('Tanggal'))
        layout.addRow(dateEdit)

        layout.addRow(QtGui.QLabel('Waktu'))
        layout.addRow(timeEdit)

        layout.addRow(QtGui.QLabel('Nama'))
        layout.addRow(lineEdit)

        layout.addRow(QtGui.QLabel('Jumlah Porsi'))
        layout.addRow(spinBox)

        layout.addRow(QtGui.QLabel('Catatan'))
        layout.addRow(textEdit)

        layout.addRow(button)
Beispiel #21
0
    def setupUi(self, BackSide):
        BackSide.setObjectName("BackSide")
        BackSide.resize(378, 385)
        self.verticalLayout_2 = QtGui.QVBoxLayout(BackSide)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox = QtGui.QGroupBox(BackSide)
        self.groupBox.setFlat(True)
        self.groupBox.setCheckable(True)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.hostName = QtGui.QLineEdit(self.groupBox)
        self.hostName.setObjectName("hostName")
        self.gridLayout.addWidget(self.hostName, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.horizontalSlider = QtGui.QSlider(self.groupBox)
        self.horizontalSlider.setProperty("value", 42)
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName("horizontalSlider")
        self.horizontalLayout.addWidget(self.horizontalSlider)
        self.spinBox = QtGui.QSpinBox(self.groupBox)
        self.spinBox.setProperty("value", 42)
        self.spinBox.setObjectName("spinBox")
        self.horizontalLayout.addWidget(self.spinBox)
        self.gridLayout.addLayout(self.horizontalLayout, 2, 1, 1, 1)
        self.dateTimeEdit = QtGui.QDateTimeEdit(self.groupBox)
        self.dateTimeEdit.setObjectName("dateTimeEdit")
        self.gridLayout.addWidget(self.dateTimeEdit, 1, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(BackSide)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setCheckable(True)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.treeWidget = QtGui.QTreeWidget(self.groupBox_2)
        self.treeWidget.setObjectName("treeWidget")
        item_0 = QtGui.QTreeWidgetItem(self.treeWidget)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_0 = QtGui.QTreeWidgetItem(self.treeWidget)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        item_0 = QtGui.QTreeWidgetItem(self.treeWidget)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        self.horizontalLayout_2.addWidget(self.treeWidget)
        self.verticalLayout_2.addWidget(self.groupBox_2)

        self.retranslateUi(BackSide)
        QtCore.QObject.connect(self.horizontalSlider,
                               QtCore.SIGNAL("valueChanged(int)"),
                               self.spinBox.setValue)
        QtCore.QObject.connect(self.spinBox,
                               QtCore.SIGNAL("valueChanged(int)"),
                               self.horizontalSlider.setValue)
        QtCore.QMetaObject.connectSlotsByName(BackSide)
        BackSide.setTabOrder(self.groupBox, self.hostName)
        BackSide.setTabOrder(self.hostName, self.dateTimeEdit)
        BackSide.setTabOrder(self.dateTimeEdit, self.horizontalSlider)
        BackSide.setTabOrder(self.horizontalSlider, self.spinBox)
        BackSide.setTabOrder(self.spinBox, self.groupBox_2)
        BackSide.setTabOrder(self.groupBox_2, self.treeWidget)
Beispiel #22
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(944, 635)
        font = QtGui.QFont()
        font.setPointSize(9)
        MainWindow.setFont(font)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("Z1.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.tabWidget.setFont(font)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tab)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.dateTimeEdit = QtGui.QDateTimeEdit(self.tab)
        self.dateTimeEdit.setObjectName("dateTimeEdit")
        self.verticalLayout_7.addWidget(self.dateTimeEdit)
        self.calendarWidget = QtGui.QCalendarWidget(self.tab)
        self.calendarWidget.setObjectName("calendarWidget")
        self.verticalLayout_7.addWidget(self.calendarWidget)
        self.pushButton_3 = QtGui.QPushButton(self.tab)
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(14)
        self.pushButton_3.setFont(font)
        self.pushButton_3.setObjectName("pushButton_3")
        self.verticalLayout_7.addWidget(self.pushButton_3)
        self.horizontalLayout_2.addLayout(self.verticalLayout_7)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.textEdit_2 = QtGui.QTextEdit(self.tab)
        self.textEdit_2.setObjectName("textEdit_2")
        self.verticalLayout_3.addWidget(self.textEdit_2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.pushButton_2 = QtGui.QPushButton(self.tab)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.pushButton_2.setFont(font)
        self.pushButton_2.setObjectName("pushButton_2")
        self.horizontalLayout_3.addWidget(self.pushButton_2)
        self.pushButton = QtGui.QPushButton(self.tab)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.pushButton.setFont(font)
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout_3.addWidget(self.pushButton)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2.addLayout(self.verticalLayout_3)
        self.tabWidget.addTab(self.tab, "")
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.horizontalLayout = QtGui.QHBoxLayout(self.tab_3)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.tableView_2 = QtGui.QTableView(self.tab_3)
        self.tableView_2.setObjectName("tableView_2")
        self.horizontalLayout.addWidget(self.tableView_2)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.tab_2)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.verticalLayout_4.addLayout(self.horizontalLayout_8)
        self.pushButton_4 = QtGui.QPushButton(self.tab_2)
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(12)
        self.pushButton_4.setFont(font)
        self.pushButton_4.setObjectName("pushButton_4")
        self.verticalLayout_4.addWidget(self.pushButton_4)
        self.horizontalLayout_5.addLayout(self.verticalLayout_4)
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.tab_4)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.verticalLayout_5.addLayout(self.horizontalLayout_9)
        self.pushButton_5 = QtGui.QPushButton(self.tab_4)
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(12)
        self.pushButton_5.setFont(font)
        self.pushButton_5.setObjectName("pushButton_5")
        self.verticalLayout_5.addWidget(self.pushButton_5)
        self.horizontalLayout_6.addLayout(self.verticalLayout_5)
        self.tabWidget.addTab(self.tab_4, "")
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.tab_5)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.verticalLayout_2.addLayout(self.horizontalLayout_10)
        self.pushButton_6 = QtGui.QPushButton(self.tab_5)
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(12)
        self.pushButton_6.setFont(font)
        self.pushButton_6.setObjectName("pushButton_6")
        self.verticalLayout_2.addWidget(self.pushButton_6)
        self.horizontalLayout_4.addLayout(self.verticalLayout_2)
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_6 = QtGui.QWidget()
        self.tab_6.setObjectName("tab_6")
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.tab_6)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_11 = QtGui.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.verticalLayout_6.addLayout(self.horizontalLayout_11)
        self.pushButton_7 = QtGui.QPushButton(self.tab_6)
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(12)
        self.pushButton_7.setFont(font)
        self.pushButton_7.setObjectName("pushButton_7")
        self.verticalLayout_6.addWidget(self.pushButton_7)
        self.horizontalLayout_7.addLayout(self.verticalLayout_6)
        self.tabWidget.addTab(self.tab_6, "")
        self.verticalLayout.addWidget(self.tabWidget)
        self.label_2 = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setPointSize(10)
        self.label_2.setFont(font)
        self.label_2.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_2.setObjectName("label_2")
        self.verticalLayout.addWidget(self.label_2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 944, 30))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.pushButton_2, QtCore.SIGNAL("clicked()"),
                               MainWindow.TCP_connect)
        QtCore.QObject.connect(self.pushButton_6, QtCore.SIGNAL("clicked()"),
                               MainWindow.save_fig3)
        QtCore.QObject.connect(self.pushButton_4, QtCore.SIGNAL("clicked()"),
                               MainWindow.save_fig1)
        QtCore.QObject.connect(self.pushButton_5, QtCore.SIGNAL("clicked()"),
                               MainWindow.save_fig2)
        QtCore.QObject.connect(self.pushButton_7, QtCore.SIGNAL("clicked()"),
                               MainWindow.save_fig4)
        QtCore.QObject.connect(self.pushButton_3, QtCore.SIGNAL("clicked()"),
                               MainWindow.save_data)
        QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL("clicked()"),
                               MainWindow.TCP_disconnect)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Beispiel #23
0
  def iniciar_ui(self):
    vbox = QtGui.QVBoxLayout()
    qgridLayout = QtGui.QGridLayout()
    vbox.addLayout(qgridLayout)

    boton_buscar = QtGui.QPushButton("Buscar")
    boton_buscar.clicked.connect(self.buscar)
    vbox.addWidget(boton_buscar)

    self.table = WidgetTableCapturasIndividuosJoin(self)

    vbox.addWidget(self.table)

    db_man = ManagerBase()

    self.id_individuo = QtGui.QLineEdit()
    self.id_individuo.setValidator(QtGui.QIntValidator())
    self.id_captura = QtGui.QLineEdit()
    self.id_captura.setValidator(QtGui.QIntValidator())
    self.sexo = WidgetComboBoxList(sexo, self.parent)
    self.zona = WidgetComboBoxType(Zona, self.parent)
    self.fotografo = WidgetComboBoxType(Fotografo, self.parent)
    self.cant_sapitos_min = QtGui.QLineEdit()
    self.cant_sapitos_min.setValidator(QtGui.QIntValidator())
    self.cant_sapitos_max = QtGui.QLineEdit()
    self.cant_sapitos_max.setValidator(QtGui.QIntValidator())
    self.observaciones = QtGui.QLineEdit()
    self.observaciones_individuo = QtGui.QLineEdit()
    self.archivo = QtGui.QLineEdit()

    self.date_time_inic = QtGui.QDateTimeEdit()
    self.date_time_inic.setCalendarPopup(True)
    self.date_time_inic.setCalendarWidget(QtGui.QCalendarWidget())

    self.date_time_fin = QtGui.QDateTimeEdit()
    self.date_time_fin.setCalendarPopup(True)
    self.date_time_fin.setCalendarWidget(QtGui.QCalendarWidget())


    qgridLayout.addWidget(QtGui.QLabel("id individuo: "), 0, 0)
    qgridLayout.addWidget(self.id_individuo, 0, 1)
    qgridLayout.addWidget(QtGui.QLabel("id captura: "), 0, 2)
    qgridLayout.addWidget(self.id_captura, 0, 3)
    qgridLayout.addWidget(QtGui.QLabel("fecha inicio: "), 0, 4)
    qgridLayout.addWidget(self.date_time_inic, 0, 5)
    qgridLayout.addWidget(QtGui.QLabel("fecha fin: "), 0, 6)
    qgridLayout.addWidget(self.date_time_fin, 0, 7)
    qgridLayout.addWidget(QtGui.QLabel("Zona: "), 1, 0)
    qgridLayout.addWidget(self.zona, 1, 1)
    qgridLayout.addWidget(QtGui.QLabel("Fotografo: "), 1, 2)
    qgridLayout.addWidget(self.fotografo, 1, 3)
    qgridLayout.addWidget(QtGui.QLabel("Sapitos acomp min: "), 1, 4)
    qgridLayout.addWidget(self.cant_sapitos_min, 1, 5)
    qgridLayout.addWidget(QtGui.QLabel("Sapitos acomp max: "), 1, 6)
    qgridLayout.addWidget(self.cant_sapitos_max, 1, 7)
    qgridLayout.addWidget(QtGui.QLabel("Observaciones: "), 2, 0)
    qgridLayout.addWidget(self.observaciones, 2, 1)
    qgridLayout.addWidget(QtGui.QLabel("Observaciones Individuo: "), 2, 2)
    qgridLayout.addWidget(self.observaciones_individuo, 2, 3)
    qgridLayout.addWidget(QtGui.QLabel("Archivo: "), 2, 4)
    qgridLayout.addWidget(self.archivo, 2, 5)
    qgridLayout.addWidget(QtGui.QLabel("Sexo: "), 2, 6)
    qgridLayout.addWidget(self.sexo, 2, 7)


    self.setLayout(vbox)

    self.show()
Beispiel #24
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(907, 575)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QtGui.QWidget(Form)
        self.widget.setObjectName("widget")
        self.gridLayout_2 = QtGui.QGridLayout(self.widget)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_5 = QtGui.QLabel(self.widget)
        font = QtGui.QFont()
        font.setFamily("AlArabiya")
        font.setPointSize(20)
        self.label_5.setFont(font)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 8, 1, 1, 1)
        self.line = QtGui.QFrame(self.widget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout_2.addWidget(self.line, 7, 0, 1, 2)
        self.baid_lbl = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.baid_lbl.sizePolicy().hasHeightForWidth())
        self.baid_lbl.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("AlArabiya")
        font.setPointSize(20)
        self.baid_lbl.setFont(font)
        self.baid_lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.baid_lbl.setObjectName("baid_lbl")
        self.gridLayout_2.addWidget(self.baid_lbl, 5, 0, 1, 1)
        self.tottal_lbl = QtGui.QLabel(self.widget)
        font = QtGui.QFont()
        font.setFamily("AlArabiya")
        font.setPointSize(20)
        self.tottal_lbl.setFont(font)
        self.tottal_lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.tottal_lbl.setObjectName("tottal_lbl")
        self.gridLayout_2.addWidget(self.tottal_lbl, 8, 0, 1, 1)
        self.line_2 = QtGui.QFrame(self.widget)
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.gridLayout_2.addWidget(self.line_2, 2, 0, 1, 2)
        self.widget_51 = QtGui.QWidget(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget_51.sizePolicy().hasHeightForWidth())
        self.widget_51.setSizePolicy(sizePolicy)
        self.widget_51.setObjectName("widget_51")
        self.gridLayout_23 = QtGui.QGridLayout(self.widget_51)
        self.gridLayout_23.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_23.setObjectName("gridLayout_23")
        self.st_dt = QtGui.QDateTimeEdit(self.widget_51)
        self.st_dt.setCalendarPopup(True)
        self.st_dt.setObjectName("st_dt")
        self.gridLayout_23.addWidget(self.st_dt, 0, 3, 1, 1)
        self.label_93 = QtGui.QLabel(self.widget_51)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_93.sizePolicy().hasHeightForWidth())
        self.label_93.setSizePolicy(sizePolicy)
        self.label_93.setAlignment(QtCore.Qt.AlignCenter)
        self.label_93.setObjectName("label_93")
        self.gridLayout_23.addWidget(self.label_93, 0, 2, 1, 1)
        self.label_92 = QtGui.QLabel(self.widget_51)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_92.sizePolicy().hasHeightForWidth())
        self.label_92.setSizePolicy(sizePolicy)
        self.label_92.setAlignment(QtCore.Qt.AlignCenter)
        self.label_92.setObjectName("label_92")
        self.gridLayout_23.addWidget(self.label_92, 0, 4, 1, 1)
        self.end_dt = QtGui.QDateTimeEdit(self.widget_51)
        self.end_dt.setCalendarPopup(True)
        self.end_dt.setObjectName("end_dt")
        self.gridLayout_23.addWidget(self.end_dt, 0, 1, 1, 1)
        self.widget_55 = QtGui.QWidget(self.widget_51)
        self.widget_55.setObjectName("widget_55")
        self.gridLayout_23.addWidget(self.widget_55, 0, 5, 1, 1)
        self.widget_54 = QtGui.QWidget(self.widget_51)
        self.widget_54.setObjectName("widget_54")
        self.gridLayout_23.addWidget(self.widget_54, 0, 0, 1, 1)
        self.widget_2 = QtGui.QWidget(self.widget_51)
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout = QtGui.QHBoxLayout(self.widget_2)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.print_btn = QtGui.QPushButton(self.widget_2)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/n/img/Printer Door Open Filled-100.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.print_btn.setIcon(icon)
        self.print_btn.setIconSize(QtCore.QSize(50, 50))
        self.print_btn.setFlat(True)
        self.print_btn.setObjectName("print_btn")
        self.horizontalLayout.addWidget(self.print_btn)
        self.all_btn = QtGui.QPushButton(self.widget_2)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/n/img/icons8-Select All-100.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.all_btn.setIcon(icon1)
        self.all_btn.setIconSize(QtCore.QSize(50, 50))
        self.all_btn.setFlat(True)
        self.all_btn.setObjectName("all_btn")
        self.horizontalLayout.addWidget(self.all_btn)
        self.search_btn = QtGui.QPushButton(self.widget_2)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/n/img/Search-100.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.search_btn.setIcon(icon2)
        self.search_btn.setIconSize(QtCore.QSize(50, 50))
        self.search_btn.setFlat(True)
        self.search_btn.setObjectName("search_btn")
        self.horizontalLayout.addWidget(self.search_btn)
        self.gridLayout_23.addWidget(self.widget_2, 1, 1, 1, 4)
        self.gridLayout_2.addWidget(self.widget_51, 1, 0, 1, 2)
        self.rest_lbl = QtGui.QLabel(self.widget)
        font = QtGui.QFont()
        font.setFamily("AlArabiya")
        font.setPointSize(20)
        self.rest_lbl.setFont(font)
        self.rest_lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.rest_lbl.setObjectName("rest_lbl")
        self.gridLayout_2.addWidget(self.rest_lbl, 6, 0, 1, 1)
        self.label_2 = QtGui.QLabel(self.widget)
        font = QtGui.QFont()
        font.setFamily("AlArabiya")
        font.setPointSize(20)
        self.label_2.setFont(font)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 6, 1, 1, 1)
        self.all_lbl = QtGui.QLabel(self.widget)
        font = QtGui.QFont()
        font.setFamily("AlArabiya")
        font.setPointSize(20)
        self.all_lbl.setFont(font)
        self.all_lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.all_lbl.setObjectName("all_lbl")
        self.gridLayout_2.addWidget(self.all_lbl, 4, 0, 1, 1)
        self.label = QtGui.QLabel(self.widget)
        font = QtGui.QFont()
        font.setFamily("AlArabiya")
        font.setPointSize(20)
        self.label.setFont(font)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 4, 1, 1, 1)
        self.label_38 = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_38.sizePolicy().hasHeightForWidth())
        self.label_38.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("AlArabiya")
        font.setPointSize(26)
        font.setWeight(50)
        font.setItalic(False)
        font.setBold(False)
        self.label_38.setFont(font)
        self.label_38.setAlignment(QtCore.Qt.AlignCenter)
        self.label_38.setObjectName("label_38")
        self.gridLayout_2.addWidget(self.label_38, 0, 0, 1, 2)
        self.label_134 = QtGui.QLabel(self.widget)
        font = QtGui.QFont()
        font.setFamily("AlArabiya")
        font.setPointSize(20)
        self.label_134.setFont(font)
        self.label_134.setAlignment(QtCore.Qt.AlignCenter)
        self.label_134.setObjectName("label_134")
        self.gridLayout_2.addWidget(self.label_134, 5, 1, 1, 1)
        self.all_items = QtGui.QTableWidget(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(10)
        sizePolicy.setHeightForWidth(self.all_items.sizePolicy().hasHeightForWidth())
        self.all_items.setSizePolicy(sizePolicy)
        self.all_items.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.all_items.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.all_items.setObjectName("all_items")
        self.all_items.setColumnCount(8)
        self.all_items.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.all_items.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.all_items.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.all_items.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.all_items.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.all_items.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.all_items.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.all_items.setHorizontalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.all_items.setHorizontalHeaderItem(7, item)
        self.gridLayout_2.addWidget(self.all_items, 3, 0, 1, 2)
        self.verticalLayout.addWidget(self.widget)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Beispiel #25
0
    def setupUi(self, tasks):
        tasks.setObjectName("tasks")
        tasks.resize(705, 420)
        self.verticalLayout = QtGui.QVBoxLayout(tasks)
        self.verticalLayout.setContentsMargins(-1, -1, -1, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.splitter = QtGui.QSplitter(tasks)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.gridLayoutWidget = QtGui.QWidget(self.splitter)
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.contextLabel = QtGui.QLabel(self.gridLayoutWidget)
        self.contextLabel.setMinimumSize(QtCore.QSize(50, 0))
        self.contextLabel.setObjectName("contextLabel")
        self.gridLayout_2.addWidget(self.contextLabel, 2, 0, 1, 1)
        self.contextLineEdit = QtGui.QLineEdit(self.gridLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.contextLineEdit.sizePolicy().hasHeightForWidth())
        self.contextLineEdit.setSizePolicy(sizePolicy)
        self.contextLineEdit.setObjectName("contextLineEdit")
        self.gridLayout_2.addWidget(self.contextLineEdit, 2, 1, 1, 1)
        self.processTreeWidget = QtGui.QTreeWidget(self.gridLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.processTreeWidget.sizePolicy().hasHeightForWidth())
        self.processTreeWidget.setSizePolicy(sizePolicy)
        self.processTreeWidget.setMinimumSize(QtCore.QSize(350, 0))
        self.processTreeWidget.setEditTriggers(QtGui.QAbstractItemView.AllEditTriggers)
        self.processTreeWidget.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.processTreeWidget.setAllColumnsShowFocus(True)
        self.processTreeWidget.setColumnCount(1)
        self.processTreeWidget.setObjectName("processTreeWidget")
        self.processTreeWidget.headerItem().setText(0, "Process:")
        self.processTreeWidget.header().setVisible(False)
        self.gridLayout_2.addWidget(self.processTreeWidget, 1, 0, 1, 2)
        self.groupBox_2 = QtGui.QGroupBox(self.splitter)
        self.groupBox_2.setBaseSize(QtCore.QSize(500, 0))
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout.setContentsMargins(4, 6, 4, 4)
        self.gridLayout.setObjectName("gridLayout")
        self.groupBox = QtGui.QGroupBox(self.groupBox_2)
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.editorLayout = QtGui.QHBoxLayout()
        self.editorLayout.setSpacing(0)
        self.editorLayout.setContentsMargins(-1, 0, -1, -1)
        self.editorLayout.setObjectName("editorLayout")
        self.verticalLayout_2.addLayout(self.editorLayout)
        self.descriptionTextEdit = QtGui.QTextEdit(self.groupBox)
        self.descriptionTextEdit.setObjectName("descriptionTextEdit")
        self.verticalLayout_2.addWidget(self.descriptionTextEdit)
        self.gridLayout.addWidget(self.groupBox, 9, 0, 1, 3)
        self.label_3 = QtGui.QLabel(self.groupBox_2)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.label = QtGui.QLabel(self.groupBox_2)
        self.label.setMaximumSize(QtCore.QSize(100, 16777215))
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.assignedToComboBox = QtGui.QComboBox(self.groupBox_2)
        self.assignedToComboBox.setEditable(True)
        self.assignedToComboBox.setInsertPolicy(QtGui.QComboBox.NoInsert)
        self.assignedToComboBox.setObjectName("assignedToComboBox")
        self.gridLayout.addWidget(self.assignedToComboBox, 0, 1, 1, 2)
        self.label_5 = QtGui.QLabel(self.groupBox_2)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1)
        self.priorityComboBox = QtGui.QComboBox(self.groupBox_2)
        self.priorityComboBox.setEditable(True)
        self.priorityComboBox.setInsertPolicy(QtGui.QComboBox.NoInsert)
        self.priorityComboBox.setObjectName("priorityComboBox")
        self.gridLayout.addWidget(self.priorityComboBox, 2, 1, 1, 2)
        self.label_2 = QtGui.QLabel(self.groupBox_2)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.statusComboBox = QtGui.QComboBox(self.groupBox_2)
        self.statusComboBox.setEditable(True)
        self.statusComboBox.setInsertPolicy(QtGui.QComboBox.NoInsert)
        self.statusComboBox.setObjectName("statusComboBox")
        self.gridLayout.addWidget(self.statusComboBox, 3, 1, 1, 2)
        self.startedDateTimeEdit = QtGui.QDateTimeEdit(self.groupBox_2)
        self.startedDateTimeEdit.setCalendarPopup(True)
        self.startedDateTimeEdit.setObjectName("startedDateTimeEdit")
        self.gridLayout.addWidget(self.startedDateTimeEdit, 4, 1, 1, 2)
        self.superviserComboBox = QtGui.QComboBox(self.groupBox_2)
        self.superviserComboBox.setEditable(True)
        self.superviserComboBox.setInsertPolicy(QtGui.QComboBox.NoInsert)
        self.superviserComboBox.setObjectName("superviserComboBox")
        self.gridLayout.addWidget(self.superviserComboBox, 1, 1, 1, 2)
        self.endDateTimeEdit = QtGui.QDateTimeEdit(self.groupBox_2)
        self.endDateTimeEdit.setCalendarPopup(True)
        self.endDateTimeEdit.setObjectName("endDateTimeEdit")
        self.gridLayout.addWidget(self.endDateTimeEdit, 5, 1, 1, 2)
        self.label_6 = QtGui.QLabel(self.groupBox_2)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 5, 0, 1, 1)
        self.label_4 = QtGui.QLabel(self.groupBox_2)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
        self.saveChangesButton = QtGui.QPushButton(self.groupBox_2)
        self.saveChangesButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.saveChangesButton.setObjectName("saveChangesButton")
        self.gridLayout.addWidget(self.saveChangesButton, 10, 2, 1, 1)
        self.label_7 = QtGui.QLabel(self.groupBox_2)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 6, 0, 1, 1)
        self.showNotesButton = QtGui.QToolButton(self.groupBox_2)
        self.showNotesButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.showNotesButton.setAutoRaise(True)
        self.showNotesButton.setArrowType(QtCore.Qt.RightArrow)
        self.showNotesButton.setObjectName("showNotesButton")
        self.gridLayout.addWidget(self.showNotesButton, 10, 0, 1, 1)
        self.subsParentStatusLabel = QtGui.QLabel(self.groupBox_2)
        self.subsParentStatusLabel.setObjectName("subsParentStatusLabel")
        self.gridLayout.addWidget(self.subsParentStatusLabel, 6, 1, 1, 1)
        self.subsParentPushButton = QtGui.QPushButton(self.groupBox_2)
        self.subsParentPushButton.setObjectName("subsParentPushButton")
        self.gridLayout.addWidget(self.subsParentPushButton, 6, 2, 1, 1)
        self.subsTaskPushButton = QtGui.QPushButton(self.groupBox_2)
        self.subsTaskPushButton.setObjectName("subsTaskPushButton")
        self.gridLayout.addWidget(self.subsTaskPushButton, 7, 2, 1, 1)
        self.subsTaskStatusLabel = QtGui.QLabel(self.groupBox_2)
        self.subsTaskStatusLabel.setObjectName("subsTaskStatusLabel")
        self.gridLayout.addWidget(self.subsTaskStatusLabel, 7, 1, 1, 1)
        self.subsUsersPushButton = QtGui.QPushButton(self.groupBox_2)
        self.subsUsersPushButton.setObjectName("subsUsersPushButton")
        self.gridLayout.addWidget(self.subsUsersPushButton, 8, 2, 1, 1)
        self.verticalLayout.addWidget(self.splitter)
        self.skeyLineEdit = QtGui.QLineEdit(tasks)
        self.skeyLineEdit.setObjectName("skeyLineEdit")
        self.verticalLayout.addWidget(self.skeyLineEdit)

        self.retranslateUi(tasks)
        QtCore.QMetaObject.connectSlotsByName(tasks)
        tasks.setTabOrder(self.assignedToComboBox, self.superviserComboBox)
        tasks.setTabOrder(self.superviserComboBox, self.priorityComboBox)
        tasks.setTabOrder(self.priorityComboBox, self.statusComboBox)
        tasks.setTabOrder(self.statusComboBox, self.startedDateTimeEdit)
        tasks.setTabOrder(self.startedDateTimeEdit, self.endDateTimeEdit)
        tasks.setTabOrder(self.endDateTimeEdit, self.descriptionTextEdit)
        tasks.setTabOrder(self.descriptionTextEdit, self.saveChangesButton)
        tasks.setTabOrder(self.saveChangesButton, self.subsParentPushButton)
        tasks.setTabOrder(self.subsParentPushButton, self.showNotesButton)
        tasks.setTabOrder(self.showNotesButton, self.skeyLineEdit)
Beispiel #26
0
    def setupUi(self, MainDialog):
        MainDialog.setObjectName("MainDialog")
        MainDialog.resize(423, 653)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainDialog.sizePolicy().hasHeightForWidth())
        MainDialog.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/images/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainDialog.setWindowIcon(icon)
        self.frame = QtGui.QFrame(MainDialog)
        self.frame.setGeometry(QtCore.QRect(0, 0, 431, 91))
        self.frame.setMinimumSize(QtCore.QSize(421, 0))
        self.frame.setStyleSheet("background-color: rgb(33, 150, 243);")
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.label = QtGui.QLabel(self.frame)
        self.label.setGeometry(QtCore.QRect(20, 20, 43, 58))
        self.label.setText("")
        self.label.setPixmap(QtGui.QPixmap(":/images/lock.png"))
        self.label.setObjectName("label")
        self.fontLabel = QtGui.QLabel(self.frame)
        self.fontLabel.setGeometry(QtCore.QRect(70, 20, 341, 61))
        font = QtGui.QFont()
        font.setFamily("Segoe UI")
        font.setPointSize(48)
        font.setWeight(75)
        font.setBold(True)
        self.fontLabel.setFont(font)
        self.fontLabel.setStyleSheet("#fontLabel {\n"
"    color: white;\n"
"}")
        self.fontLabel.setObjectName("fontLabel")
        self.step1GroupBox = QtGui.QGroupBox(MainDialog)
        self.step1GroupBox.setGeometry(QtCore.QRect(20, 110, 381, 91))
        self.step1GroupBox.setStyleSheet("QGroupBox::title {\n"
"    font-size: 32px;\n"
"}")
        self.step1GroupBox.setFlat(False)
        self.step1GroupBox.setObjectName("step1GroupBox")
        self.locationLineEdit = QtGui.QLineEdit(self.step1GroupBox)
        self.locationLineEdit.setEnabled(True)
        self.locationLineEdit.setGeometry(QtCore.QRect(20, 40, 251, 31))
        self.locationLineEdit.setReadOnly(True)
        self.locationLineEdit.setObjectName("locationLineEdit")
        self.pickFileButton = QtGui.QPushButton(self.step1GroupBox)
        self.pickFileButton.setGeometry(QtCore.QRect(280, 40, 91, 31))
        self.pickFileButton.setObjectName("pickFileButton")
        self.lockButton = QtGui.QPushButton(MainDialog)
        self.lockButton.setEnabled(True)
        self.lockButton.setGeometry(QtCore.QRect(300, 600, 111, 41))
        font = QtGui.QFont()
        font.setFamily("Segoe UI")
        font.setPointSize(12)
        font.setWeight(75)
        font.setBold(True)
        self.lockButton.setFont(font)
        self.lockButton.setStyleSheet("#lockButton {\n"
"    border: 2px solid #1976D2;\n"
"    background-color: #2196f3;\n"
"    min-width: 80px;\n"
"    color: white;\n"
"}\n"
"#lockButton:hover {\n"
"    background-color: #42A5F5;\n"
"    \n"
"}\n"
"\n"
"#lockButton:pressed {\n"
"    background-color: #0D47A1;\n"
"}\n"
"\n"
"#lockButton:flat {\n"
"    border: none; /* no border for a flat push button */\n"
"}\n"
"\n"
"#lockButton:default {\n"
"    border-color: white; /* make the default button prominent */\n"
"}\n"
"\n"
"#lockButton:disabled {\n"
"    background-color: #E3F2FD;\n"
"    border-color: #BBDEFB;\n"
"}")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/images/lock.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.lockButton.setIcon(icon1)
        self.lockButton.setFlat(False)
        self.lockButton.setObjectName("lockButton")
        self.groupBox = QtGui.QGroupBox(MainDialog)
        self.groupBox.setEnabled(True)
        self.groupBox.setGeometry(QtCore.QRect(20, 220, 381, 361))
        font = QtGui.QFont()
        font.setPointSize(-1)
        self.groupBox.setFont(font)
        self.groupBox.setStyleSheet("QGroupBox {\n"
"    font-size: 24px;\n"
"}")
        self.groupBox.setObjectName("groupBox")
        self.stackedWidget = QtGui.QStackedWidget(self.groupBox)
        self.stackedWidget.setGeometry(QtCore.QRect(20, 30, 351, 271))
        self.stackedWidget.setObjectName("stackedWidget")
        self.page = QtGui.QWidget()
        self.page.setObjectName("page")
        self.passwordLineEdit = QtGui.QLineEdit(self.page)
        self.passwordLineEdit.setGeometry(QtCore.QRect(20, 30, 261, 31))
        self.passwordLineEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.passwordLineEdit.setObjectName("passwordLineEdit")
        self.passwordAgainLineEdit = QtGui.QLineEdit(self.page)
        self.passwordAgainLineEdit.setGeometry(QtCore.QRect(20, 100, 261, 31))
        self.passwordAgainLineEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.passwordAgainLineEdit.setObjectName("passwordAgainLineEdit")
        self.label_2 = QtGui.QLabel(self.page)
        self.label_2.setGeometry(QtCore.QRect(20, 10, 111, 16))
        self.label_2.setStyleSheet("font: 75 10pt \"Segoe UI\";")
        self.label_2.setObjectName("label_2")
        self.label_3 = QtGui.QLabel(self.page)
        self.label_3.setGeometry(QtCore.QRect(20, 80, 131, 16))
        self.label_3.setStyleSheet("font: 75 10pt \"Segoe UI\";")
        self.label_3.setObjectName("label_3")
        self.label_4 = QtGui.QLabel(self.page)
        self.label_4.setGeometry(QtCore.QRect(20, 170, 271, 31))
        self.label_4.setStyleSheet("color: red;\n"
"font-size: 14px;")
        self.label_4.setObjectName("label_4")
        self.stackedWidget.addWidget(self.page)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName("page_2")
        self.dateTimeEdit = QtGui.QDateTimeEdit(self.page_2)
        self.dateTimeEdit.setGeometry(QtCore.QRect(10, 70, 271, 31))
        self.dateTimeEdit.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(1752, 9, 15), QtCore.QTime(0, 0, 0)))
        self.dateTimeEdit.setObjectName("dateTimeEdit")
        self.label_5 = QtGui.QLabel(self.page_2)
        self.label_5.setGeometry(QtCore.QRect(10, 20, 321, 41))
        self.label_5.setWordWrap(True)
        self.label_5.setObjectName("label_5")
        self.stackedWidget.addWidget(self.page_2)
        self.frame_2 = QtGui.QFrame(self.groupBox)
        self.frame_2.setGeometry(QtCore.QRect(30, 240, 321, 61))
        self.frame_2.setStyleSheet("background-color: rgba(66, 165, 245, 0.1);")
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.warningLabel = QtGui.QLabel(self.frame_2)
        self.warningLabel.setGeometry(QtCore.QRect(10, 10, 301, 41))
        font = QtGui.QFont()
        font.setPointSize(-1)
        self.warningLabel.setFont(font)
        self.warningLabel.setStyleSheet("#warningLabel {\n"
"    font-size: 16px;\n"
"}")
        self.warningLabel.setWordWrap(True)
        self.warningLabel.setObjectName("warningLabel")
        self.checkBox = QtGui.QCheckBox(self.groupBox)
        self.checkBox.setGeometry(QtCore.QRect(30, 330, 361, 17))
        self.checkBox.setObjectName("checkBox")
        self.label_6 = QtGui.QLabel(MainDialog)
        self.label_6.setGeometry(QtCore.QRect(20, 600, 151, 31))
        self.label_6.setText("")
        self.label_6.setPixmap(QtGui.QPixmap(":/images/iceapps_logo.png"))
        self.label_6.setObjectName("label_6")

        self.retranslateUi(MainDialog)
        self.stackedWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainDialog)
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.setWindowModality(QtCore.Qt.NonModal)
        MainWindow.resize(677, 708)
        MainWindow.setUnifiedTitleAndToolBarOnMac(False)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.scrollArea = QtGui.QScrollArea(self.centralwidget)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 776, 837))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.verticalLayout_13 = QtGui.QVBoxLayout(
            self.scrollAreaWidgetContents)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.tabWidget = QtGui.QTabWidget(self.scrollAreaWidgetContents)
        self.tabWidget.setToolTip("")
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout_4 = QtGui.QGridLayout(self.tab)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.widget = QtGui.QWidget(self.tab)
        self.widget.setObjectName("widget")
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.verticalScrollBar = QtGui.QScrollBar(self.widget)
        self.verticalScrollBar.setOrientation(QtCore.Qt.Vertical)
        self.verticalScrollBar.setObjectName("verticalScrollBar")
        self.verticalLayout_7.addWidget(self.verticalScrollBar)
        self.verticalSlider = QtGui.QSlider(self.widget)
        self.verticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider.setObjectName("verticalSlider")
        self.verticalLayout_7.addWidget(self.verticalSlider)
        self.horizontalLayout_4.addLayout(self.verticalLayout_7)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalScrollBar = QtGui.QScrollBar(self.widget)
        self.horizontalScrollBar.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalScrollBar.setObjectName("horizontalScrollBar")
        self.verticalLayout_6.addWidget(self.horizontalScrollBar)
        self.horizontalSlider = QtGui.QSlider(self.widget)
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName("horizontalSlider")
        self.verticalLayout_6.addWidget(self.horizontalSlider)
        self.horizontalLayout_4.addLayout(self.verticalLayout_6)
        self.gridLayout_4.addWidget(self.widget, 2, 0, 1, 1)
        self.groupBox = QtGui.QGroupBox(self.tab)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.pushButton = QtGui.QPushButton(self.groupBox)
        self.pushButton.setObjectName("pushButton")
        self.gridLayout_3.addWidget(self.pushButton, 0, 0, 1, 1)
        self.pushButton_2 = QtGui.QPushButton(self.groupBox)
        self.pushButton_2.setFlat(True)
        self.pushButton_2.setObjectName("pushButton_2")
        self.gridLayout_3.addWidget(self.pushButton_2, 0, 1, 1, 1)
        self.pushButton_4 = QtGui.QPushButton(self.groupBox)
        self.pushButton_4.setCheckable(True)
        self.pushButton_4.setObjectName("pushButton_4")
        self.gridLayout_3.addWidget(self.pushButton_4, 1, 0, 1, 1)
        self.pushButton_3 = QtGui.QPushButton(self.groupBox)
        self.pushButton_3.setCheckable(True)
        self.pushButton_3.setFlat(True)
        self.pushButton_3.setObjectName("pushButton_3")
        self.gridLayout_3.addWidget(self.pushButton_3, 1, 1, 1, 1)
        self.toolButton = QtGui.QToolButton(self.groupBox)
        self.toolButton.setObjectName("toolButton")
        self.gridLayout_3.addWidget(self.toolButton, 2, 0, 1, 1)
        self.radioButton = QtGui.QRadioButton(self.groupBox)
        self.radioButton.setChecked(True)
        self.radioButton.setObjectName("radioButton")
        self.gridLayout_3.addWidget(self.radioButton, 3, 0, 1, 1)
        self.radioButton_2 = QtGui.QRadioButton(self.groupBox)
        self.radioButton_2.setObjectName("radioButton_2")
        self.gridLayout_3.addWidget(self.radioButton_2, 4, 0, 1, 1)
        self.checkBox = QtGui.QCheckBox(self.groupBox)
        self.checkBox.setChecked(True)
        self.checkBox.setObjectName("checkBox")
        self.gridLayout_3.addWidget(self.checkBox, 5, 0, 1, 1)
        self.checkBox_2 = QtGui.QCheckBox(self.groupBox)
        self.checkBox_2.setObjectName("checkBox_2")
        self.gridLayout_3.addWidget(self.checkBox_2, 6, 0, 1, 1)
        self.commandLinkButton = QtGui.QCommandLinkButton(self.groupBox)
        self.commandLinkButton.setObjectName("commandLinkButton")
        self.gridLayout_3.addWidget(self.commandLinkButton, 7, 0, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout_3)
        self.buttonBox = QtGui.QDialogButtonBox(self.groupBox)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout_2.addWidget(self.buttonBox)
        self.buttonBox_2 = QtGui.QDialogButtonBox(self.groupBox)
        self.buttonBox_2.setStandardButtons(QtGui.QDialogButtonBox.Abort
                                            | QtGui.QDialogButtonBox.Cancel
                                            | QtGui.QDialogButtonBox.Ok)
        self.buttonBox_2.setObjectName("buttonBox_2")
        self.verticalLayout_2.addWidget(self.buttonBox_2)
        self.gridLayout_4.addWidget(self.groupBox, 0, 0, 1, 1)
        self.frame = QtGui.QFrame(self.tab)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.textEdit = QtGui.QTextEdit(self.frame)
        self.textEdit.setObjectName("textEdit")
        self.verticalLayout_5.addWidget(self.textEdit)
        self.textEdit_2 = QtGui.QTextEdit(self.frame)
        self.textEdit_2.setReadOnly(True)
        self.textEdit_2.setObjectName("textEdit_2")
        self.verticalLayout_5.addWidget(self.textEdit_2)
        self.plainTextEdit_2 = QtGui.QPlainTextEdit(self.frame)
        self.plainTextEdit_2.setObjectName("plainTextEdit_2")
        self.verticalLayout_5.addWidget(self.plainTextEdit_2)
        self.plainTextEdit = QtGui.QPlainTextEdit(self.frame)
        self.plainTextEdit.setReadOnly(True)
        self.plainTextEdit.setObjectName("plainTextEdit")
        self.verticalLayout_5.addWidget(self.plainTextEdit)
        self.gridLayout_4.addWidget(self.frame, 1, 1, 2, 1)
        self.groupBox_3 = QtGui.QGroupBox(self.tab)
        font = QtGui.QFont()
        font.setWeight(50)
        font.setBold(False)
        self.groupBox_3.setFont(font)
        self.groupBox_3.setFlat(False)
        self.groupBox_3.setCheckable(True)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.pushButton_5 = QtGui.QPushButton(self.groupBox_3)
        self.pushButton_5.setEnabled(True)
        self.pushButton_5.setObjectName("pushButton_5")
        self.gridLayout.addWidget(self.pushButton_5, 0, 0, 1, 1)
        self.pushButton_6 = QtGui.QPushButton(self.groupBox_3)
        self.pushButton_6.setEnabled(True)
        self.pushButton_6.setFlat(True)
        self.pushButton_6.setObjectName("pushButton_6")
        self.gridLayout.addWidget(self.pushButton_6, 0, 1, 1, 1)
        self.pushButton_8 = QtGui.QPushButton(self.groupBox_3)
        self.pushButton_8.setEnabled(True)
        self.pushButton_8.setCheckable(True)
        self.pushButton_8.setObjectName("pushButton_8")
        self.gridLayout.addWidget(self.pushButton_8, 1, 0, 1, 1)
        self.pushButton_7 = QtGui.QPushButton(self.groupBox_3)
        self.pushButton_7.setEnabled(True)
        self.pushButton_7.setCheckable(True)
        self.pushButton_7.setFlat(True)
        self.pushButton_7.setObjectName("pushButton_7")
        self.gridLayout.addWidget(self.pushButton_7, 1, 1, 1, 1)
        self.toolButton_2 = QtGui.QToolButton(self.groupBox_3)
        self.toolButton_2.setEnabled(True)
        self.toolButton_2.setObjectName("toolButton_2")
        self.gridLayout.addWidget(self.toolButton_2, 2, 0, 1, 1)
        self.radioButton_3 = QtGui.QRadioButton(self.groupBox_3)
        self.radioButton_3.setEnabled(True)
        self.radioButton_3.setChecked(True)
        self.radioButton_3.setObjectName("radioButton_3")
        self.gridLayout.addWidget(self.radioButton_3, 3, 0, 1, 1)
        self.radioButton_4 = QtGui.QRadioButton(self.groupBox_3)
        self.radioButton_4.setEnabled(True)
        self.radioButton_4.setObjectName("radioButton_4")
        self.gridLayout.addWidget(self.radioButton_4, 4, 0, 1, 1)
        self.checkBox_3 = QtGui.QCheckBox(self.groupBox_3)
        self.checkBox_3.setEnabled(True)
        self.checkBox_3.setChecked(True)
        self.checkBox_3.setObjectName("checkBox_3")
        self.gridLayout.addWidget(self.checkBox_3, 5, 0, 1, 1)
        self.checkBox_4 = QtGui.QCheckBox(self.groupBox_3)
        self.checkBox_4.setEnabled(True)
        self.checkBox_4.setObjectName("checkBox_4")
        self.gridLayout.addWidget(self.checkBox_4, 6, 0, 1, 1)
        self.commandLinkButton_2 = QtGui.QCommandLinkButton(self.groupBox_3)
        self.commandLinkButton_2.setEnabled(True)
        self.commandLinkButton_2.setObjectName("commandLinkButton_2")
        self.gridLayout.addWidget(self.commandLinkButton_2, 7, 0, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout)
        self.buttonBox_3 = QtGui.QDialogButtonBox(self.groupBox_3)
        self.buttonBox_3.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                            | QtGui.QDialogButtonBox.Ok)
        self.buttonBox_3.setObjectName("buttonBox_3")
        self.verticalLayout_3.addWidget(self.buttonBox_3)
        self.buttonBox_4 = QtGui.QDialogButtonBox(self.groupBox_3)
        self.buttonBox_4.setStandardButtons(QtGui.QDialogButtonBox.Abort
                                            | QtGui.QDialogButtonBox.Cancel
                                            | QtGui.QDialogButtonBox.Ok)
        self.buttonBox_4.setObjectName("buttonBox_4")
        self.verticalLayout_3.addWidget(self.buttonBox_4)
        self.gridLayout_4.addWidget(self.groupBox_3, 0, 1, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.tab)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.comboBox = QtGui.QComboBox(self.groupBox_2)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.setEditable(True)
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox2 = QtGui.QComboBox(self.groupBox_2)
        self.comboBox2.setObjectName("comboBox")
        self.comboBox2.setEditable(False)
        self.comboBox2.addItem("")
        self.comboBox2.addItem("")
        self.comboBox2.addItem("")
        self.horizontalLayout.addWidget(self.comboBox)
        self.horizontalLayout.addWidget(self.comboBox2)
        self.spinBox = QtGui.QSpinBox(self.groupBox_2)
        self.spinBox.setFrame(True)
        self.spinBox.setReadOnly(False)
        self.spinBox.setSuffix("")
        self.spinBox.setSingleStep(1)
        self.spinBox.setObjectName("spinBox")
        self.horizontalLayout.addWidget(self.spinBox)
        self.doubleSpinBox = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.doubleSpinBox.setObjectName("doubleSpinBox")
        self.horizontalLayout.addWidget(self.doubleSpinBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout_8 = QtGui.QVBoxLayout()
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.fontComboBox = QtGui.QFontComboBox(self.groupBox_2)
        self.fontComboBox.setObjectName("fontComboBox")
        self.verticalLayout_8.addWidget(self.fontComboBox)
        self.lineEdit = QtGui.QLineEdit(self.groupBox_2)
        self.lineEdit.setText("")
        # self.lineEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.lineEdit.setObjectName("lineEdit")
        self.verticalLayout_8.addWidget(self.lineEdit)
        self.lineEdit_2 = QtGui.QLineEdit(self.groupBox_2)
        self.lineEdit_2.setReadOnly(True)
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.verticalLayout_8.addWidget(self.lineEdit_2)
        self.horizontalLayout_3.addLayout(self.verticalLayout_8)
        self.dial = QtGui.QDial(self.groupBox_2)
        self.dial.setObjectName("dial")
        self.horizontalLayout_3.addWidget(self.dial)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.timeEdit = QtGui.QTimeEdit(self.groupBox_2)
        self.timeEdit.setObjectName("timeEdit")
        self.horizontalLayout_2.addWidget(self.timeEdit)
        self.dateEdit = QtGui.QDateEdit(self.groupBox_2)
        self.dateEdit.setObjectName("dateEdit")
        self.horizontalLayout_2.addWidget(self.dateEdit)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.dateTimeEdit = QtGui.QDateTimeEdit(self.groupBox_2)
        self.dateTimeEdit.setObjectName("dateTimeEdit")
        self.verticalLayout_4.addWidget(self.dateTimeEdit)
        self.gridLayout_4.addWidget(self.groupBox_2, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_10 = QtGui.QVBoxLayout(self.tab_2)
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.toolBox = QtGui.QToolBox(self.tab_2)
        self.toolBox.setObjectName("toolBox")
        self.page_3 = QtGui.QWidget()
        self.page_3.setGeometry(QtCore.QRect(0, 0, 102, 102))
        self.page_3.setObjectName("page_3")
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.page_3)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.listWidget = QtGui.QListWidget(self.page_3)
        self.listWidget.setObjectName("listWidget")
        QtGui.QListWidgetItem(self.listWidget)
        QtGui.QListWidgetItem(self.listWidget)
        QtGui.QListWidgetItem(self.listWidget)
        QtGui.QListWidgetItem(self.listWidget)
        self.horizontalLayout_5.addWidget(self.listWidget)
        self.toolBox.addItem(self.page_3, "")
        self.page_4 = QtGui.QWidget()
        self.page_4.setGeometry(QtCore.QRect(0, 0, 102, 102))
        self.page_4.setObjectName("page_4")
        self.verticalLayout_9 = QtGui.QVBoxLayout(self.page_4)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.treeWidget = QtGui.QTreeWidget(self.page_4)
        self.treeWidget.setObjectName("treeWidget")
        item_0 = QtGui.QTreeWidgetItem(self.treeWidget)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_0 = QtGui.QTreeWidgetItem(self.treeWidget)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_2 = QtGui.QTreeWidgetItem(item_1)
        self.verticalLayout_9.addWidget(self.treeWidget)
        self.toolBox.addItem(self.page_4, "")
        self.page_5 = QtGui.QWidget()
        self.page_5.setGeometry(QtCore.QRect(0, 0, 706, 656))
        self.page_5.setObjectName("page_5")
        self.verticalLayout_11 = QtGui.QVBoxLayout(self.page_5)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.tableWidget = QtGui.QTableWidget(self.page_5)
        self.tableWidget.setAlternatingRowColors(True)
        self.tableWidget.setObjectName("tableWidget")
        self.tableWidget.setColumnCount(3)
        self.tableWidget.setRowCount(12)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(7, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(8, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(9, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(10, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(11, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(0, 0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(0, 1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(0, 2, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(1, 0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(1, 1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(1, 2, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(2, 0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(2, 1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(2, 2, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(3, 0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(3, 1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(3, 2, item)
        self.tableWidget.horizontalHeader().setStretchLastSection(True)
        self.tableWidget.verticalHeader().setSortIndicatorShown(False)
        self.tableWidget.verticalHeader().setStretchLastSection(False)
        self.verticalLayout_11.addWidget(self.tableWidget)
        self.toolBox.addItem(self.page_5, "")
        self.verticalLayout_10.addWidget(self.toolBox)
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.verticalLayout_12 = QtGui.QVBoxLayout(self.tab_3)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.groupBox_4 = QtGui.QGroupBox(self.tab_3)
        self.groupBox_4.setCheckable(True)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_4)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.listWidget_2 = QtGui.QListWidget(self.groupBox_4)
        self.listWidget_2.setObjectName("listWidget_2")
        QtGui.QListWidgetItem(self.listWidget_2)
        QtGui.QListWidgetItem(self.listWidget_2)
        QtGui.QListWidgetItem(self.listWidget_2)
        self.gridLayout_2.addWidget(self.listWidget_2, 0, 0, 1, 1)
        self.listWidget_3 = QtGui.QListWidget(self.groupBox_4)
        self.listWidget_3.setObjectName("listWidget_3")
        QtGui.QListWidgetItem(self.listWidget_3)
        QtGui.QListWidgetItem(self.listWidget_3)
        QtGui.QListWidgetItem(self.listWidget_3)
        self.gridLayout_2.addWidget(self.listWidget_3, 0, 1, 1, 1)
        self.verticalLayout_12.addWidget(self.groupBox_4)
        self.tabWidget.addTab(self.tab_3, "")
        self.verticalLayout_13.addWidget(self.tabWidget)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout.addWidget(self.scrollArea)
        self.refreshButton1 = QtGui.QPushButton(self.centralwidget)
        self.refreshButton1.setObjectName("refreshButton1")
        self.verticalLayout.addWidget(self.refreshButton1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar()
        self.menubar.setGeometry(QtCore.QRect(0, 0, 677, 22))
        self.menubar.setObjectName("menubar")
        self.menuHelp = QtGui.QMenu(self.menubar)
        self.menuHelp.setObjectName("menuHelp")
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuEdit = QtGui.QMenu(self.menubar)
        self.menuEdit.setObjectName("menuEdit")
        self.menuSub_Menu = QtGui.QMenu(self.menuEdit)
        self.menuSub_Menu.setObjectName("menuSub_Menu")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionHelp = QtGui.QAction(MainWindow)
        self.actionHelp.setObjectName("actionHelp")
        self.actionOpen = QtGui.QAction(MainWindow)
        self.actionOpen.setObjectName("actionOpen")
        self.actionSave = QtGui.QAction(MainWindow)
        self.actionSave.setObjectName("actionSave")
        self.actionCopy = QtGui.QAction(MainWindow)
        self.actionCopy.setObjectName("actionCopy")
        self.actionPaste = QtGui.QAction(MainWindow)
        self.actionPaste.setObjectName("actionPaste")
        self.actionFoo = QtGui.QAction(MainWindow)
        self.actionFoo.setObjectName("actionFoo")
        self.actionBar = QtGui.QAction(MainWindow)
        self.actionBar.setObjectName("actionBar")
        self.menuHelp.addAction(self.actionHelp)
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addAction(self.actionSave)
        self.menuSub_Menu.addAction(self.actionFoo)
        self.menuSub_Menu.addAction(self.actionBar)
        self.menuEdit.addAction(self.actionCopy)
        self.menuEdit.addAction(self.actionPaste)
        self.menuEdit.addSeparator()
        self.menuEdit.addAction(self.menuSub_Menu.menuAction())
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuEdit.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(2)
        self.toolBox.setCurrentIndex(2)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Beispiel #28
0
    def __init__(self, parent=None):
        super(PhoneLogDlg, self).__init__(parent)

        callerLabel = QtGui.QLabel("&Caller:")
        self.callerEdit = QtGui.QLineEdit()
        callerLabel.setBuddy(self.callerEdit)
        today = QtCore.QDate.currentDate()
        startLabel = QtGui.QLabel("&Start:")
        self.startDateTime = QtGui.QDateTimeEdit()
        startLabel.setBuddy(self.startDateTime)
        self.startDateTime.setDateRange(today, today)
        self.startDateTime.setDisplayFormat(DATETIME_FORMAT)
        endLabel = QtGui.QLabel("&End:")
        self.endDateTime = QtGui.QDateTimeEdit()
        endLabel.setBuddy(self.endDateTime)
        self.endDateTime.setDateRange(today, today)
        self.endDateTime.setDisplayFormat(DATETIME_FORMAT)
        topicLabel = QtGui.QLabel("&Topic:")
        topicEdit = QtGui.QLineEdit()
        topicLabel.setBuddy(topicEdit)
        firstButton = QtGui.QPushButton()
        firstButton.setIcon(QtGui.QIcon(":/first.png"))
        prevButton = QtGui.QPushButton()
        prevButton.setIcon(QtGui.QIcon(":/prev.png"))
        nextButton = QtGui.QPushButton()
        nextButton.setIcon(QtGui.QIcon(":/next.png"))
        lastButton = QtGui.QPushButton()
        lastButton.setIcon(QtGui.QIcon(":/last.png"))
        addButton = QtGui.QPushButton("&Add")
        addButton.setIcon(QtGui.QIcon(":/add.png"))
        deleteButton = QtGui.QPushButton("&Delete")
        deleteButton.setIcon(QtGui.QIcon(":/delete.png"))
        quitButton = QtGui.QPushButton("&Quit")
        quitButton.setIcon(QtGui.QIcon(":/quit.png"))

        addButton.setFocusPolicy(QtCore.Qt.NoFocus)
        deleteButton.setFocusPolicy(QtCore.Qt.NoFocus)

        fieldLayout = QtGui.QGridLayout()
        fieldLayout.addWidget(callerLabel, 0, 0)
        fieldLayout.addWidget(self.callerEdit, 0, 1, 1, 3)
        fieldLayout.addWidget(startLabel, 1, 0)
        fieldLayout.addWidget(self.startDateTime, 1, 1)
        fieldLayout.addWidget(endLabel, 1, 2)
        fieldLayout.addWidget(self.endDateTime, 1, 3)
        fieldLayout.addWidget(topicLabel, 2, 0)
        fieldLayout.addWidget(topicEdit, 2, 1, 1, 3)
        navigationLayout = QtGui.QHBoxLayout()
        navigationLayout.addWidget(firstButton)
        navigationLayout.addWidget(prevButton)
        navigationLayout.addWidget(nextButton)
        navigationLayout.addWidget(lastButton)
        fieldLayout.addLayout(navigationLayout, 3, 0, 1, 2)
        buttonLayout = QtGui.QVBoxLayout()
        buttonLayout.addWidget(addButton)
        buttonLayout.addWidget(deleteButton)
        buttonLayout.addStretch()
        buttonLayout.addWidget(quitButton)
        layout = QtGui.QHBoxLayout()
        layout.addLayout(fieldLayout)
        layout.addLayout(buttonLayout)
        self.setLayout(layout)

        self.model = QtSql.QSqlTableModel(self)
        self.model.setTable("calls")
        self.model.setSort(STARTTIME, QtCore.Qt.AscendingOrder)
        self.model.select()

        #maps from widget to model (neet to set model)
        self.mapper = QtGui.QDataWidgetMapper(self)
        self.mapper.setSubmitPolicy(QtGui.QDataWidgetMapper.ManualSubmit)
        self.mapper.setModel(self.model)
        self.mapper.addMapping(self.callerEdit, CALLER)
        self.mapper.addMapping(self.startDateTime, STARTTIME)
        self.mapper.addMapping(self.endDateTime, ENDTIME)
        self.mapper.addMapping(topicEdit, TOPIC)
        self.mapper.toFirst()

        firstButton.clicked.connect(
                lambda: self.saveRecord(PhoneLogDlg.FIRST))
        prevButton.clicked.connect(
                lambda: self.saveRecord(PhoneLogDlg.PREV))
        nextButton.clicked.connect(
                lambda: self.saveRecord(PhoneLogDlg.NEXT))
        lastButton.clicked.connect(
                lambda: self.saveRecord(PhoneLogDlg.LAST))
        addButton.clicked.connect(self.addRecord)
        deleteButton.clicked.connect(self.deleteRecord)
        quitButton.clicked.connect(self.accept)

        self.setWindowTitle("Phone Log")
    def setupUi(self, DockWidget):
        DockWidget.setObjectName("DockWidget")
        DockWidget.resize(703, 521)
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.gridLayout = QtGui.QGridLayout(self.dockWidgetContents)
        self.gridLayout.setObjectName("gridLayout")
        self.lineEdit = QtGui.QLineEdit(self.dockWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit.sizePolicy().hasHeightForWidth())
        self.lineEdit.setSizePolicy(sizePolicy)
        self.lineEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.lineEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lineEdit.setObjectName("lineEdit")
        self.gridLayout.addWidget(self.lineEdit, 2, 1, 1, 1)
        self.lineEditDis = QtGui.QLineEdit(self.dockWidgetContents)
        self.lineEditDis.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEditDis.sizePolicy().hasHeightForWidth())
        self.lineEditDis.setSizePolicy(sizePolicy)
        self.lineEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.lineEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lineEditDis.setObjectName("lineEditDis")
        self.gridLayout.addWidget(self.lineEditDis, 2, 2, 1, 1)
        self.label_14 = QtGui.QLabel(self.dockWidgetContents)
        self.label_14.setMinimumSize(QtCore.QSize(0, 0))
        self.label_14.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_14.setFont(font)
        self.label_14.setObjectName("label_14")
        self.gridLayout.addWidget(self.label_14, 3, 0, 1, 1)
        self.spinBox = QtGui.QSpinBox(self.dockWidgetContents)
        self.spinBox.setMinimumSize(QtCore.QSize(0, 0))
        self.spinBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.spinBox.setObjectName("spinBox")
        self.gridLayout.addWidget(self.spinBox, 5, 1, 1, 1)
        self.textEdit = QtGui.QTextEdit(self.dockWidgetContents)
        self.textEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.textEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.textEdit.setObjectName("textEdit")
        self.gridLayout.addWidget(self.textEdit, 3, 1, 1, 1)
        self.textEditDis = QtGui.QTextEdit(self.dockWidgetContents)
        self.textEditDis.setEnabled(False)
        self.textEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.textEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.textEditDis.setObjectName("textEditDis")
        self.gridLayout.addWidget(self.textEditDis, 3, 2, 1, 1)
        self.label_15 = QtGui.QLabel(self.dockWidgetContents)
        self.label_15.setMinimumSize(QtCore.QSize(0, 0))
        self.label_15.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_15.setFont(font)
        self.label_15.setObjectName("label_15")
        self.gridLayout.addWidget(self.label_15, 4, 0, 1, 1)
        self.plainTextEdit = QtGui.QPlainTextEdit(self.dockWidgetContents)
        self.plainTextEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.plainTextEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.plainTextEdit.setObjectName("plainTextEdit")
        self.gridLayout.addWidget(self.plainTextEdit, 4, 1, 1, 1)
        self.plainTextEditDis = QtGui.QPlainTextEdit(self.dockWidgetContents)
        self.plainTextEditDis.setEnabled(False)
        self.plainTextEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.plainTextEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.plainTextEditDis.setObjectName("plainTextEditDis")
        self.gridLayout.addWidget(self.plainTextEditDis, 4, 2, 1, 1)
        self.label_16 = QtGui.QLabel(self.dockWidgetContents)
        self.label_16.setMinimumSize(QtCore.QSize(0, 0))
        self.label_16.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_16.setFont(font)
        self.label_16.setObjectName("label_16")
        self.gridLayout.addWidget(self.label_16, 5, 0, 1, 1)
        self.spinBoxDis = QtGui.QSpinBox(self.dockWidgetContents)
        self.spinBoxDis.setEnabled(False)
        self.spinBoxDis.setMinimumSize(QtCore.QSize(0, 0))
        self.spinBoxDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.spinBoxDis.setObjectName("spinBoxDis")
        self.gridLayout.addWidget(self.spinBoxDis, 5, 2, 1, 1)
        self.label_17 = QtGui.QLabel(self.dockWidgetContents)
        self.label_17.setMinimumSize(QtCore.QSize(0, 0))
        self.label_17.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_17.setFont(font)
        self.label_17.setObjectName("label_17")
        self.gridLayout.addWidget(self.label_17, 6, 0, 1, 1)
        self.doubleSpinBox = QtGui.QDoubleSpinBox(self.dockWidgetContents)
        self.doubleSpinBox.setMinimumSize(QtCore.QSize(0, 0))
        self.doubleSpinBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.doubleSpinBox.setObjectName("doubleSpinBox")
        self.gridLayout.addWidget(self.doubleSpinBox, 6, 1, 1, 1)
        self.doubleSpinBoxDis = QtGui.QDoubleSpinBox(self.dockWidgetContents)
        self.doubleSpinBoxDis.setEnabled(False)
        self.doubleSpinBoxDis.setMinimumSize(QtCore.QSize(0, 0))
        self.doubleSpinBoxDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.doubleSpinBoxDis.setObjectName("doubleSpinBoxDis")
        self.gridLayout.addWidget(self.doubleSpinBoxDis, 6, 2, 1, 1)
        self.label_18 = QtGui.QLabel(self.dockWidgetContents)
        self.label_18.setMinimumSize(QtCore.QSize(0, 0))
        self.label_18.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_18.setFont(font)
        self.label_18.setObjectName("label_18")
        self.gridLayout.addWidget(self.label_18, 7, 0, 1, 1)
        self.timeEdit = QtGui.QTimeEdit(self.dockWidgetContents)
        self.timeEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.timeEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.timeEdit.setObjectName("timeEdit")
        self.gridLayout.addWidget(self.timeEdit, 7, 1, 1, 1)
        self.timeEditDis = QtGui.QTimeEdit(self.dockWidgetContents)
        self.timeEditDis.setEnabled(False)
        self.timeEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.timeEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.timeEditDis.setObjectName("timeEditDis")
        self.gridLayout.addWidget(self.timeEditDis, 7, 2, 1, 1)
        self.label_19 = QtGui.QLabel(self.dockWidgetContents)
        self.label_19.setMinimumSize(QtCore.QSize(0, 0))
        self.label_19.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_19.setFont(font)
        self.label_19.setObjectName("label_19")
        self.gridLayout.addWidget(self.label_19, 8, 0, 1, 1)
        self.dateEdit = QtGui.QDateEdit(self.dockWidgetContents)
        self.dateEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.dateEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dateEdit.setObjectName("dateEdit")
        self.gridLayout.addWidget(self.dateEdit, 8, 1, 1, 1)
        self.dateEditDis = QtGui.QDateEdit(self.dockWidgetContents)
        self.dateEditDis.setEnabled(False)
        self.dateEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.dateEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dateEditDis.setObjectName("dateEditDis")
        self.gridLayout.addWidget(self.dateEditDis, 8, 2, 1, 1)
        self.label_20 = QtGui.QLabel(self.dockWidgetContents)
        self.label_20.setMinimumSize(QtCore.QSize(0, 0))
        self.label_20.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_20.setFont(font)
        self.label_20.setObjectName("label_20")
        self.gridLayout.addWidget(self.label_20, 9, 0, 1, 1)
        self.dateTimeEdit = QtGui.QDateTimeEdit(self.dockWidgetContents)
        self.dateTimeEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.dateTimeEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dateTimeEdit.setObjectName("dateTimeEdit")
        self.gridLayout.addWidget(self.dateTimeEdit, 9, 1, 1, 1)
        self.dateTimeEditDis = QtGui.QDateTimeEdit(self.dockWidgetContents)
        self.dateTimeEditDis.setEnabled(False)
        self.dateTimeEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.dateTimeEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dateTimeEditDis.setObjectName("dateTimeEditDis")
        self.gridLayout.addWidget(self.dateTimeEditDis, 9, 2, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 10, 0, 1, 1)
        self.label_51 = QtGui.QLabel(self.dockWidgetContents)
        self.label_51.setAlignment(QtCore.Qt.AlignCenter)
        self.label_51.setObjectName("label_51")
        self.gridLayout.addWidget(self.label_51, 11, 0, 1, 3)
        self.fontComboBox = QtGui.QFontComboBox(self.dockWidgetContents)
        self.fontComboBox.setMinimumSize(QtCore.QSize(0, 0))
        self.fontComboBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.fontComboBox.setObjectName("fontComboBox")
        self.gridLayout.addWidget(self.fontComboBox, 1, 1, 1, 1)
        self.label_12 = QtGui.QLabel(self.dockWidgetContents)
        self.label_12.setMinimumSize(QtCore.QSize(0, 0))
        self.label_12.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_12.setFont(font)
        self.label_12.setObjectName("label_12")
        self.gridLayout.addWidget(self.label_12, 1, 0, 1, 1)
        self.fontComboBoxDis = QtGui.QFontComboBox(self.dockWidgetContents)
        self.fontComboBoxDis.setEnabled(False)
        self.fontComboBoxDis.setMinimumSize(QtCore.QSize(0, 0))
        self.fontComboBoxDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.fontComboBoxDis.setObjectName("fontComboBoxDis")
        self.gridLayout.addWidget(self.fontComboBoxDis, 1, 2, 1, 1)
        self.label_13 = QtGui.QLabel(self.dockWidgetContents)
        self.label_13.setMinimumSize(QtCore.QSize(0, 0))
        self.label_13.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_13.setFont(font)
        self.label_13.setObjectName("label_13")
        self.gridLayout.addWidget(self.label_13, 2, 0, 1, 1)
        self.label = QtGui.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 2, 1, 1)
        DockWidget.setWidget(self.dockWidgetContents)

        self.retranslateUi(DockWidget)
        QtCore.QObject.connect(self.fontComboBox,
                               QtCore.SIGNAL("editTextChanged(QString)"),
                               self.fontComboBoxDis.setEditText)
        QtCore.QObject.connect(self.lineEdit,
                               QtCore.SIGNAL("textEdited(QString)"),
                               self.lineEditDis.setText)
        QtCore.QObject.connect(self.spinBox,
                               QtCore.SIGNAL("valueChanged(int)"),
                               self.spinBoxDis.setValue)
        QtCore.QObject.connect(self.doubleSpinBox,
                               QtCore.SIGNAL("valueChanged(double)"),
                               self.doubleSpinBoxDis.setValue)
        QtCore.QObject.connect(self.timeEdit,
                               QtCore.SIGNAL("timeChanged(QTime)"),
                               self.timeEditDis.setTime)
        QtCore.QObject.connect(self.dateEdit,
                               QtCore.SIGNAL("dateTimeChanged(QDateTime)"),
                               self.dateEditDis.setDateTime)
        QtCore.QObject.connect(self.dateTimeEdit,
                               QtCore.SIGNAL("dateTimeChanged(QDateTime)"),
                               self.dateTimeEditDis.setDateTime)
        QtCore.QMetaObject.connectSlotsByName(DockWidget)
Beispiel #30
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(997, 512)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QtGui.QWidget(Form)
        self.widget.setObjectName("widget")
        self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.widget_3 = QtGui.QWidget(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(4)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_3.sizePolicy().hasHeightForWidth())
        self.widget_3.setSizePolicy(sizePolicy)
        self.widget_3.setObjectName("widget_3")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget_3)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.widget_6 = QtGui.QWidget(self.widget_3)
        self.widget_6.setObjectName("widget_6")
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.widget_6)
        self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.grid_btn = QtGui.QPushButton(self.widget_6)
        self.grid_btn.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/n/img/line-chart.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.grid_btn.setIcon(icon)
        self.grid_btn.setCheckable(True)
        self.grid_btn.setObjectName("grid_btn")
        self.horizontalLayout_4.addWidget(self.grid_btn)
        self.list_btn = QtGui.QPushButton(self.widget_6)
        self.list_btn.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/n/img/icons8-Select All-100.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.list_btn.setIcon(icon1)
        self.list_btn.setCheckable(True)
        self.list_btn.setChecked(True)
        self.list_btn.setObjectName("list_btn")
        self.horizontalLayout_4.addWidget(self.list_btn)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.verticalLayout_2.addWidget(self.widget_6)
        self.report_w = QtGui.QStackedWidget(self.widget_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(8)
        sizePolicy.setHeightForWidth(
            self.report_w.sizePolicy().hasHeightForWidth())
        self.report_w.setSizePolicy(sizePolicy)
        self.report_w.setStyleSheet("")
        self.report_w.setObjectName("report_w")
        self.rep_w = QtGui.QWidget()
        self.rep_w.setObjectName("rep_w")
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.rep_w)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.info_tbl = QtGui.QTableView(self.rep_w)
        self.info_tbl.setObjectName("info_tbl")
        self.verticalLayout_5.addWidget(self.info_tbl)
        self.report_w.addWidget(self.rep_w)
        self.graph_w = QtGui.QWidget()
        self.graph_w.setObjectName("graph_w")
        self.report_w.addWidget(self.graph_w)
        self.verticalLayout_2.addWidget(self.report_w)
        self.horizontalLayout.addWidget(self.widget_3)
        self.widget_2 = QtGui.QWidget(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_2.sizePolicy().hasHeightForWidth())
        self.widget_2.setSizePolicy(sizePolicy)
        self.widget_2.setObjectName("widget_2")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.widget_2)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.widget_4 = QtGui.QWidget(self.widget_2)
        self.widget_4.setObjectName("widget_4")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget_4)
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.exm_btn = QtGui.QPushButton(self.widget_4)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/n/img/Bullish-100.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.exm_btn.setIcon(icon2)
        self.exm_btn.setIconSize(QtCore.QSize(30, 30))
        self.exm_btn.setObjectName("exm_btn")
        self.horizontalLayout_2.addWidget(self.exm_btn)
        self.gp_btn = QtGui.QPushButton(self.widget_4)
        self.gp_btn.setIcon(icon)
        self.gp_btn.setIconSize(QtCore.QSize(30, 30))
        self.gp_btn.setObjectName("gp_btn")
        self.horizontalLayout_2.addWidget(self.gp_btn)
        self.all_btn = QtGui.QPushButton(self.widget_4)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/n/img/Worldwide Location-100.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.all_btn.setIcon(icon3)
        self.all_btn.setIconSize(QtCore.QSize(30, 30))
        self.all_btn.setObjectName("all_btn")
        self.horizontalLayout_2.addWidget(self.all_btn)
        self.verticalLayout_3.addWidget(self.widget_4)
        self.widget_5 = QtGui.QWidget(self.widget_2)
        self.widget_5.setObjectName("widget_5")
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.widget_5)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.end_dt = QtGui.QDateTimeEdit(self.widget_5)
        self.end_dt.setCalendarPopup(True)
        self.end_dt.setObjectName("end_dt")
        self.horizontalLayout_3.addWidget(self.end_dt)
        self.start_dt = QtGui.QDateTimeEdit(self.widget_5)
        self.start_dt.setCalendarPopup(True)
        self.start_dt.setObjectName("start_dt")
        self.horizontalLayout_3.addWidget(self.start_dt)
        self.verticalLayout_3.addWidget(self.widget_5)
        self.tableView = QtGui.QTableView(self.widget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tableView.sizePolicy().hasHeightForWidth())
        self.tableView.setSizePolicy(sizePolicy)
        self.tableView.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.tableView.setObjectName("tableView")
        self.verticalLayout_3.addWidget(self.tableView)
        self.horizontalLayout.addWidget(self.widget_2)
        self.verticalLayout.addWidget(self.widget)

        self.retranslateUi(Form)
        self.report_w.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Form)