Exemplo n.º 1
0
        self.usernameLabel = QtWidgets.QLabel(self.frame_2)
        self.usernameLabel.setGeometry(QtCore.QRect(40, 201, 191, 20))
        self.usernameLabel.setObjectName("usernameLabel")
        self.passwordLabel = QtWidgets.QLabel(self.frame_2)
        self.passwordLabel.setGeometry(QtCore.QRect(40, 291, 191, 20))
        self.passwordLabel.setObjectName("passwordLabel")
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.registerButton.setText(_translate("MainWindow", "Register"))
        self.loginButton.setText(_translate("MainWindow", "Login"))
        self.usernameLabel.setText(_translate("MainWindow", "Usuario"))
        self.passwordLabel.setText(_translate("MainWindow", "Contraseña"))


import logo

if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = QtWidgets.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())
Exemplo n.º 2
0
    def __init__(self, app):
        super().__init__(app)

        self._widget = QtWidgets.QWidget()

        layout = QtWidgets.QFormLayout()
        self._widget.setLayout(layout)
        layout.addRow(QtWidgets.QLabel("Band stop filter analysis"))
        self.result_label = QtWidgets.QLabel()
        self.lower_cutoff_label = QtWidgets.QLabel()
        self.lower_six_db_label = QtWidgets.QLabel()
        self.lower_sixty_db_label = QtWidgets.QLabel()
        self.lower_db_per_octave_label = QtWidgets.QLabel()
        self.lower_db_per_decade_label = QtWidgets.QLabel()

        self.upper_cutoff_label = QtWidgets.QLabel()
        self.upper_six_db_label = QtWidgets.QLabel()
        self.upper_sixty_db_label = QtWidgets.QLabel()
        self.upper_db_per_octave_label = QtWidgets.QLabel()
        self.upper_db_per_decade_label = QtWidgets.QLabel()
        layout.addRow("Result:", self.result_label)

        layout.addRow(QtWidgets.QLabel(""))

        self.center_frequency_label = QtWidgets.QLabel()
        self.span_label = QtWidgets.QLabel()
        self.six_db_span_label = QtWidgets.QLabel()
        self.quality_label = QtWidgets.QLabel()

        layout.addRow("Center frequency:", self.center_frequency_label)
        layout.addRow("Bandwidth (-3 dB):", self.span_label)
        layout.addRow("Quality factor:", self.quality_label)
        layout.addRow("Bandwidth (-6 dB):", self.six_db_span_label)

        layout.addRow(QtWidgets.QLabel(""))

        layout.addRow(QtWidgets.QLabel("Lower side:"))
        layout.addRow("Cutoff frequency:", self.lower_cutoff_label)
        layout.addRow("-6 dB point:", self.lower_six_db_label)
        layout.addRow("-60 dB point:", self.lower_sixty_db_label)
        layout.addRow("Roll-off:", self.lower_db_per_octave_label)
        layout.addRow("Roll-off:", self.lower_db_per_decade_label)

        layout.addRow(QtWidgets.QLabel(""))

        layout.addRow(QtWidgets.QLabel("Upper side:"))
        layout.addRow("Cutoff frequency:", self.upper_cutoff_label)
        layout.addRow("-6 dB point:", self.upper_six_db_label)
        layout.addRow("-60 dB point:", self.upper_sixty_db_label)
        layout.addRow("Roll-off:", self.upper_db_per_octave_label)
        layout.addRow("Roll-off:", self.upper_db_per_decade_label)
Exemplo n.º 3
0
    def setupUi(self, PWSlot25):
        PWSlot25.setObjectName("PWSlot25")
        PWSlot25.resize(630, 470)
        PWSlot25.setMinimumSize(QtCore.QSize(630, 470))
        PWSlot25.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.horizontalLayout = QtWidgets.QHBoxLayout(PWSlot25)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.img_slot = QtWidgets.QLabel(PWSlot25)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.img_slot.sizePolicy().hasHeightForWidth())
        self.img_slot.setSizePolicy(sizePolicy)
        self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.img_slot.setText("")
        self.img_slot.setPixmap(
            QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_25.PNG")
        )
        self.img_slot.setScaledContents(True)
        self.img_slot.setObjectName("img_slot")
        self.verticalLayout_2.addWidget(self.img_slot)
        self.textEdit = QtWidgets.QTextEdit(PWSlot25)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textEdit.sizePolicy().hasHeightForWidth())
        self.textEdit.setSizePolicy(sizePolicy)
        self.textEdit.setMinimumSize(QtCore.QSize(0, 60))
        self.textEdit.setMaximumSize(QtCore.QSize(16777215, 60))
        self.textEdit.setObjectName("textEdit")
        self.verticalLayout_2.addWidget(self.textEdit)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.in_W3 = QtWidgets.QLabel(PWSlot25)
        self.in_W3.setObjectName("in_W3")
        self.gridLayout.addWidget(self.in_W3, 0, 0, 1, 1)
        self.lf_W3 = FloatEdit(PWSlot25)
        self.lf_W3.setObjectName("lf_W3")
        self.gridLayout.addWidget(self.lf_W3, 0, 1, 1, 1)
        self.unit_W3 = QtWidgets.QLabel(PWSlot25)
        self.unit_W3.setObjectName("unit_W3")
        self.gridLayout.addWidget(self.unit_W3, 0, 2, 1, 1)
        self.in_W4 = QtWidgets.QLabel(PWSlot25)
        self.in_W4.setObjectName("in_W4")
        self.gridLayout.addWidget(self.in_W4, 1, 0, 1, 1)
        self.lf_W4 = FloatEdit(PWSlot25)
        self.lf_W4.setObjectName("lf_W4")
        self.gridLayout.addWidget(self.lf_W4, 1, 1, 1, 1)
        self.unit_W4 = QtWidgets.QLabel(PWSlot25)
        self.unit_W4.setObjectName("unit_W4")
        self.gridLayout.addWidget(self.unit_W4, 1, 2, 1, 1)
        self.in_H1 = QtWidgets.QLabel(PWSlot25)
        self.in_H1.setObjectName("in_H1")
        self.gridLayout.addWidget(self.in_H1, 2, 0, 1, 1)
        self.lf_H1 = FloatEdit(PWSlot25)
        self.lf_H1.setObjectName("lf_H1")
        self.gridLayout.addWidget(self.lf_H1, 2, 1, 1, 1)
        self.unit_H1 = QtWidgets.QLabel(PWSlot25)
        self.unit_H1.setObjectName("unit_H1")
        self.gridLayout.addWidget(self.unit_H1, 2, 2, 1, 1)
        self.in_H2 = QtWidgets.QLabel(PWSlot25)
        self.in_H2.setObjectName("in_H2")
        self.gridLayout.addWidget(self.in_H2, 3, 0, 1, 1)
        self.lf_H2 = FloatEdit(PWSlot25)
        self.lf_H2.setObjectName("lf_H2")
        self.gridLayout.addWidget(self.lf_H2, 3, 1, 1, 1)
        self.unit_H2 = QtWidgets.QLabel(PWSlot25)
        self.unit_H2.setObjectName("unit_H2")
        self.gridLayout.addWidget(self.unit_H2, 3, 2, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.w_out = WWSlotOut(PWSlot25)
        self.w_out.setObjectName("w_out")
        self.verticalLayout.addWidget(self.w_out)
        self.horizontalLayout.addLayout(self.verticalLayout)

        self.retranslateUi(PWSlot25)
        QtCore.QMetaObject.connectSlotsByName(PWSlot25)
Exemplo n.º 4
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(1130, 400)

        self.pbar = QtWidgets.QProgressBar(Dialog)
        self.pbar.setGeometry(313, 157, 300, 20)

        self.cryptosystem = QtWidgets.QComboBox(Dialog)
        self.cryptosystem.setGeometry(QtCore.QRect(635, 30, 150, 22))
        self.cryptosystem.setObjectName("cryptosystem")

        self.do_smt = QtWidgets.QComboBox(Dialog)
        self.do_smt.setGeometry(QtCore.QRect(635, 60, 150, 22))
        self.do_smt.setObjectName("do_smt")

        self.lable1 = QtWidgets.QLabel(Dialog)
        self.lable1.setGeometry(QtCore.QRect(330, 10, 250, 20))
        self.lable1.setObjectName("lable1")
        self.lable1.setText("Поле для ввода обрабатываемого сообщения")

        self.textEdit1 = QtWidgets.QTextEdit(Dialog)
        self.textEdit1.setGeometry(QtCore.QRect(320, 30, 250, 120))
        self.textEdit1.setObjectName("textEdit1")

        self.lable2 = QtWidgets.QLabel(Dialog)
        self.lable2.setGeometry(QtCore.QRect(330, 225, 250, 20))
        self.lable2.setObjectName("lable2")
        self.lable2.setText("Результат работы программы")

        self.textEdit2 = QtWidgets.QTextEdit(Dialog)
        self.textEdit2.setGeometry(QtCore.QRect(320, 250, 250, 120))
        self.textEdit2.setObjectName("textEdit2")

        self.lable3 = QtWidgets.QLabel(Dialog)
        self.lable3.setGeometry(QtCore.QRect(30, 10, 250, 15))
        self.lable3.setObjectName("lable3")
        self.lable3.setText("Для заметок")

        self.textEdit3 = QtWidgets.QTextEdit(Dialog)
        self.textEdit3.setGeometry(QtCore.QRect(20, 30, 250, 340))
        self.textEdit3.setObjectName("textEdit3")

        self.lable4 = QtWidgets.QLabel(Dialog)
        self.lable4.setGeometry(QtCore.QRect(870, 10, 250, 15))
        self.lable4.setObjectName("lable4")
        self.lable4.setText("Служебная информация о работе шифра")

        self.textEdit4 = QtWidgets.QTextEdit(Dialog)
        self.textEdit4.setGeometry(QtCore.QRect(860, 30, 250, 340))
        self.textEdit4.setObjectName("textEdit4")

        self.lable5 = QtWidgets.QLabel(Dialog)
        self.lable5.setGeometry(QtCore.QRect(620, 150, 250, 15))
        self.lable5.setObjectName("lable5")
        self.lable5.setText("Поле для ввода ключа")

        self.textKey = QtWidgets.QTextEdit(Dialog)
        self.textKey.setGeometry(QtCore.QRect(610, 170, 200, 60))
        self.textKey.setObjectName("textКеу")

        self.Bt_do = QtWidgets.QPushButton(Dialog)
        self.Bt_do.setGeometry(QtCore.QRect(630, 250, 150, 23))
        self.Bt_do.setObjectName("Bt_do")

        self.bt_clear = QtWidgets.QPushButton(Dialog)
        self.bt_clear.setGeometry(QtCore.QRect(630, 280, 150, 23))
        self.bt_clear.setObjectName("bt_clear")

        self.Bt_Anal1 = QtWidgets.QPushButton(Dialog)
        self.Bt_Anal1.setGeometry(QtCore.QRect(630, 310, 150, 23))
        self.Bt_Anal1.setObjectName("Bt_Anal1")

        self.Bt_Anal2 = QtWidgets.QPushButton(Dialog)
        self.Bt_Anal2.setGeometry(QtCore.QRect(630, 340, 150, 23))
        self.Bt_Anal2.setObjectName("Bt_Anal2")

        self.Bt_Read = QtWidgets.QPushButton(Dialog)
        self.Bt_Read.setGeometry(QtCore.QRect(340, 185, 100, 25))
        self.Bt_Read.setObjectName("Bt_Read")

        self.Bt_Write = QtWidgets.QPushButton(Dialog)
        self.Bt_Write.setGeometry(QtCore.QRect(450, 185, 100, 25))
        self.Bt_Write.setObjectName("Bt_Write")

        self.hintField = QtWidgets.QLabel(Dialog)
        self.hintField.setGeometry(QtCore.QRect(620, 230, 200, 20))
        self.hintField.setObjectName("hintField")

        self.msgErr = QMessageBox()
        self.msgErr.setIcon(QMessageBox.Question)
        self.msgErr.setText("Error")
        self.msgErr.setWindowTitle("Error")

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
Exemplo n.º 5
0
 def clear_button_settings(self):
     self.clear_button = QtWidgets.QPushButton("Clear")
     self.clear_button.setFixedHeight(70)
     self.clear_button.clicked.connect(self.button_click)
Exemplo n.º 6
0
    def initWidget(self):
        vlayout = QtWidgets.QVBoxLayout()

        hlayout = QtWidgets.QHBoxLayout()
        btnShowDown = QtWidgets.QPushButton("显示下行")
        btnShowDown.clicked.connect(lambda: self._set_dir_show(True, True))
        btnShowUp = QtWidgets.QPushButton("显示上行")
        btnShowUp.clicked.connect(lambda: self._set_dir_show(False, True))
        hlayout.addWidget(btnShowDown)
        hlayout.addWidget(btnShowUp)
        vlayout.addLayout(hlayout)

        hlayout = QtWidgets.QHBoxLayout()
        btnNoDown = QtWidgets.QPushButton("隐藏下行")
        btnNoDown.clicked.connect(lambda: self._set_dir_show(True, False))
        btnNoUp = QtWidgets.QPushButton("隐藏上行")
        btnNoUp.clicked.connect(lambda: self._set_dir_show(False, False))
        hlayout.addWidget(btnNoDown)
        hlayout.addWidget(btnNoUp)
        vlayout.addLayout(hlayout)

        hlayout = QtWidgets.QHBoxLayout()
        btnPas = QtWidgets.QPushButton('客车类型')
        btnPas.clicked.connect(self._select_passenger)
        hlayout.addWidget(btnPas)
        btnRev = QtWidgets.QPushButton('反选')
        btnRev.clicked.connect(self._reverse_select)
        hlayout.addWidget(btnRev)
        vlayout.addLayout(hlayout)

        check = QtWidgets.QCheckBox('运行线级别行别显示控制')
        check.setToolTip('如果启用,则对每一段运行线判断是否符合显示条件,可能导致运行线不完整;'
                         '否则仅根据入图方向判定是否显示。\n'
                         '如果使用此功能后,想要显示完整运行线,请用[刷新]或[重新铺画运行图]功能。')
        self.checkEnableItemWise = check
        vlayout.addWidget(check)

        listWidget = QtWidgets.QListWidget()
        self.listWidget = listWidget
        listWidget.setSelectionMode(listWidget.MultiSelection)

        self._setTypeList()

        vlayout.addWidget(listWidget)

        btnOk = QtWidgets.QPushButton("确定")
        btnCancel = QtWidgets.QPushButton("还原")

        btnOk.clicked.connect(self._apply_type_show)
        btnCancel.clicked.connect(self._setTypeList)

        hlayout = QtWidgets.QHBoxLayout()
        hlayout.addWidget(btnOk)
        hlayout.addWidget(btnCancel)

        vlayout.addLayout(hlayout)
        self.setLayout(vlayout)
Exemplo n.º 7
0
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Point"))
        self.name_label.setText(_translate("Dialog", "Point Number"))
        self.color_label.setText(_translate("Dialog", "Color"))
        self.label.setText(_translate("Dialog", "x coordinate"))
        self.label_2.setText(_translate("Dialog", "y coordinate"))
        self.type_label.setText(_translate("Dialog", "Type:"))
        self.type_box.setItemText(0, _translate("Dialog", "R (pin)"))
        self.type_box.setItemText(1, _translate("Dialog", "P (slider block)"))
        self.type_box.setItemText(2, _translate("Dialog", "RP (pin in slot)"))
        self.angle_box_2.setText(_translate("Dialog", "Angle (Slider):"))
        self.links_label.setText(_translate("Dialog", "Links:"))
        self.label_4.setText(_translate("Dialog", ">>"))


import icons_rc

if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    Dialog = QtWidgets.QDialog()
    ui = Ui_Dialog()
    ui.setupUi(Dialog)
    Dialog.show()
    sys.exit(app.exec_())
Exemplo n.º 8
0
    def init_ui(self):
        grid = QtWidgets.QGridLayout()
        horizontal_layout = self.horizontal_lay()

        button_items = [
            'A1', 'A2', 'B1', 'B2', 'C1', 'C2', 'D1', 'D2', 'E1', 'E2'
        ]
        positions = [(i, j) for i in range(3) for j in range(4)]
        for button_name, position in zip(button_items, positions):
            button = QtWidgets.QPushButton(button_name)
            button.setFixedHeight(50)
            button.clicked.connect(lambda: self.command_click(button_items))
            grid.addWidget(button, *position)
        label_hoops = self.image_viewer()
        vertical_layout_1 = QtWidgets.QVBoxLayout()
        vertical_layout_1.addWidget(label_hoops)
        vertical_layout_1.addWidget(self.line_edit)
        vertical_layout_2 = QtWidgets.QVBoxLayout()
        vertical_layout_2.addLayout(grid)
        vertical_layout_2.addLayout(horizontal_layout)
        window_horizontal = QtWidgets.QHBoxLayout()
        window_horizontal.addLayout(vertical_layout_1)
        window_horizontal.addLayout(vertical_layout_2)
        return window_horizontal


if __name__ == "__main__":
    app = QtWidgets.QApplication(sys.argv)
    window = WindowScreen()
    sys.exit(app.exec_())
Exemplo n.º 9
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1126, 879)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.stackedWidget = QtWidgets.QStackedWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stackedWidget.sizePolicy().hasHeightForWidth())
        self.stackedWidget.setSizePolicy(sizePolicy)
        self.stackedWidget.setObjectName("stackedWidget")
        self.page = QtWidgets.QWidget()
        self.page.setObjectName("page")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.page)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.launch_logo = QtWidgets.QLabel(self.page)
        self.launch_logo.setAlignment(QtCore.Qt.AlignCenter)
        self.launch_logo.setObjectName("launch_logo")
        self.verticalLayout_3.addWidget(self.launch_logo)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.launch_search_box = QtWidgets.QLineEdit(self.page)
        self.launch_search_box.setObjectName("launch_search_box")
        self.horizontalLayout.addWidget(self.launch_search_box)

        self.launch_directory_button = QtWidgets.QPushButton(self.page)
        self.launch_directory_button.setObjectName("launch_directory_button")
        self.horizontalLayout.addWidget(self.launch_directory_button)
        
        self.launch_search_button = QtWidgets.QPushButton(self.page)
        self.launch_search_button.setObjectName("launch_search_button")
        self.horizontalLayout.addWidget(self.launch_search_button)

        self.toggle_theme_button = QtWidgets.QPushButton(self.page)
        self.toggle_theme_button.setObjectName("toggle_theme_button")
        self.verticalLayout.addWidget(self.toggle_theme_button, alignment=QtCore.Qt.AlignRight)
        
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.verticalLayout_2.addLayout(self.verticalLayout_3)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem1)
        self.stackedWidget.addWidget(self.page)
        self.page_2 = QtWidgets.QWidget()
        self.page_2.setObjectName("page_2")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.page_2)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.results_search_box = QtWidgets.QLineEdit(self.page_2)
        self.results_search_box.setObjectName("results_search_box")
        self.horizontalLayout_2.addWidget(self.results_search_box)
        self.results_search_button = QtWidgets.QPushButton(self.page_2)
        self.results_search_button.setObjectName("results_search_button")
        self.horizontalLayout_2.addWidget(self.results_search_button)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.results_tree_widget = QtWidgets.QTreeWidget(self.page_2)
        self.results_tree_widget.setObjectName("results_tree_widget")
        self.verticalLayout_4.addWidget(self.results_tree_widget)
        self.stackedWidget.addWidget(self.page_2)
        self.verticalLayout.addWidget(self.stackedWidget)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        self.stackedWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Exemplo n.º 10
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(570, 446)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.centralWidget)
        self.gridLayout_3.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_3.setSpacing(6)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.pushButton = QtWidgets.QPushButton(self.centralWidget)
        self.pushButton.setObjectName("pushButton")
        self.verticalLayout.addWidget(self.pushButton)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)
        self.lineEdit = QtWidgets.QLineEdit(self.centralWidget)
        self.lineEdit.setObjectName("lineEdit")
        self.verticalLayout.addWidget(self.lineEdit)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem2)
        self.listWidget = QtWidgets.QListWidget(self.centralWidget)
        self.listWidget.setObjectName("listWidget")
        self.verticalLayout.addWidget(self.listWidget)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem3)
        self.pushButton_2 = QtWidgets.QPushButton(self.centralWidget)
        self.pushButton_2.setObjectName("pushButton_2")
        self.verticalLayout.addWidget(self.pushButton_2)
        self.gridLayout_3.addLayout(self.verticalLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 570, 22))
        self.menuBar.setObjectName("menuBar")
        MainWindow.setMenuBar(self.menuBar)
        self.mainToolBar = QtWidgets.QToolBar(MainWindow)
        self.mainToolBar.setObjectName("mainToolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Exemplo n.º 11
0
    def setupUi(self, First_Form):
        First_Form.setObjectName("First_Form")
        First_Form.resize(1024, 768)
        self.gridLayout = QtWidgets.QGridLayout(First_Form)
        self.gridLayout.setObjectName("gridLayout")
        self.tableWidget = QtWidgets.QTableWidget(First_Form)
        self.tableWidget.setObjectName("tableWidget")
        self.tableWidget.setColumnCount(0)
        self.tableWidget.setRowCount(0)
        self.gridLayout.addWidget(self.tableWidget, 2, 0, 1, 3)
        self.label_2 = QtWidgets.QLabel(First_Form)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
        self.label = QtWidgets.QLabel(First_Form)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(669, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 1, 1, 1)
        self.lineEdit = QtWidgets.QLineEdit(First_Form)
        self.lineEdit.setObjectName("lineEdit")
        self.gridLayout.addWidget(self.lineEdit, 1, 0, 1, 2)
        self.lineEdit_2 = QtWidgets.QLineEdit(First_Form)
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.gridLayout.addWidget(self.lineEdit_2, 4, 0, 1, 2)
        spacerItem1 = QtWidgets.QSpacerItem(932, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 3, 1, 1, 2)
        self.tableWidget_2 = QtWidgets.QTableWidget(First_Form)
        self.tableWidget_2.setObjectName("tableWidget_2")
        self.tableWidget_2.setColumnCount(0)
        self.tableWidget_2.setRowCount(0)
        self.gridLayout.addWidget(self.tableWidget_2, 5, 0, 1, 3)
        self.textWeather = QtWidgets.QTextEdit(First_Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.textWeather.sizePolicy().hasHeightForWidth())
        self.textWeather.setSizePolicy(sizePolicy)
        self.textWeather.setMinimumSize(QtCore.QSize(256, 150))
        self.textWeather.setObjectName("textWeather")
        self.gridLayout.addWidget(self.textWeather, 0, 2, 2, 1)

        self.retranslateUi(First_Form)
        QtCore.QMetaObject.connectSlotsByName(First_Form)
Exemplo n.º 12
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(666, 304)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setGeometry(QtCore.QRect(120, 250, 521, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.sendY_M = QtWidgets.QPushButton(Dialog)
        self.sendY_M.setGeometry(QtCore.QRect(20, 120, 113, 32))
        self.sendY_M.setObjectName("sendY_M")
        self.startY_M = QtWidgets.QPushButton(Dialog)
        self.startY_M.setGeometry(QtCore.QRect(160, 120, 113, 32))
        self.startY_M.setObjectName("startY_M")
        self.stopY_M = QtWidgets.QPushButton(Dialog)
        self.stopY_M.setGeometry(QtCore.QRect(300, 120, 113, 32))
        self.stopY_M.setObjectName("stopY_M")
        self.stopSP = QtWidgets.QPushButton(Dialog)
        self.stopSP.setGeometry(QtCore.QRect(300, 160, 113, 32))
        self.stopSP.setObjectName("stopSP")
        self.startSP = QtWidgets.QPushButton(Dialog)
        self.startSP.setGeometry(QtCore.QRect(160, 160, 113, 32))
        self.startSP.setObjectName("startSP")
        self.sendSP = QtWidgets.QPushButton(Dialog)
        self.sendSP.setGeometry(QtCore.QRect(20, 160, 113, 32))
        self.sendSP.setObjectName("sendSP")
        self.stopU = QtWidgets.QPushButton(Dialog)
        self.stopU.setGeometry(QtCore.QRect(300, 200, 113, 32))
        self.stopU.setObjectName("stopU")
        self.startU = QtWidgets.QPushButton(Dialog)
        self.startU.setGeometry(QtCore.QRect(160, 200, 113, 32))
        self.startU.setObjectName("startU")
        self.sendU_2 = QtWidgets.QPushButton(Dialog)
        self.sendU_2.setGeometry(QtCore.QRect(20, 200, 113, 32))
        self.sendU_2.setObjectName("sendU_2")
        self.Y_Mlabel = QtWidgets.QLabel(Dialog)
        self.Y_Mlabel.setGeometry(QtCore.QRect(430, 130, 60, 16))
        self.Y_Mlabel.setObjectName("Y_Mlabel")
        self.SPlabel = QtWidgets.QLabel(Dialog)
        self.SPlabel.setGeometry(QtCore.QRect(430, 160, 60, 16))
        self.SPlabel.setObjectName("SPlabel")
        self.Ulabel = QtWidgets.QLabel(Dialog)
        self.Ulabel.setGeometry(QtCore.QRect(430, 200, 60, 16))
        self.Ulabel.setObjectName("Ulabel")
        self.UNextlabel = QtWidgets.QLabel(Dialog)
        self.UNextlabel.setGeometry(QtCore.QRect(520, 200, 60, 16))
        self.UNextlabel.setObjectName("UNextlabel")
        self.splitter = QtWidgets.QSplitter(Dialog)
        self.splitter.setGeometry(QtCore.QRect(9, 21, 522, 91))
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName("splitter")
        self.positionSlider = QtWidgets.QSlider(self.splitter)
        self.positionSlider.setMaximum(100)
        self.positionSlider.setSingleStep(1)
        self.positionSlider.setOrientation(QtCore.Qt.Horizontal)
        self.positionSlider.setTickPosition(QtWidgets.QSlider.TicksBelow)
        self.positionSlider.setObjectName("positionSlider")
        self.widget = QtWidgets.QWidget(self.splitter)
        self.widget.setObjectName("widget")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.SetPoint = QtWidgets.QLabel(self.widget)
        self.SetPoint.setObjectName("SetPoint")
        self.horizontalLayout_3.addWidget(self.SetPoint)
        self.positionValue = QtWidgets.QLabel(self.widget)
        self.positionValue.setObjectName("positionValue")
        self.horizontalLayout_3.addWidget(self.positionValue)
        self.sendSetPoint = QtWidgets.QPushButton(self.widget)
        self.sendSetPoint.setObjectName("sendSetPoint")
        self.horizontalLayout_3.addWidget(self.sendSetPoint)
        self.startSetPoint = QtWidgets.QPushButton(self.widget)
        self.startSetPoint.setObjectName("startSetPoint")
        self.horizontalLayout_3.addWidget(self.startSetPoint)
        self.stopSetPoint = QtWidgets.QPushButton(self.widget)
        self.stopSetPoint.setObjectName("stopSetPoint")
        self.horizontalLayout_3.addWidget(self.stopSetPoint)
        self.widget1 = QtWidgets.QWidget(self.splitter)
        self.widget1.setObjectName("widget1")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget1)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(self.widget1)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.uValue = QtWidgets.QLineEdit(self.widget1)
        self.uValue.setMinimumSize(QtCore.QSize(100, 9))
        self.uValue.setMaxLength(5)
        self.uValue.setObjectName("uValue")
        self.horizontalLayout.addWidget(self.uValue)
        self.sendU = QtWidgets.QPushButton(self.widget1)
        self.sendU.setObjectName("sendU")
        self.horizontalLayout.addWidget(self.sendU)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
    def initUI(self):
        self.setWindowTitle(self.title)
        #self.setGeometry(self.left, self.top, self.width, self.height)
        
        self.resize(1370, 720)

        
        

        #image = cv2.imread(r'C:\Users\Pankaj\Downloads\pank do not throw\WorldExpo\test_video')
        # Combo BOX
        self.groupBox = QGroupBox(self)
        self.groupBox.setGeometry(QtCore.QRect(1150, 20, 200, 180))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.groupBox.setFont(font)
        self.groupBox.setObjectName("groupBox")
######################################## PORT #######################
        self.comboBoxPort = QtWidgets.QComboBox(self.groupBox)
        self.comboBoxPort.setGeometry(QtCore.QRect(100, 25, 75, 21))
        self.comboBoxPort.setObjectName("comboBoxPort")
#####################################label_2 = COM ##################################################################
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        self.label_2.setGeometry(QtCore.QRect(2, 25, 80, 21))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_2.setFont(font)
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName("label_2")
######################################label = Baud rate ##################################################################
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setGeometry(QtCore.QRect(2, 50, 80, 21))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label.setFont(font)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
####################################################################
        self.comboBoxBaud = QtWidgets.QComboBox(self.groupBox)
        self.comboBoxBaud.setGeometry(QtCore.QRect(100, 50, 75, 21))
        self.comboBoxBaud.setObjectName("comboBoxBaud")
#################################### label_3 = Parity Bits ######################################################
        self.label_3 = QtWidgets.QLabel(self.groupBox)
        self.label_3.setGeometry(QtCore.QRect(2, 75, 80, 21))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_3.setFont(font)
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName("label_3")
#########################################################################
        self.comboBoxCheckSum = QtWidgets.QComboBox(self.groupBox)
        self.comboBoxCheckSum.setGeometry(QtCore.QRect(100, 75, 75, 21))
        self.comboBoxCheckSum.setObjectName("comboBoxCheckSum")
##################################### label_4 = Data Bits ##########################################################        
        self.label_4 = QtWidgets.QLabel(self.groupBox)
        self.label_4.setGeometry(QtCore.QRect(2, 100, 80, 21))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_4.setFont(font)
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName("label_4")
######################################################################
        self.comboBoxBits = QtWidgets.QComboBox(self.groupBox)
        self.comboBoxBits.setGeometry(QtCore.QRect(100, 100, 75, 21))
        self.comboBoxBits.setObjectName("comboBoxBits")
###################################### label_5 = Stop Bits ###########################################################
        self.label_5 = QtWidgets.QLabel(self.groupBox)  
        self.label_5.setGeometry(QtCore.QRect(2, 125, 80, 21))        
        font = QtGui.QFont()
        font.setPointSize(8)
        self.label_5.setFont(font)
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName("label_5")
##########################################################################
        self.comboBoxStopBits = QtWidgets.QComboBox(self.groupBox)
        self.comboBoxStopBits.setGeometry(QtCore.QRect(100, 125, 75, 21))
        self.comboBoxStopBits.setObjectName("comboBoxStopBits")
######################################### Open Button ############################################################
        self.pushButtonOpenSerial = QtWidgets.QPushButton(self.groupBox)
        self.pushButtonOpenSerial.setGeometry(QtCore.QRect(50, 150, 125, 21))
        self.pushButtonOpenSerial.setObjectName("pushButtonOpenSerial")
########################################  Send Button  for sending ####################################################
        self.pushButtonSendData = QtWidgets.QPushButton(self)
        self.pushButtonSendData.setGeometry(QtCore.QRect(1300, 450, 50, 75))
        self.pushButtonSendData.setAutoDefault(True)
        self.pushButtonSendData.setObjectName("pushButtonSendData")
########################################  clear Button  for sending ####################################################
        self.pushButtonclearSendData = QtWidgets.QPushButton(self)
        self.pushButtonclearSendData.setGeometry(QtCore.QRect(1300, 375, 50, 75))
        self.pushButtonclearSendData.setObjectName("pushButtonclearSendData")
        self.pushButtonclearSendData.clicked.connect(self.clearsenddata)    
####################################### text  box for receiving  ############################################################
        self.textEditReceived = QtWidgets.QTextEdit(self)
        self.textEditReceived.setGeometry(QtCore.QRect(1100, 210, 250, 150))
###################################################################################################################
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textEditReceived.sizePolicy().hasHeightForWidth())
        self.textEditReceived.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.textEditReceived.setFont(font)
        self.textEditReceived.setReadOnly(True)
        self.textEditReceived.setObjectName("textEditReceived")
        ################################### Sending text box ###################################
        self.textEditSent = QtWidgets.QTextEdit(self)
        self.textEditSent.setGeometry(QtCore.QRect(1100, 375, 200, 150))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.textEditSent.setFont(font)
        self.textEditSent.setObjectName("textEditSent")

#########################################################################################################################       
        self.groupBox.setTitle("COM Setting")
        self.label_2.setText("COM")
        self.label.setText("Baud rate")
        self.label_3.setText("Parity Bit")
        self.label_4.setText("Data Bit")
        self.label_5.setText("Stop Bit")
        self.pushButtonOpenSerial.setText("Open")
        self.pushButtonSendData.setText("Send")
        self.pushButtonclearSendData.setText("Clear")

        self.textEditSent.setHtml("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:14pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'PMingLiU\';\"><br /></p></body></html>")
        #groupBox = QGroupBox("Best Food")
 ######################################### controlling post creating group box ########################################################
        self.groupBox1 = QGroupBox(self)
        self.groupBox1.setGeometry(QtCore.QRect(1150,535, 190, 80))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.groupBox1.setFont(font)
        self.groupBox1.setObjectName("groupBox1")
        self.groupBox1.setTitle("Manual Post control")

####################################### post 1 ############################################################
        self.post1 = QtWidgets.QPushButton(self.groupBox1)
        self.post1.setGeometry(QtCore.QRect(10, 20, 80, 21))
        self.post1.setObjectName("post1")
        self.post1.setText("Post 1")
        self.post1.setCheckable(True)
        
        #self.post1.toggle()
        self.post1.clicked.connect(lambda:self.whichbtn(self.post1))
        self.post1.clicked.connect(self.btnstate1)

        
        
#################################### post 2 ###########################        
        self.post2 = QtWidgets.QPushButton(self.groupBox1)
        self.post2.setGeometry(QtCore.QRect(100, 20, 80, 21))
        self.post2.setObjectName("post2")
        self.post2.setText("Post 2")
        
        self.post2.setCheckable(True)
        #self.post2.toggle()
        self.post2.clicked.connect(lambda:self.whichbtn(self.post2))
        self.post2.clicked.connect(self.btnstate2)
        
        

#################################### post 3 ###########################        
        self.post3 = QtWidgets.QPushButton(self.groupBox1)
        self.post3.setGeometry(QtCore.QRect(10, 45, 80, 21))
        self.post3.setObjectName("post3")
        self.post3.setText("Post 3")
        
        self.post3.setCheckable(True)
        #self.post3.toggle()
        self.post3.clicked.connect(lambda:self.whichbtn(self.post3))
        self.post3.clicked.connect(self.btnstate3)

#################################### post 4 ###########################        
        self.post4 = QtWidgets.QPushButton(self.groupBox1)
        self.post4.setGeometry(QtCore.QRect(100, 45, 80, 21))
        self.post4.setObjectName("post4")
        self.post4.setText("Post 4")
        
        self.post4.setCheckable(True)
        #self.post4.toggle()
        self.post4.clicked.connect(lambda:self.whichbtn(self.post4))
        self.post4.clicked.connect(self.btnstate4)

######################################### group box for database of rfid ########################################################
        self.groupBox3 = QGroupBox(self)
        self.groupBox3.setGeometry(QtCore.QRect(1150,615,190, 80))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.groupBox3.setFont(font)
        self.groupBox3.setObjectName("groupBox1")
        self.groupBox3.setTitle("RFID Database") 
#################################### rfid database ##########################        
        self.rfid = QtWidgets.QPushButton(self.groupBox3)
        self.rfid.setGeometry(QtCore.QRect(10, 20,170, 21))
        self.rfid.setObjectName("rfidtable")
        self.rfid.setText("Open Database")
        self.rfid.clicked.connect(self.showDialog1)     
############################# Rfid Register#########################        
        self.rfiddata = QtWidgets.QPushButton(self.groupBox3)
        self.rfiddata.setGeometry(QtCore.QRect(10, 45,170, 21))
        self.rfiddata.setObjectName("rfidtable")
        self.rfiddata.setText("Register")
        self.rfiddata.clicked.connect(self.showDialog2)    


      
        
############################### Group Box and update of serial com and baud rate setting ###############
        print(platform.system())
        
        if platform.system() == "Windows":
            ports = list()
            for i in range(8):
                ports.append("COM%d" %((i+1)))    
            self.comboBoxPort.addItems(ports)
            print(ports)
            
        if platform.system() == "Linux":
            ports = glob.glob('/dev/tty[A-Za-z]*')
            print(ports)
            self.comboBoxPort.addItems(ports)

        
        bauds = ["50","75","134","110","150","200","300","600","1200","2400","4800","9600","14400","19200","38400","56000","57600",
            "115200"]
        self.comboBoxBaud.addItems(bauds)
        self.comboBoxBaud.setCurrentIndex(len(bauds) - 1)
        
        checks = ["None","Odd","Even","Zero","One"]
        self.comboBoxCheckSum.addItems(checks)
        self.comboBoxCheckSum.setCurrentIndex(len(checks) - 1)
        
        bits = ["4 Bits", "5 Bits","6 Bits", "7 Bits", "8 Bits"]
        self.comboBoxBits.addItems(bits)
        self.comboBoxBits.setCurrentIndex(len(bits) - 1)
        
        stopbits = ["1 Bit","1.5 Bits","2 Bits"];
        self.comboBoxStopBits.addItems(stopbits)
        self.comboBoxStopBits.setCurrentIndex(0)
        
        
        #self._auto_send_signal.connect(self.__auto_send_update__)
        
        port = self.comboBoxPort.currentText()
        baud = int("%s" % self.comboBoxBaud.currentText(), 10)
        self._serial_context_ = serialportcontext.SerialPortContext(port = port,baud = baud)

#        self.lineEditReceivedCounts.setText("0")
#        self.lineEditSentCounts.setText("0")
        self.pushButtonOpenSerial.clicked.connect(self.__open_serial_port__)
       # self.pushButtonClearRecvArea.clicked.connect(self.__clear_recv_area__)
        self.pushButtonSendData.clicked.connect(self.__send_data__)
        self._receive_signal.connect(self.__display_recv_data__)
       # self.pushButtonOpenRecvFile.clicked.connect(self.__save_recv_file__)
        
        
############################# Setting Label for image  #######################################       
        imglabel = QLabel(self)
        imglabel.setGeometry(QtCore.QRect(0, 0, 1100, 700))

        pixmape = QPixmap('crossroads.jpg')
        scaleimage = pixmape.scaledToWidth(1090)
        imglabel.setPixmap(scaleimage)
#
#        
        label = QLabel(self)
        label.move(450, 0)
        label.resize(210, 210)
        label.setStyleSheet("background-color:blue;")
        
        label1 = QLabel(self)        
        label1.move(830, 260)
        label1.resize(210, 210)
        label1.setStyleSheet("background-color:red;")


        label2 = QLabel(self)        
        label2.move(85, 260)
        label2.resize(210, 210)
        label2.setStyleSheet("background-color:white;")

        label3 = QLabel(self)        
        label3.move(450, 500)
        label3.resize(210, 210)
        label3.setStyleSheet("background-color:yellow;")

        self.label21 = QLabel(self)
        self.label21.move(400, 220)
        self.label21.resize(300, 25)
        self.label21.setStyleSheet("background-color:blue;")#525,245
        
        self.label22 = QLabel(self)        
        self.label22.move(700, 220)
        self.label22.resize(25, 300)
        self.label22.setStyleSheet("background-color:red;")

        self.label23 = QLabel(self)        
        self.label23.move(400, 495)
        self.label23.resize(300, 25)
        self.label23.setStyleSheet("background-color:white;")

        self.label24 = QLabel(self)        
        self.label24.move(375, 220)
        self.label24.resize(25, 300)
        self.label24.setStyleSheet("background-color:yellow;")
        
        
        
        labelt = QLabel(self)
        labelt.move(525, 170)
        labelt.resize(50,50)
        labelt.setStyleSheet("background-color:blue;""font: bold 20pt 'Arial'")#525,245
        labelt.setAlignment(QtCore.Qt.AlignCenter)  
        
        labelt21 = QLabel(self)        
        labelt21.move(725, 350)
        labelt21.resize(50,50)
        labelt21.setStyleSheet("background-color:red;""font: bold 20pt 'Arial'")
        labelt21.setAlignment(QtCore.Qt.AlignCenter)  

        labelt22 = QLabel(self)        
        labelt22.move(325, 350)
        labelt22.resize(50,50)
        labelt22.setStyleSheet("background-color:white;""font: bold 20pt 'Arial'")        
        labelt22.setAlignment(QtCore.Qt.AlignCenter)  
        
        
        labelt23 = QLabel(self)        
        labelt23.move(525, 520)
        labelt23.resize(50, 50)
        labelt23.setStyleSheet("background-color:yellow;""font: bold 20pt 'Arial'")#525,445
        labelt23.setAlignment(QtCore.Qt.AlignCenter)  

#############################################################################################3


        
        self.groupBox8 = QGroupBox(self)
        self.groupBox8.setGeometry(QtCore.QRect(388,232, 325, 276))

        font = QtGui.QFont()
        font.setPointSize(8)

        self.groupBox8.setFont(font)
        self.groupBox8.setObjectName("groupBox8")
        
       
        self.groupBox8.setStyleSheet("background-color:transparent; border: 2px solid transparent;")

            
        self.horizontalLayout =  QtGui.QHBoxLayout(self.groupBox8)
        self.horizontalLayout.setGeometry(QtCore.QRect(0, 0, 200, 200))
        

        
        self.win = pg.GraphicsWindow()
        #self.win.resize(200,200)
        self.horizontalLayout.addWidget(self.win)
#        pg.setConfigOption('background', 'w')
#        pg.setConfigOption('foreground', 'k')
        
        self.p6 = self.win.addPlot(title="Crowd Count Plot")
        self.curve = self.p6.plot(pen='b')
        self.curve1 = self.p6.plot(pen='r')
        self.curve2 = self.p6.plot(pen='w')
        self.curve3 = self.p6.plot(pen='y')


   
        
                


#################################################################################################### 
        th = Thread(self)
        th.changePixmap.connect(label.setPixmap)
        th.changePixmap1.connect(label1.setPixmap)
        th.changePixmap2.connect(label2.setPixmap)
        th.changePixmap3.connect(label3.setPixmap)
                
        th.showdata.connect(labelt.setText)
        th.showdata1.connect(labelt21.setText)
        th.showdata2.connect(labelt22.setText)
        th.showdata3.connect(labelt23.setText)
        
        th.datacollect.connect(self.collecteddensity)
        #th.datacollect.connect(self.plotgraph)
        
        th.start()
Exemplo n.º 14
0
    def setupUi(self, Problem):
        Problem.setObjectName("Problem")
        Problem.resize(959, 514)
        self.verticalLayout = QtWidgets.QVBoxLayout(Problem)
        self.verticalLayout.setObjectName("verticalLayout")
        self.title = QtWidgets.QLabel(Problem)
        font = QtGui.QFont()
        font.setPointSize(28)
        font.setBold(False)
        font.setWeight(50)
        font.setKerning(True)
        self.title.setFont(font)
        self.title.setAlignment(QtCore.Qt.AlignCenter)
        self.title.setObjectName("title")
        self.verticalLayout.addWidget(self.title)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.score = QtWidgets.QLabel(Problem)
        self.score.setObjectName("score")
        self.horizontalLayout_3.addWidget(self.score)
        self.score_percent = QtWidgets.QLabel(Problem)
        self.score_percent.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.score_percent.setObjectName("score_percent")
        self.horizontalLayout_3.addWidget(self.score_percent)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.frame = QtWidgets.QFrame(Problem)
        self.frame.setStyleSheet("QWidget#frame {background-color: rgb(192, 192, 192);}")
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Plain)
        self.frame.setLineWidth(3)
        self.frame.setObjectName("frame")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.problem_frame = QtWidgets.QFrame(self.frame)
        self.problem_frame.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.problem_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.problem_frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.problem_frame.setObjectName("problem_frame")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.problem_frame)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.problem = QSvgWidget(self.problem_frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.problem.sizePolicy().hasHeightForWidth())
        self.problem.setSizePolicy(sizePolicy)
        self.problem.setObjectName("problem")
        self.verticalLayout_4.addWidget(self.problem)
        self.verticalLayout_2.addWidget(self.problem_frame)
        self.answer_frame = QtWidgets.QFrame(self.frame)
        self.answer_frame.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.answer_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.answer_frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.answer_frame.setObjectName("answer_frame")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.answer_frame)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.answer = QSvgWidget(self.answer_frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.answer.sizePolicy().hasHeightForWidth())
        self.answer.setSizePolicy(sizePolicy)
        self.answer.setObjectName("answer")
        self.verticalLayout_3.addWidget(self.answer)
        self.verticalLayout_2.addWidget(self.answer_frame)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.button_new = QtWidgets.QPushButton(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.button_new.sizePolicy().hasHeightForWidth())
        self.button_new.setSizePolicy(sizePolicy)
        self.button_new.setObjectName("button_new")
        self.horizontalLayout.addWidget(self.button_new)
        self.text_entry = QtWidgets.QLineEdit(self.frame)
        self.text_entry.setObjectName("text_entry")
        self.horizontalLayout.addWidget(self.text_entry)
        self.button_check = QtWidgets.QPushButton(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.button_check.sizePolicy().hasHeightForWidth())
        self.button_check.setSizePolicy(sizePolicy)
        self.button_check.setObjectName("button_check")
        self.horizontalLayout.addWidget(self.button_check)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 1)
        self.verticalLayout.addWidget(self.frame)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.button_back = QtWidgets.QPushButton(Problem)
        self.button_back.setObjectName("button_back")
        self.horizontalLayout_2.addWidget(self.button_back)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.button_help = QtWidgets.QPushButton(Problem)
        self.button_help.setObjectName("button_help")
        self.horizontalLayout_2.addWidget(self.button_help)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.button_home = QtWidgets.QPushButton(Problem)
        self.button_home.setObjectName("button_home")
        self.horizontalLayout_2.addWidget(self.button_home)
        self.verticalLayout.addLayout(self.horizontalLayout_2)

        self.retranslateUi(Problem)
        QtCore.QMetaObject.connectSlotsByName(Problem)
Exemplo n.º 15
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(354, 528)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/bearing.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Dialog.setWindowIcon(icon)
        Dialog.setSizeGripEnabled(True)
        Dialog.setModal(True)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(Dialog)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.name_label = QtWidgets.QLabel(Dialog)
        self.name_label.setAlignment(QtCore.Qt.AlignLeading
                                     | QtCore.Qt.AlignLeft
                                     | QtCore.Qt.AlignTop)
        self.name_label.setObjectName("name_label")
        self.verticalLayout.addWidget(self.name_label)
        self.name_box = QtWidgets.QComboBox(Dialog)
        self.name_box.setObjectName("name_box")
        self.verticalLayout.addWidget(self.name_box)
        self.color_label = QtWidgets.QLabel(Dialog)
        self.color_label.setAlignment(QtCore.Qt.AlignLeading
                                      | QtCore.Qt.AlignLeft
                                      | QtCore.Qt.AlignTop)
        self.color_label.setObjectName("color_label")
        self.verticalLayout.addWidget(self.color_label)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.color_box = QtWidgets.QComboBox(Dialog)
        self.color_box.setObjectName("color_box")
        self.horizontalLayout_2.addWidget(self.color_box)
        self.color_pick_button = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.color_pick_button.sizePolicy().hasHeightForWidth())
        self.color_pick_button.setSizePolicy(sizePolicy)
        self.color_pick_button.setObjectName("color_pick_button")
        self.horizontalLayout_2.addWidget(self.color_pick_button)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
        self.x_box = QtWidgets.QDoubleSpinBox(Dialog)
        self.x_box.setDecimals(4)
        self.x_box.setMinimum(-999999.0)
        self.x_box.setMaximum(999999.0)
        self.x_box.setObjectName("x_box")
        self.gridLayout.addWidget(self.x_box, 1, 0, 1, 1)
        self.y_box = QtWidgets.QDoubleSpinBox(Dialog)
        self.y_box.setDecimals(4)
        self.y_box.setMinimum(-999999.0)
        self.y_box.setMaximum(999999.0)
        self.y_box.setObjectName("y_box")
        self.gridLayout.addWidget(self.y_box, 1, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.type_label = QtWidgets.QLabel(Dialog)
        self.type_label.setObjectName("type_label")
        self.verticalLayout.addWidget(self.type_label)
        self.type_box = QtWidgets.QComboBox(Dialog)
        self.type_box.setObjectName("type_box")
        self.type_box.addItem("")
        self.type_box.addItem("")
        self.type_box.addItem("")
        self.verticalLayout.addWidget(self.type_box)
        self.angle_box_2 = QtWidgets.QLabel(Dialog)
        self.angle_box_2.setObjectName("angle_box_2")
        self.verticalLayout.addWidget(self.angle_box_2)
        self.angle_box = QtWidgets.QDoubleSpinBox(Dialog)
        self.angle_box.setEnabled(False)
        self.angle_box.setMaximum(180.0)
        self.angle_box.setObjectName("angle_box")
        self.verticalLayout.addWidget(self.angle_box)
        self.links_label = QtWidgets.QLabel(Dialog)
        self.links_label.setObjectName("links_label")
        self.verticalLayout.addWidget(self.links_label)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.noSelected = QtWidgets.QListWidget(Dialog)
        self.noSelected.setDragEnabled(True)
        self.noSelected.setDragDropMode(QtWidgets.QAbstractItemView.DragDrop)
        self.noSelected.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.noSelected.setObjectName("noSelected")
        self.horizontalLayout.addWidget(self.noSelected)
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout.addWidget(self.label_4)
        self.selected = QtWidgets.QListWidget(Dialog)
        self.selected.setDragEnabled(True)
        self.selected.setDragDropMode(QtWidgets.QAbstractItemView.DragDrop)
        self.selected.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.selected.setObjectName("selected")
        self.horizontalLayout.addWidget(self.selected)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_3.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonBox.sizePolicy().hasHeightForWidth())
        self.buttonBox.setSizePolicy(sizePolicy)
        self.buttonBox.setOrientation(QtCore.Qt.Vertical)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout_2.addWidget(self.buttonBox)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.horizontalLayout_3.addLayout(self.verticalLayout_2)

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
Exemplo n.º 16
0
 def filemanager(self):
     self.window = QtWidgets.QWidget()
     self.ui = App()
Exemplo n.º 17
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(600, 608)
        MainWindow.setMinimumSize(QtCore.QSize(600, 600))
        MainWindow.setToolTip("")
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.tabWidget = QtWidgets.QTabWidget(self.centralWidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 0, 591, 571))
        self.tabWidget.setMinimumSize(QtCore.QSize(500, 400))
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tab.sizePolicy().hasHeightForWidth())
        self.tab.setSizePolicy(sizePolicy)
        self.tab.setObjectName("tab")
        self.formLayoutWidget = QtWidgets.QWidget(self.tab)
        self.formLayoutWidget.setGeometry(QtCore.QRect(20, 20, 551, 561))
        self.formLayoutWidget.setObjectName("formLayoutWidget")
        self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget)
        self.formLayout.setContentsMargins(0, 0, 0, 0)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.formLayoutWidget)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
        self.lineEdit = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit.setObjectName("lineEdit")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEdit)
        self.label_2 = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2)
        self.lineEdit_2 = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEdit_2)
        self.label_3 = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_3.setObjectName("label_3")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_3)
        self.lineEdit_3 = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_3.setObjectName("lineEdit_3")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEdit_3)
        self.label_4 = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_4.setObjectName("label_4")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_4)
        self.lineEdit_4 = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_4.setObjectName("lineEdit_4")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.lineEdit_4)
        self.label_5 = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_5.setObjectName("label_5")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_5)
        self.lineEdit_5 = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_5.setObjectName("lineEdit_5")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.lineEdit_5)
        self.label_6 = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_6.setObjectName("label_6")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_6)
        self.lineEdit_6 = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_6.setObjectName("lineEdit_6")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.lineEdit_6)
        self.label_7 = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_7.setObjectName("label_7")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.label_7)
        self.lineEdit_7 = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_7.setObjectName("lineEdit_7")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.lineEdit_7)
        self.label_8 = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_8.setObjectName("label_8")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.label_8)
        self.label_9 = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_9.setObjectName("label_9")
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_9)
        self.lineEdit_9 = QtWidgets.QLineEdit(self.formLayoutWidget)
        self.lineEdit_9.setObjectName("lineEdit_9")
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.lineEdit_9)
        self.comboBox = QtWidgets.QComboBox(self.formLayoutWidget)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.comboBox)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setMinimumSize(QtCore.QSize(1000, 1000))
        self.tab_2.setAutoFillBackground(False)
        self.tab_2.setObjectName("tab_2")
        self.scrollArea = QtWidgets.QScrollArea(self.tab_2)
        self.scrollArea.setGeometry(QtCore.QRect(5, 0, 581, 541))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
        self.scrollArea.setSizePolicy(sizePolicy)
        self.scrollArea.setMinimumSize(QtCore.QSize(570, 400))
        self.scrollArea.setAcceptDrops(False)
        self.scrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
        self.scrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setAlignment(QtCore.Qt.AlignCenter)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, -776, 562, 1323))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scrollAreaWidgetContents.sizePolicy().hasHeightForWidth())
        self.scrollAreaWidgetContents.setSizePolicy(sizePolicy)
        self.scrollAreaWidgetContents.setMinimumSize(QtCore.QSize(500, 1323))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.formLayoutWidget_2 = QtWidgets.QWidget(self.scrollAreaWidgetContents)
        self.formLayoutWidget_2.setGeometry(QtCore.QRect(0, 0, 551, 831))
        self.formLayoutWidget_2.setObjectName("formLayoutWidget_2")
        self.formLayout_2 = QtWidgets.QFormLayout(self.formLayoutWidget_2)
        self.formLayout_2.setContentsMargins(9, 14, 14, 0)
        self.formLayout_2.setHorizontalSpacing(7)
        self.formLayout_2.setObjectName("formLayout_2")
        self.fileSNameLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.fileSNameLabel.setObjectName("fileSNameLabel")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.fileSNameLabel)
        self.label_10 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.label_10.setObjectName("label_10")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_10)
        self.LE_SMIC_Prod_ID = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_SMIC_Prod_ID.setInputMask("")
        self.LE_SMIC_Prod_ID.setObjectName("LE_SMIC_Prod_ID")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.LE_SMIC_Prod_ID)
        self.label_11 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.label_11.setObjectName("label_11")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_11)
        self.LE_Tester_Directory = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Tester_Directory.setObjectName("LE_Tester_Directory")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.LE_Tester_Directory)
        self.label100 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.label100.setObjectName("label100")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label100)
        self.LE_Test_Program_Directory = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Test_Program_Directory.setObjectName("LE_Test_Program_Directory")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.LE_Test_Program_Directory)
        self.PB_Probe_Card_Setup_Name = QtWidgets.QPushButton(self.formLayoutWidget_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.PB_Probe_Card_Setup_Name.sizePolicy().hasHeightForWidth())
        self.PB_Probe_Card_Setup_Name.setSizePolicy(sizePolicy)
        self.PB_Probe_Card_Setup_Name.setMinimumSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        self.PB_Probe_Card_Setup_Name.setFont(font)
        self.PB_Probe_Card_Setup_Name.setObjectName("PB_Probe_Card_Setup_Name")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.PB_Probe_Card_Setup_Name)
        self.LE_Probe_Card_Setup_Name = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Probe_Card_Setup_Name.setObjectName("LE_Probe_Card_Setup_Name")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.LE_Probe_Card_Setup_Name)
        self.label_13 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.label_13.setObjectName("label_13")
        self.formLayout_2.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_13)
        self.CB_Notch_side = QtWidgets.QComboBox(self.formLayoutWidget_2)
        self.CB_Notch_side.setObjectName("CB_Notch_side")
        self.CB_Notch_side.addItem("")
        self.CB_Notch_side.addItem("")
        self.CB_Notch_side.addItem("")
        self.CB_Notch_side.addItem("")
        self.formLayout_2.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.CB_Notch_side)
        self.label_14 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.label_14.setObjectName("label_14")
        self.formLayout_2.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.label_14)
        self.CB_Switch_Notch = QtWidgets.QComboBox(self.formLayoutWidget_2)
        self.CB_Switch_Notch.setObjectName("CB_Switch_Notch")
        self.CB_Switch_Notch.addItem("")
        self.CB_Switch_Notch.addItem("")
        self.CB_Switch_Notch.addItem("")
        self.CB_Switch_Notch.addItem("")
        self.formLayout_2.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.CB_Switch_Notch)
        self.label_15 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.label_15.setObjectName("label_15")
        self.formLayout_2.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.label_15)
        self.LE_Grid_Xmax = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Grid_Xmax.setObjectName("LE_Grid_Xmax")
        self.formLayout_2.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.LE_Grid_Xmax)
        self.label_16 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.label_16.setObjectName("label_16")
        self.formLayout_2.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.label_16)
        self.LE_Grid_Ymax = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Grid_Ymax.setObjectName("LE_Grid_Ymax")
        self.formLayout_2.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.LE_Grid_Ymax)
        self.label_17 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.label_17.setObjectName("label_17")
        self.formLayout_2.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.label_17)
        self.LE_Grid_Xmin = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Grid_Xmin.setObjectName("LE_Grid_Xmin")
        self.formLayout_2.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.LE_Grid_Xmin)
        self.label_18 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.label_18.setObjectName("label_18")
        self.formLayout_2.setWidget(10, QtWidgets.QFormLayout.LabelRole, self.label_18)
        self.LE_Grid_Ymin = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Grid_Ymin.setObjectName("LE_Grid_Ymin")
        self.formLayout_2.setWidget(10, QtWidgets.QFormLayout.FieldRole, self.LE_Grid_Ymin)
        self.shift_XLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.shift_XLabel.setObjectName("shift_XLabel")
        self.formLayout_2.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.shift_XLabel)
        self.LE_shift_X = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_shift_X.setObjectName("LE_shift_X")
        self.formLayout_2.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.LE_shift_X)
        self.shift_YLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.shift_YLabel.setObjectName("shift_YLabel")
        self.formLayout_2.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.shift_YLabel)
        self.LE_shift_Y = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_shift_Y.setObjectName("LE_shift_Y")
        self.formLayout_2.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.LE_shift_Y)
        self.label_19 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.label_19.setObjectName("label_19")
        self.formLayout_2.setWidget(13, QtWidgets.QFormLayout.LabelRole, self.label_19)
        self.LE_Fab_Site = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Fab_Site.setObjectName("LE_Fab_Site")
        self.formLayout_2.setWidget(13, QtWidgets.QFormLayout.FieldRole, self.LE_Fab_Site)
        self.test_SiteLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.test_SiteLabel.setObjectName("test_SiteLabel")
        self.formLayout_2.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.test_SiteLabel)
        self.LE_Test_Site = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Test_Site.setObjectName("LE_Test_Site")
        self.formLayout_2.setWidget(14, QtWidgets.QFormLayout.FieldRole, self.LE_Test_Site)
        self.probe_Card_IDLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.probe_Card_IDLabel.setObjectName("probe_Card_IDLabel")
        self.formLayout_2.setWidget(15, QtWidgets.QFormLayout.LabelRole, self.probe_Card_IDLabel)
        self.LE_Probe_Card_ID = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Probe_Card_ID.setObjectName("LE_Probe_Card_ID")
        self.formLayout_2.setWidget(15, QtWidgets.QFormLayout.FieldRole, self.LE_Probe_Card_ID)
        self.wM_ORIGINLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.wM_ORIGINLabel.setObjectName("wM_ORIGINLabel")
        self.formLayout_2.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.wM_ORIGINLabel)
        self.LE_WM_ORIGIN = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_WM_ORIGIN.setObjectName("LE_WM_ORIGIN")
        self.formLayout_2.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.LE_WM_ORIGIN)
        self.load_Board_IDLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.load_Board_IDLabel.setObjectName("load_Board_IDLabel")
        self.formLayout_2.setWidget(17, QtWidgets.QFormLayout.LabelRole, self.load_Board_IDLabel)
        self.LE_Load_Board_ID = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Load_Board_ID.setObjectName("LE_Load_Board_ID")
        self.formLayout_2.setWidget(17, QtWidgets.QFormLayout.FieldRole, self.LE_Load_Board_ID)
        self.rOM_CodeLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.rOM_CodeLabel.setObjectName("rOM_CodeLabel")
        self.formLayout_2.setWidget(19, QtWidgets.QFormLayout.LabelRole, self.rOM_CodeLabel)
        self.LE_ROM_Code = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_ROM_Code.setObjectName("LE_ROM_Code")
        self.formLayout_2.setWidget(19, QtWidgets.QFormLayout.FieldRole, self.LE_ROM_Code)
        self.xDieSizeLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.xDieSizeLabel.setObjectName("xDieSizeLabel")
        self.formLayout_2.setWidget(20, QtWidgets.QFormLayout.LabelRole, self.xDieSizeLabel)
        self.LE_X_Die_Size = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_X_Die_Size.setObjectName("LE_X_Die_Size")
        self.formLayout_2.setWidget(20, QtWidgets.QFormLayout.FieldRole, self.LE_X_Die_Size)
        self.yDieSizeLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.yDieSizeLabel.setObjectName("yDieSizeLabel")
        self.formLayout_2.setWidget(21, QtWidgets.QFormLayout.LabelRole, self.yDieSizeLabel)
        self.LE_Y_Die_Size = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Y_Die_Size.setObjectName("LE_Y_Die_Size")
        self.formLayout_2.setWidget(21, QtWidgets.QFormLayout.FieldRole, self.LE_Y_Die_Size)
        self.x_StreetLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.x_StreetLabel.setObjectName("x_StreetLabel")
        self.formLayout_2.setWidget(22, QtWidgets.QFormLayout.LabelRole, self.x_StreetLabel)
        self.LE_X_Street = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_X_Street.setObjectName("LE_X_Street")
        self.formLayout_2.setWidget(22, QtWidgets.QFormLayout.FieldRole, self.LE_X_Street)
        self.y_StreetLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.y_StreetLabel.setObjectName("y_StreetLabel")
        self.formLayout_2.setWidget(23, QtWidgets.QFormLayout.LabelRole, self.y_StreetLabel)
        self.LE_Y_Street = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Y_Street.setObjectName("LE_Y_Street")
        self.formLayout_2.setWidget(23, QtWidgets.QFormLayout.FieldRole, self.LE_Y_Street)
        self.customer_CodeLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.customer_CodeLabel.setObjectName("customer_CodeLabel")
        self.formLayout_2.setWidget(24, QtWidgets.QFormLayout.LabelRole, self.customer_CodeLabel)
        self.LE_Customer_Code = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Customer_Code.setObjectName("LE_Customer_Code")
        self.formLayout_2.setWidget(24, QtWidgets.QFormLayout.FieldRole, self.LE_Customer_Code)
        self.customer_PartIDLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.customer_PartIDLabel.setObjectName("customer_PartIDLabel")
        self.formLayout_2.setWidget(25, QtWidgets.QFormLayout.LabelRole, self.customer_PartIDLabel)
        self.LE_Customer_PartID = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Customer_PartID.setObjectName("LE_Customer_PartID")
        self.formLayout_2.setWidget(25, QtWidgets.QFormLayout.FieldRole, self.LE_Customer_PartID)
        self.gross_DieLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.gross_DieLabel.setObjectName("gross_DieLabel")
        self.formLayout_2.setWidget(26, QtWidgets.QFormLayout.LabelRole, self.gross_DieLabel)
        self.LE_Gross_Die = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Gross_Die.setObjectName("LE_Gross_Die")
        self.formLayout_2.setWidget(26, QtWidgets.QFormLayout.FieldRole, self.LE_Gross_Die)
        self.gross_DieLabel_2 = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.gross_DieLabel_2.setObjectName("gross_DieLabel_2")
        self.formLayout_2.setWidget(27, QtWidgets.QFormLayout.LabelRole, self.gross_DieLabel_2)
        self.LE_Prr_Check_Number = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Prr_Check_Number.setObjectName("LE_Prr_Check_Number")
        self.formLayout_2.setWidget(27, QtWidgets.QFormLayout.FieldRole, self.LE_Prr_Check_Number)
        self.magnum_UI_VersionLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.magnum_UI_VersionLabel.setObjectName("magnum_UI_VersionLabel")
        self.formLayout_2.setWidget(28, QtWidgets.QFormLayout.LabelRole, self.magnum_UI_VersionLabel)
        self.LE_Magnum_UI_Version = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Magnum_UI_Version.setObjectName("LE_Magnum_UI_Version")
        self.formLayout_2.setWidget(28, QtWidgets.QFormLayout.FieldRole, self.LE_Magnum_UI_Version)
        self.datalog_SetupLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.datalog_SetupLabel.setObjectName("datalog_SetupLabel")
        self.formLayout_2.setWidget(29, QtWidgets.QFormLayout.LabelRole, self.datalog_SetupLabel)
        self.LE_Datalog_Setup = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_Datalog_Setup.setObjectName("LE_Datalog_Setup")
        self.formLayout_2.setWidget(29, QtWidgets.QFormLayout.FieldRole, self.LE_Datalog_Setup)
        self.releaseTesterLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.releaseTesterLabel.setObjectName("releaseTesterLabel")
        self.formLayout_2.setWidget(30, QtWidgets.QFormLayout.LabelRole, self.releaseTesterLabel)
        self.LE_ReleaseTester = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_ReleaseTester.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.LE_ReleaseTester.setObjectName("LE_ReleaseTester")
        self.formLayout_2.setWidget(30, QtWidgets.QFormLayout.FieldRole, self.LE_ReleaseTester)
        self.serverDirectoryLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
        self.serverDirectoryLabel.setObjectName("serverDirectoryLabel")
        self.formLayout_2.setWidget(31, QtWidgets.QFormLayout.LabelRole, self.serverDirectoryLabel)
        self.LE_ServerDirectory = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.LE_ServerDirectory.setObjectName("LE_ServerDirectory")
        self.formLayout_2.setWidget(31, QtWidgets.QFormLayout.FieldRole, self.LE_ServerDirectory)
        self.fileSNameLineEdit = QtWidgets.QLineEdit(self.formLayoutWidget_2)
        self.fileSNameLineEdit.setObjectName("fileSNameLineEdit")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.fileSNameLineEdit)
        self.BTN_Create = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
        self.BTN_Create.setGeometry(QtCore.QRect(470, 1270, 75, 23))
        self.BTN_Create.setObjectName("BTN_Create")
        self.BTN_Clear = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
        self.BTN_Clear.setGeometry(QtCore.QRect(380, 1270, 75, 23))
        self.BTN_Clear.setObjectName("BTN_Clear")
        self.groupBox = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
        self.groupBox.setGeometry(QtCore.QRect(10, 830, 551, 421))
        self.groupBox.setFlat(False)
        self.groupBox.setCheckable(True)
        self.groupBox.setChecked(True)
        self.groupBox.setObjectName("groupBox")
        self.layoutWidget = QtWidgets.QWidget(self.groupBox)
        self.layoutWidget.setGeometry(QtCore.QRect(240, 160, 281, 41))
        self.layoutWidget.setObjectName("layoutWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.PB_Update = QtWidgets.QPushButton(self.layoutWidget)
        self.PB_Update.setObjectName("PB_Update")
        self.horizontalLayout.addWidget(self.PB_Update)
        self.PB_Modify = QtWidgets.QPushButton(self.layoutWidget)
        self.PB_Modify.setObjectName("PB_Modify")
        self.horizontalLayout.addWidget(self.PB_Modify)
        self.PB__delete = QtWidgets.QPushButton(self.layoutWidget)
        self.PB__delete.setObjectName("PB__delete")
        self.horizontalLayout.addWidget(self.PB__delete)
        self.formLayoutWidget_3 = QtWidgets.QWidget(self.groupBox)
        self.formLayoutWidget_3.setGeometry(QtCore.QRect(10, 20, 531, 157))
        self.formLayoutWidget_3.setObjectName("formLayoutWidget_3")
        self.formLayout_4 = QtWidgets.QFormLayout(self.formLayoutWidget_3)
        self.formLayout_4.setContentsMargins(8, 5, 10, 10)
        self.formLayout_4.setObjectName("formLayout_4")
        self.sortLabel_2 = QtWidgets.QLabel(self.formLayoutWidget_3)
        self.sortLabel_2.setObjectName("sortLabel_2")
        self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.sortLabel_2)
        self.sortLineEdit_2 = QtWidgets.QLineEdit(self.formLayoutWidget_3)
        self.sortLineEdit_2.setObjectName("sortLineEdit_2")
        self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.sortLineEdit_2)
        self.testflowLabel_2 = QtWidgets.QLabel(self.formLayoutWidget_3)
        self.testflowLabel_2.setObjectName("testflowLabel_2")
        self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.testflowLabel_2)
        self.packageLineEdit_2 = QtWidgets.QLineEdit(self.formLayoutWidget_3)
        self.packageLineEdit_2.setObjectName("packageLineEdit_2")
        self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.packageLineEdit_2)
        self.programNameLabel_2 = QtWidgets.QLabel(self.formLayoutWidget_3)
        self.programNameLabel_2.setObjectName("programNameLabel_2")
        self.formLayout_4.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.programNameLabel_2)
        self.programNameLineEdit_2 = QtWidgets.QLineEdit(self.formLayoutWidget_3)
        self.programNameLineEdit_2.setReadOnly(True)
        self.programNameLineEdit_2.setObjectName("programNameLineEdit_2")
        self.formLayout_4.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.programNameLineEdit_2)
        self.binDefinationLineEdit_2 = QtWidgets.QLineEdit(self.formLayoutWidget_3)
        self.binDefinationLineEdit_2.setObjectName("binDefinationLineEdit_2")
        self.formLayout_4.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.binDefinationLineEdit_2)
        self.comboBox_2 = QtWidgets.QComboBox(self.formLayoutWidget_3)
        self.comboBox_2.setObjectName("comboBox_2")
        self.comboBox_2.addItem("")
        self.comboBox_2.setItemText(0, "")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.comboBox_2.addItem("")
        self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.comboBox_2)
        self.PB_Package = QtWidgets.QPushButton(self.formLayoutWidget_3)
        self.PB_Package.setObjectName("PB_Package")
        self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.PB_Package)
        self.PB_BinDef = QtWidgets.QPushButton(self.formLayoutWidget_3)
        self.PB_BinDef.setObjectName("PB_BinDef")
        self.formLayout_4.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.PB_BinDef)
        self.Table1 = QtWidgets.QTableWidget(self.groupBox)
        self.Table1.setGeometry(QtCore.QRect(10, 200, 521, 211))
        self.Table1.setMouseTracking(False)
        self.Table1.setTabletTracking(False)
        self.Table1.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.Table1.setObjectName("Table1")
        self.Table1.setColumnCount(5)
        self.Table1.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.Table1.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.Table1.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.Table1.setHorizontalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        self.Table1.setHorizontalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        self.Table1.setHorizontalHeaderItem(4, item)
        self.Table1.horizontalHeader().setDefaultSectionSize(101)
        self.Table1.horizontalHeader().setMinimumSectionSize(15)
        self.Table1.verticalHeader().setDefaultSectionSize(40)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.tabWidget.addTab(self.tab_2, "")
        MainWindow.setCentralWidget(self.centralWidget)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 600, 23))
        self.menuBar.setObjectName("menuBar")
        self.menuUser = QtWidgets.QMenu(self.menuBar)
        self.menuUser.setObjectName("menuUser")
        self.menuLog_in = QtWidgets.QMenu(self.menuUser)
        self.menuLog_in.setObjectName("menuLog_in")
        self.menuHelp = QtWidgets.QMenu(self.menuBar)
        self.menuHelp.setObjectName("menuHelp")
        self.menuFile = QtWidgets.QMenu(self.menuBar)
        self.menuFile.setObjectName("menuFile")
        self.menuOpen = QtWidgets.QMenu(self.menuFile)
        self.menuOpen.setObjectName("menuOpen")
        MainWindow.setMenuBar(self.menuBar)
        self.actionLog_out = QtWidgets.QAction(MainWindow)
        self.actionLog_out.setObjectName("actionLog_out")
        self.actionFor_SE = QtWidgets.QAction(MainWindow)
        self.actionFor_SE.setObjectName("actionFor_SE")
        self.actionFor_Vender = QtWidgets.QAction(MainWindow)
        self.actionFor_Vender.setObjectName("actionFor_Vender")
        self.actionVersion = QtWidgets.QAction(MainWindow)
        self.actionVersion.setObjectName("actionVersion")
        self.actionCheck_Update = QtWidgets.QAction(MainWindow)
        self.actionCheck_Update.setObjectName("actionCheck_Update")
        self.actionClear_All = QtWidgets.QAction(MainWindow)
        self.actionClear_All.setObjectName("actionClear_All")
        self.actionProduction_Load_File = QtWidgets.QAction(MainWindow)
        self.actionProduction_Load_File.setObjectName("actionProduction_Load_File")
        self.actionSWT_File = QtWidgets.QAction(MainWindow)
        self.actionSWT_File.setObjectName("actionSWT_File")
        self.actionSave = QtWidgets.QAction(MainWindow)
        self.actionSave.setObjectName("actionSave")
        self.actionSave_As = QtWidgets.QAction(MainWindow)
        self.actionSave_As.setObjectName("actionSave_As")
        self.actionPath_Configre = QtWidgets.QAction(MainWindow)
        self.actionPath_Configre.setObjectName("actionPath_Configre")
        self.actionroot = QtWidgets.QAction(MainWindow)
        self.actionroot.setObjectName("actionroot")
        self.menuLog_in.addAction(self.actionFor_SE)
        self.menuLog_in.addAction(self.actionFor_Vender)
        self.menuLog_in.addSeparator()
        self.menuLog_in.addAction(self.actionroot)
        self.menuUser.addAction(self.menuLog_in.menuAction())
        self.menuUser.addAction(self.actionLog_out)
        self.menuUser.addSeparator()
        self.menuHelp.addAction(self.actionPath_Configre)
        self.menuHelp.addSeparator()
        self.menuHelp.addAction(self.actionCheck_Update)
        self.menuHelp.addAction(self.actionVersion)
        self.menuOpen.addAction(self.actionProduction_Load_File)
        self.menuOpen.addAction(self.actionSWT_File)
        self.menuFile.addAction(self.menuOpen.menuAction())
        self.menuFile.addAction(self.actionClear_All)
        self.menuFile.addAction(self.actionSave)
        self.menuFile.addAction(self.actionSave_As)
        self.menuBar.addAction(self.menuFile.menuAction())
        self.menuBar.addAction(self.menuUser.menuAction())
        self.menuBar.addAction(self.menuHelp.menuAction())
        self.label_10.setBuddy(self.LE_SMIC_Prod_ID)
        self.label_11.setBuddy(self.LE_Tester_Directory)
        self.label_15.setBuddy(self.LE_Grid_Xmax)
        self.label_16.setBuddy(self.LE_Grid_Ymax)
        self.label_18.setBuddy(self.LE_Grid_Ymin)
        self.label_19.setBuddy(self.LE_Grid_Ymin)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Exemplo n.º 18
0
 def stop_button_settings(self):
     self.stop_button = QtWidgets.QPushButton("Stop")
     self.stop_button.setStyleSheet("background-color: red")
     self.stop_button.setFixedHeight(70)
     self.stop_button.clicked.connect(self.button_click)
Exemplo n.º 19
0
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.rssi.setFont(font)
        self.rssi.setAlignment(QtCore.Qt.AlignCenter)
        self.rssi.setObjectName("rssi")
        self.gridLayout.addWidget(self.rssi, 0, 0, 1, 1)

        self.retranslateUi(WWind)
        QtCore.QMetaObject.connectSlotsByName(WWind)

    def retranslateUi(self, WWind):
        _translate = QtCore.QCoreApplication.translate
        WWind.setWindowTitle(_translate("WWind", "Form"))
        self.voltage.setText(_translate("WWind", "12.6 V"))
        self.WindInfo.setText(
            _translate("WWind", "Wind : 6.2m/s, 10°, No rain"))
        self.Elapsedtime.setText(_translate("WWind", "Elapsed time : "))
        self.btn_clear.setText(_translate("WWind", "X"))
        self.rssi.setText(_translate("WWind", "90%, 90%"))


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    WWind = QtWidgets.QWidget()
    ui = Ui_WWind()
    ui.setupUi(WWind)
    WWind.show()
    sys.exit(app.exec_())
Exemplo n.º 20
0
 def image_viewer(self):
     hoops_visual = QtGui.QPixmap("hooplayout.PNG")
     hoops_visual = hoops_visual.scaled(512, 512, QtCore.Qt.KeepAspectRatio)
     label_hoops = QtWidgets.QLabel(self)
     label_hoops.setPixmap(hoops_visual)
     return label_hoops
Exemplo n.º 21
0
    def setupUi(self, WWind):
        WWind.setObjectName("WWind")
        WWind.resize(389, 26)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(WWind.sizePolicy().hasHeightForWidth())
        WWind.setSizePolicy(sizePolicy)
        self.gridLayout = QtWidgets.QGridLayout(WWind)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setSpacing(0)
        self.gridLayout.setObjectName("gridLayout")
        self.voltage = QtWidgets.QLabel(WWind)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.voltage.sizePolicy().hasHeightForWidth())
        self.voltage.setSizePolicy(sizePolicy)
        self.voltage.setMinimumSize(QtCore.QSize(75, 0))
        self.voltage.setMaximumSize(QtCore.QSize(35, 16777215))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.voltage.setFont(font)
        self.voltage.setAlignment(QtCore.Qt.AlignCenter)
        self.voltage.setObjectName("voltage")
        self.gridLayout.addWidget(self.voltage, 0, 1, 1, 1)
        self.WindInfo = QtWidgets.QLabel(WWind)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.WindInfo.sizePolicy().hasHeightForWidth())
        self.WindInfo.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.WindInfo.setFont(font)
        self.WindInfo.setAlignment(QtCore.Qt.AlignCenter)
        self.WindInfo.setObjectName("WindInfo")
        self.gridLayout.addWidget(self.WindInfo, 0, 2, 1, 1)
        self.Elapsedtime = QtWidgets.QLabel(WWind)
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.Elapsedtime.setFont(font)
        self.Elapsedtime.setObjectName("Elapsedtime")
        self.gridLayout.addWidget(self.Elapsedtime, 0, 3, 1, 1)
        self.btn_clear = QtWidgets.QPushButton(WWind)
        self.btn_clear.setMaximumSize(QtCore.QSize(19, 16777215))
        self.btn_clear.setObjectName("btn_clear")
        self.gridLayout.addWidget(self.btn_clear, 0, 4, 1, 1)
        self.rssi = QtWidgets.QLabel(WWind)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.rssi.sizePolicy().hasHeightForWidth())
        self.rssi.setSizePolicy(sizePolicy)
        self.rssi.setMinimumSize(QtCore.QSize(65, 0))
        self.rssi.setMaximumSize(QtCore.QSize(35, 16777215))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.rssi.setFont(font)
        self.rssi.setAlignment(QtCore.Qt.AlignCenter)
        self.rssi.setObjectName("rssi")
        self.gridLayout.addWidget(self.rssi, 0, 0, 1, 1)

        self.retranslateUi(WWind)
        QtCore.QMetaObject.connectSlotsByName(WWind)
Exemplo n.º 22
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(840, 480)
        self.formLayout = QtWidgets.QFormLayout(Form)
        self.formLayout.setObjectName("formLayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(Form)
        self.label.setMinimumSize(QtCore.QSize(180, 80))
        self.label.setMaximumSize(QtCore.QSize(180, 16777215))
        self.label.setStyleSheet("background-color: rgb(255, 255, 255);\n"
                                 "font: 12pt \"微软雅黑\";")
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.service_image_path = QtWidgets.QTextEdit(Form)
        self.service_image_path.setMinimumSize(QtCore.QSize(0, 80))
        self.service_image_path.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(85, 85, 255);\n"
            "font: 12pt \"微软雅黑\";")
        self.service_image_path.setObjectName("service_image_path")
        self.horizontalLayout.addWidget(self.service_image_path)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setMinimumSize(QtCore.QSize(180, 80))
        self.label_2.setMaximumSize(QtCore.QSize(180, 16777215))
        self.label_2.setStyleSheet("background-color: rgb(255, 255, 255);\n"
                                   "font: 12pt \"微软雅黑\";")
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_5.addWidget(self.label_2)
        self.work_image_path = QtWidgets.QTextEdit(Form)
        self.work_image_path.setMinimumSize(QtCore.QSize(0, 80))
        self.work_image_path.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(85, 85, 255);\n"
            "font: 12pt \"微软雅黑\";")
        self.work_image_path.setObjectName("work_image_path")
        self.horizontalLayout_5.addWidget(self.work_image_path)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(Form)
        self.label_3.setMinimumSize(QtCore.QSize(180, 80))
        self.label_3.setMaximumSize(QtCore.QSize(180, 16777215))
        self.label_3.setStyleSheet("background-color: rgb(255, 255, 255);\n"
                                   "font: 12pt \"微软雅黑\";")
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.recommend_image_path = QtWidgets.QTextEdit(Form)
        self.recommend_image_path.setMinimumSize(QtCore.QSize(0, 80))
        self.recommend_image_path.setStyleSheet(
            "background-color: rgb(255, 255, 255);\n"
            "color: rgb(85, 85, 255);\n"
            "font: 12pt \"微软雅黑\";")
        self.recommend_image_path.setObjectName("recommend_image_path")
        self.horizontalLayout_3.addWidget(self.recommend_image_path)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.frame = QtWidgets.QFrame(Form)
        self.frame.setMinimumSize(QtCore.QSize(0, 120))
        self.frame.setMaximumSize(QtCore.QSize(16777215, 120))
        self.frame.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.service_url_1 = QtWidgets.QRadioButton(self.frame)
        self.service_url_1.setGeometry(QtCore.QRect(20, 0, 720, 40))
        self.service_url_1.setStyleSheet("font: 12pt \"微软雅黑\";\n"
                                         "color: rgb(85, 85, 255);")
        self.service_url_1.setObjectName("service_url_1")
        self.service_url_2 = QtWidgets.QRadioButton(self.frame)
        self.service_url_2.setGeometry(QtCore.QRect(20, 40, 720, 40))
        self.service_url_2.setStyleSheet("font: 12pt \"微软雅黑\";\n"
                                         "color: rgb(85, 85, 255);")
        self.service_url_2.setObjectName("service_url_2")
        self.service_url_3 = QtWidgets.QRadioButton(self.frame)
        self.service_url_3.setGeometry(QtCore.QRect(20, 80, 720, 40))
        self.service_url_3.setStyleSheet("font: 12pt \"微软雅黑\";\n"
                                         "color: rgb(85, 85, 255);")
        self.service_url_3.setObjectName("service_url_3")
        self.horizontalLayout_2.addWidget(self.frame)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.frame_2 = QtWidgets.QFrame(Form)
        self.frame_2.setMinimumSize(QtCore.QSize(120, 50))
        self.frame_2.setMaximumSize(QtCore.QSize(120, 50))
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.reset_button = QtWidgets.QPushButton(self.frame_2)
        self.reset_button.setGeometry(QtCore.QRect(0, 10, 120, 40))
        self.reset_button.setMinimumSize(QtCore.QSize(120, 40))
        self.reset_button.setMaximumSize(QtCore.QSize(120, 40))
        self.reset_button.setStyleSheet(
            "background-color: rgb(255, 85, 127);\n"
            "color: rgb(255, 255, 255);\n"
            "font: 12pt \"微软雅黑\";")
        self.reset_button.setObjectName("reset_button")
        self.horizontalLayout_4.addWidget(self.frame_2)
        self.frame_3 = QtWidgets.QFrame(Form)
        self.frame_3.setMinimumSize(QtCore.QSize(0, 50))
        self.frame_3.setMaximumSize(QtCore.QSize(16777215, 50))
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.horizontalLayout_4.addWidget(self.frame_3)
        self.frame_6 = QtWidgets.QFrame(Form)
        self.frame_6.setMinimumSize(QtCore.QSize(120, 50))
        self.frame_6.setMaximumSize(QtCore.QSize(120, 50))
        self.frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.run_button = QtWidgets.QPushButton(self.frame_6)
        self.run_button.setGeometry(QtCore.QRect(0, 10, 120, 40))
        self.run_button.setMinimumSize(QtCore.QSize(120, 40))
        self.run_button.setMaximumSize(QtCore.QSize(120, 40))
        self.run_button.setStyleSheet("background-color: rgb(85, 85, 255);\n"
                                      "color: rgb(255, 255, 255);\n"
                                      "font: 12pt \"微软雅黑\";")
        self.run_button.setObjectName("run_button")
        self.horizontalLayout_4.addWidget(self.frame_6)
        self.frame_5 = QtWidgets.QFrame(Form)
        self.frame_5.setMinimumSize(QtCore.QSize(0, 50))
        self.frame_5.setMaximumSize(QtCore.QSize(16777215, 50))
        self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.horizontalLayout_4.addWidget(self.frame_5)
        self.frame_8 = QtWidgets.QFrame(Form)
        self.frame_8.setMinimumSize(QtCore.QSize(120, 50))
        self.frame_8.setMaximumSize(QtCore.QSize(120, 50))
        self.frame_8.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_8.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_8.setObjectName("frame_8")
        self.analysis_recommend_button = QtWidgets.QPushButton(self.frame_8)
        self.analysis_recommend_button.setGeometry(QtCore.QRect(
            0, 10, 120, 40))
        self.analysis_recommend_button.setMinimumSize(QtCore.QSize(120, 40))
        self.analysis_recommend_button.setMaximumSize(QtCore.QSize(120, 40))
        self.analysis_recommend_button.setStyleSheet(
            "background-color: rgb(85, 85, 255);\n"
            "color: rgb(255, 255, 255);\n"
            "font: 12pt \"微软雅黑\";")
        self.analysis_recommend_button.setObjectName(
            "analysis_recommend_button")
        self.horizontalLayout_4.addWidget(self.frame_8)
        self.frame_7 = QtWidgets.QFrame(Form)
        self.frame_7.setMinimumSize(QtCore.QSize(0, 50))
        self.frame_7.setMaximumSize(QtCore.QSize(16777215, 50))
        self.frame_7.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_7.setObjectName("frame_7")
        self.horizontalLayout_4.addWidget(self.frame_7)
        self.frame_4 = QtWidgets.QFrame(Form)
        self.frame_4.setMinimumSize(QtCore.QSize(120, 50))
        self.frame_4.setMaximumSize(QtCore.QSize(120, 50))
        self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.log_button = QtWidgets.QPushButton(self.frame_4)
        self.log_button.setGeometry(QtCore.QRect(0, 10, 120, 40))
        self.log_button.setMinimumSize(QtCore.QSize(120, 40))
        self.log_button.setMaximumSize(QtCore.QSize(120, 40))
        self.log_button.setStyleSheet("background-color: rgb(85, 85, 255);\n"
                                      "color: rgb(255, 255, 255);\n"
                                      "font: 12pt \"微软雅黑\";")
        self.log_button.setObjectName("log_button")
        self.horizontalLayout_4.addWidget(self.frame_4)
        self.frame_9 = QtWidgets.QFrame(Form)
        self.frame_9.setMinimumSize(QtCore.QSize(0, 50))
        self.frame_9.setMaximumSize(QtCore.QSize(16777215, 50))
        self.frame_9.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_9.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_9.setObjectName("frame_9")
        self.horizontalLayout_4.addWidget(self.frame_9)
        self.frame_10 = QtWidgets.QFrame(Form)
        self.frame_10.setMinimumSize(QtCore.QSize(120, 50))
        self.frame_10.setMaximumSize(QtCore.QSize(120, 50))
        self.frame_10.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_10.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_10.setObjectName("frame_10")
        self.log_button_2 = QtWidgets.QPushButton(self.frame_10)
        self.log_button_2.setGeometry(QtCore.QRect(0, 10, 120, 40))
        self.log_button_2.setMinimumSize(QtCore.QSize(120, 40))
        self.log_button_2.setMaximumSize(QtCore.QSize(120, 40))
        self.log_button_2.setStyleSheet("background-color: rgb(85, 85, 255);\n"
                                        "color: rgb(255, 255, 255);\n"
                                        "font: 12pt \"微软雅黑\";")
        self.log_button_2.setObjectName("log_button_2")
        self.horizontalLayout_4.addWidget(self.frame_10)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.formLayout.setLayout(0, QtWidgets.QFormLayout.SpanningRole,
                                  self.verticalLayout)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Exemplo n.º 23
0
        self.gridLayout.addWidget(self.formatMenu, 3, 0, 1, 1)

        self.retranslateUi(studyModeDialog)
        QtCore.QMetaObject.connectSlotsByName(studyModeDialog)

    def retranslateUi(self, studyModeDialog):
        _translate = QtCore.QCoreApplication.translate
        studyModeDialog.setWindowTitle(_translate("studyModeDialog", "Etude"))
        self.chapterLabel.setText(_translate("studyModeDialog", "Chapitre"))
        self.displayQA.setHtml(_translate("studyModeDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Comic Sans MS\'; font-size:12pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:7.8pt;\">Question</span></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:7.8pt;\"><br /></p></body></html>"))
        self.stopButton.setText(_translate("studyModeDialog", "Arrêter"))
        self.counterLabel.setText(_translate("studyModeDialog", "1/12"))
        self.validateQButton.setText(_translate("studyModeDialog", "Valider"))
        self.needWorkButton.setText(_translate("studyModeDialog", "A revoir"))
        self.viewAnswerButton.setText(_translate("studyModeDialog", "Voir réponse"))


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    studyModeDialog = QtWidgets.QDialog()
    ui = Ui_studyModeDialog()
    ui.setupUi(studyModeDialog)
    studyModeDialog.show()
    sys.exit(app.exec_())
Exemplo n.º 24
0
def main():
    planes_dict = readFile()

    app = QtWidgets.QApplication([])
    start = Start(planes_dict)
    sys.exit(app.exec())
Exemplo n.º 25
0
    def setupUi(self, studyModeDialog):
        studyModeDialog.setObjectName("studyModeDialog")
        studyModeDialog.resize(800, 500)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("images/book.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        studyModeDialog.setWindowIcon(icon)
        studyModeDialog.setLayoutDirection(QtCore.Qt.LeftToRight)
        studyModeDialog.setStyleSheet("QDialog{\n"
"background-color :qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(255, 255, 255, 255), stop:0.905028 rgba(200, 190, 255, 255));} \n"
"")
        self.gridLayout = QtWidgets.QGridLayout(studyModeDialog)
        self.gridLayout.setContentsMargins(20, 20, 20, 20)
        self.gridLayout.setHorizontalSpacing(20)
        self.gridLayout.setObjectName("gridLayout")
        self.editButton = QtWidgets.QPushButton(studyModeDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.editButton.sizePolicy().hasHeightForWidth())
        self.editButton.setSizePolicy(sizePolicy)
        self.editButton.setMinimumSize(QtCore.QSize(0, 50))
        self.editButton.setMaximumSize(QtCore.QSize(50, 50))
        font = QtGui.QFont()
        font.setFamily("Comic Sans MS")
        font.setPointSize(12)
        self.editButton.setFont(font)
        self.editButton.setStyleSheet("QPushButton{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(185, 132, 255, 255), stop:0.212435 rgba(156, 105, 204, 255), stop:0.41573 rgba(157, 95, 184, 255), stop:0.623596 rgba(134, 67, 136, 255), stop:0.766839 rgba(118, 59, 125, 255), stop:1 rgba(104, 61, 99, 255));\n"
"color:white;\n"
"border: 1px solid gray; \n"
"border-radius: 8px; \n"
"padding: 0 8px; \n"
"selection-background-color: darkgray; }\n"
"\n"
"QPushButton:pressed{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(104, 74, 143, 255), stop:0.212435 rgba(99, 67, 130, 255), stop:0.41573 rgba(97, 58, 114, 255), stop:0.621762 rgba(90, 47, 91, 255), stop:0.766839 rgba(87, 43, 92, 255), stop:1 rgba(68, 40, 65, 255));\n"
"}")
        self.editButton.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("images/edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.editButton.setIcon(icon1)
        self.editButton.setIconSize(QtCore.QSize(25, 25))
        self.editButton.setObjectName("editButton")
        self.gridLayout.addWidget(self.editButton, 2, 0, 1, 1)
        self.chapterLabel = QtWidgets.QLabel(studyModeDialog)
        font = QtGui.QFont()
        font.setFamily("Comic Sans MS")
        font.setPointSize(12)
        self.chapterLabel.setFont(font)
        self.chapterLabel.setObjectName("chapterLabel")
        self.gridLayout.addWidget(self.chapterLabel, 0, 0, 1, 2)
        self.validateChangeButton = QtWidgets.QPushButton(studyModeDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.validateChangeButton.sizePolicy().hasHeightForWidth())
        self.validateChangeButton.setSizePolicy(sizePolicy)
        self.validateChangeButton.setMaximumSize(QtCore.QSize(50, 50))
        font = QtGui.QFont()
        font.setFamily("Comic Sans MS")
        font.setPointSize(12)
        self.validateChangeButton.setFont(font)
        self.validateChangeButton.setStyleSheet("QPushButton{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(185, 132, 255, 255), stop:0.212435 rgba(156, 105, 204, 255), stop:0.41573 rgba(157, 95, 184, 255), stop:0.623596 rgba(134, 67, 136, 255), stop:0.766839 rgba(118, 59, 125, 255), stop:1 rgba(104, 61, 99, 255));\n"
"color:white;\n"
"border: 1px solid gray; \n"
"border-radius: 8px; \n"
"padding: 0 8px; \n"
"selection-background-color: darkgray; }\n"
"\n"
"QPushButton:pressed{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(104, 74, 143, 255), stop:0.212435 rgba(99, 67, 130, 255), stop:0.41573 rgba(97, 58, 114, 255), stop:0.621762 rgba(90, 47, 91, 255), stop:0.766839 rgba(87, 43, 92, 255), stop:1 rgba(68, 40, 65, 255));\n"
"}")
        self.validateChangeButton.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("images/transparent-check-right-2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.validateChangeButton.setIcon(icon2)
        self.validateChangeButton.setIconSize(QtCore.QSize(30, 30))
        self.validateChangeButton.setObjectName("validateChangeButton")
        self.gridLayout.addWidget(self.validateChangeButton, 4, 0, 1, 1)
        self.displayQA = QtWidgets.QTextEdit(studyModeDialog)
        font = QtGui.QFont()
        font.setFamily("Comic Sans MS")
        font.setPointSize(12)
        self.displayQA.setFont(font)
        self.displayQA.setStyleSheet("QTextEdit{\n"
"background-color: transparent; \n"
"}")
        self.displayQA.setReadOnly(True)
        self.displayQA.setObjectName("displayQA")
        self.gridLayout.addWidget(self.displayQA, 1, 1, 6, 3)
        self.cancelChangeButton = QtWidgets.QPushButton(studyModeDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cancelChangeButton.sizePolicy().hasHeightForWidth())
        self.cancelChangeButton.setSizePolicy(sizePolicy)
        self.cancelChangeButton.setMaximumSize(QtCore.QSize(50, 50))
        self.cancelChangeButton.setStyleSheet("QPushButton{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 120, 120, 255), stop:0.217617 rgba(204, 96, 96, 255), stop:0.41573 rgba(184, 85, 85, 255), stop:0.623596 rgba(129, 61, 61, 255), stop:0.769663 rgba(108, 43, 43, 255), stop:1 rgba(80, 39, 39, 255));\n"
"color:white;\n"
"border: 1px solid gray; \n"
"border-radius: 8px; \n"
"padding: 0 8px; \n"
"selection-background-color: darkgray; }\n"
"\n"
"QPushButton:Pressed{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(151, 71, 71, 255), stop:0.217617 rgba(138, 65, 65, 255), stop:0.41573 rgba(127, 58, 58, 255), stop:0.623596 rgba(102, 48, 48, 255), stop:0.769663 rgba(92, 37, 37, 255), stop:1 rgba(71, 34, 34, 255));\n"
"}\n"
"")
        self.cancelChangeButton.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("images/delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cancelChangeButton.setIcon(icon3)
        self.cancelChangeButton.setIconSize(QtCore.QSize(25, 25))
        self.cancelChangeButton.setObjectName("cancelChangeButton")
        self.gridLayout.addWidget(self.cancelChangeButton, 5, 0, 1, 1)
        self.stopButton = QtWidgets.QPushButton(studyModeDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stopButton.sizePolicy().hasHeightForWidth())
        self.stopButton.setSizePolicy(sizePolicy)
        self.stopButton.setMaximumSize(QtCore.QSize(120, 16777215))
        font = QtGui.QFont()
        font.setFamily("Comic Sans MS")
        font.setPointSize(12)
        self.stopButton.setFont(font)
        self.stopButton.setStyleSheet("QPushButton{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 120, 120, 255), stop:0.217617 rgba(204, 96, 96, 255), stop:0.41573 rgba(184, 85, 85, 255), stop:0.623596 rgba(129, 61, 61, 255), stop:0.769663 rgba(108, 43, 43, 255), stop:1 rgba(80, 39, 39, 255));\n"
"color:white;\n"
"border: 1px solid gray; \n"
"border-radius: 8px; \n"
"padding: 0 8px; \n"
"selection-background-color: darkgray; }\n"
"\n"
"QPushButton:Pressed{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(151, 71, 71, 255), stop:0.217617 rgba(138, 65, 65, 255), stop:0.41573 rgba(127, 58, 58, 255), stop:0.623596 rgba(102, 48, 48, 255), stop:0.769663 rgba(92, 37, 37, 255), stop:1 rgba(71, 34, 34, 255));\n"
"}\n"
"")
        self.stopButton.setIcon(icon3)
        self.stopButton.setObjectName("stopButton")
        self.gridLayout.addWidget(self.stopButton, 0, 3, 1, 1)
        self.counterLabel = QtWidgets.QLabel(studyModeDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.counterLabel.sizePolicy().hasHeightForWidth())
        self.counterLabel.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily("Comic Sans MS")
        font.setPointSize(12)
        self.counterLabel.setFont(font)
        self.counterLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.counterLabel.setObjectName("counterLabel")
        self.gridLayout.addWidget(self.counterLabel, 1, 0, 1, 1)
        self.validateQButton = QtWidgets.QPushButton(studyModeDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.validateQButton.sizePolicy().hasHeightForWidth())
        self.validateQButton.setSizePolicy(sizePolicy)
        self.validateQButton.setMaximumSize(QtCore.QSize(200, 16777215))
        font = QtGui.QFont()
        font.setFamily("Comic Sans MS")
        font.setPointSize(11)
        self.validateQButton.setFont(font)
        self.validateQButton.setStyleSheet("QPushButton{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(120, 255, 170, 255), stop:0.217617 rgba(96, 204, 103, 255), stop:0.41573 rgba(94, 184, 85, 255), stop:0.623596 rgba(64, 129, 61, 255), stop:0.769663 rgba(43, 108, 44, 255), stop:1 rgba(39, 80, 41, 255));\n"
"color:white;\n"
"border: 1px solid gray; \n"
"border-radius: 8px; \n"
"padding: 0 8px; \n"
"selection-background-color: darkgray; }\n"
"\n"
"QPushButton:Pressed{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(65, 138, 92, 255), stop:0.217617 rgba(60, 128, 64, 255), stop:0.41573 rgba(59, 115, 53, 255), stop:0.623596 rgba(44, 89, 42, 255), stop:0.769663 rgba(29, 75, 31, 255), stop:1 rgba(27, 55, 28, 255));\n"
"}")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap("images/happySmile.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.validateQButton.setIcon(icon4)
        self.validateQButton.setObjectName("validateQButton")
        self.gridLayout.addWidget(self.validateQButton, 7, 1, 1, 1)
        self.needWorkButton = QtWidgets.QPushButton(studyModeDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.needWorkButton.sizePolicy().hasHeightForWidth())
        self.needWorkButton.setSizePolicy(sizePolicy)
        self.needWorkButton.setMinimumSize(QtCore.QSize(200, 0))
        self.needWorkButton.setMaximumSize(QtCore.QSize(200, 16777215))
        font = QtGui.QFont()
        font.setFamily("Comic Sans MS")
        font.setPointSize(11)
        self.needWorkButton.setFont(font)
        self.needWorkButton.setStyleSheet("QPushButton{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 120, 120, 255), stop:0.217617 rgba(204, 96, 96, 255), stop:0.41573 rgba(184, 85, 85, 255), stop:0.623596 rgba(129, 61, 61, 255), stop:0.769663 rgba(108, 43, 43, 255), stop:1 rgba(80, 39, 39, 255));\n"
"color:white;\n"
"border: 1px solid gray; \n"
"border-radius: 8px; \n"
"padding: 0 8px; \n"
"selection-background-color: darkgray; }\n"
"\n"
"QPushButton:Pressed{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(151, 71, 71, 255), stop:0.217617 rgba(138, 65, 65, 255), stop:0.41573 rgba(127, 58, 58, 255), stop:0.623596 rgba(102, 48, 48, 255), stop:0.769663 rgba(92, 37, 37, 255), stop:1 rgba(71, 34, 34, 255));\n"
"}\n"
"")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap("images/sadSmiley.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.needWorkButton.setIcon(icon5)
        self.needWorkButton.setObjectName("needWorkButton")
        self.gridLayout.addWidget(self.needWorkButton, 7, 2, 1, 1)
        self.viewAnswerButton = QtWidgets.QPushButton(studyModeDialog)
        font = QtGui.QFont()
        font.setFamily("Comic Sans MS")
        font.setPointSize(12)
        self.viewAnswerButton.setFont(font)
        self.viewAnswerButton.setStyleSheet("QPushButton{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(185, 132, 255, 255), stop:0.212435 rgba(156, 105, 204, 255), stop:0.41573 rgba(157, 95, 184, 255), stop:0.623596 rgba(134, 67, 136, 255), stop:0.766839 rgba(118, 59, 125, 255), stop:1 rgba(104, 61, 99, 255));\n"
"color:white;\n"
"border: 1px solid gray; \n"
"border-radius: 8px; \n"
"padding: 0 8px; \n"
"selection-background-color: darkgray; }\n"
"\n"
"QPushButton:pressed{\n"
"background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(104, 74, 143, 255), stop:0.212435 rgba(99, 67, 130, 255), stop:0.41573 rgba(97, 58, 114, 255), stop:0.621762 rgba(90, 47, 91, 255), stop:0.766839 rgba(87, 43, 92, 255), stop:1 rgba(68, 40, 65, 255));\n"
"}")
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap("images/MGlogo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.viewAnswerButton.setIcon(icon6)
        self.viewAnswerButton.setObjectName("viewAnswerButton")
        self.gridLayout.addWidget(self.viewAnswerButton, 7, 3, 1, 1)
        self.formatMenu = QtWidgets.QComboBox(studyModeDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.formatMenu.sizePolicy().hasHeightForWidth())
        self.formatMenu.setSizePolicy(sizePolicy)
        self.formatMenu.setMaximumSize(QtCore.QSize(50, 25))
        self.formatMenu.setObjectName("formatMenu")
        self.formatMenu.addItem("")
        self.formatMenu.setItemText(0, "")
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap("images/bold.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.formatMenu.addItem(icon7, "")
        self.formatMenu.setItemText(1, "")
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap("images/underline.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.formatMenu.addItem(icon8, "")
        self.formatMenu.setItemText(2, "")
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap("images/italic.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.formatMenu.addItem(icon9, "")
        self.formatMenu.setItemText(3, "")
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap("images/strikeOut.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.formatMenu.addItem(icon10, "")
        self.formatMenu.setItemText(4, "")
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap("images/highlight.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.formatMenu.addItem(icon11, "")
        self.formatMenu.setItemText(5, "")
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap("images/redSquare.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.formatMenu.addItem(icon12, "")
        self.formatMenu.setItemText(6, "")
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap("images/greenSquare.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.formatMenu.addItem(icon13, "")
        self.formatMenu.setItemText(7, "")
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap("images/purpleSquare.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.formatMenu.addItem(icon14, "")
        self.formatMenu.setItemText(8, "")
        self.gridLayout.addWidget(self.formatMenu, 3, 0, 1, 1)

        self.retranslateUi(studyModeDialog)
        QtCore.QMetaObject.connectSlotsByName(studyModeDialog)
Exemplo n.º 26
0
    def setup(self, Events, superadmin):
        Events.setObjectName("Events")
        Events.resize(1366, 768)
        self.centralwidget = QtWidgets.QWidget(Events)
        self.centralwidget.setObjectName("centralwidget")
        self.title = QtWidgets.QLabel(self.centralwidget)
        self.title.setGeometry(QtCore.QRect(550, 20, 255, 70))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.title.sizePolicy().hasHeightForWidth())
        self.title.setSizePolicy(sizePolicy)
        self.title.setMinimumSize(QtCore.QSize(0, 50))
        self.title.setMaximumSize(QtCore.QSize(400, 70))
        self.title.setStyleSheet("background-color: rgb(85, 170, 255);")
        self.title.setObjectName("title")
        self.logout = QtWidgets.QPushButton(self.centralwidget)
        self.logout.setGeometry(QtCore.QRect(1240, 10, 101, 91))
        self.logout.setStyleSheet("border:none;")
        self.logout.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("../MDTouch/Images/logout.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.logout.setIcon(icon)
        self.logout.setIconSize(QtCore.QSize(80, 80))
        self.logout.setObjectName("logout")
        self.back = QtWidgets.QPushButton(self.centralwidget)
        self.back.setGeometry(QtCore.QRect(30, 0, 101, 100))
        self.back.setStyleSheet("border:none;")
        self.back.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("../MDTouch/Images/back.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.back.setIcon(icon1)
        self.back.setIconSize(QtCore.QSize(80, 80))
        self.back.setObjectName("back")
        self.frame = QtWidgets.QFrame(self.centralwidget)
        self.frame.setGeometry(QtCore.QRect(0, 100, 1371, 80))
        self.frame.setStyleSheet("background-color: rgb(85, 255, 127);")
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayoutWidget_3 = QtWidgets.QWidget(self.frame)
        self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(120, 0, 1131, 80))
        self.horizontalLayoutWidget_3.setObjectName("horizontalLayoutWidget_3")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_3)
        self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.hospitals = QtWidgets.QPushButton(self.horizontalLayoutWidget_3)
        self.hospitals.setMaximumSize(QtCore.QSize(80, 80))
        self.hospitals.setStyleSheet("border:none;")
        self.hospitals.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("../MDTouch/Images/hospital.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.hospitals.setIcon(icon2)
        self.hospitals.setIconSize(QtCore.QSize(50, 50))
        self.hospitals.setObjectName("hospitals")
        self.horizontalLayout_4.addWidget(self.hospitals)
        self.events = QtWidgets.QPushButton(self.horizontalLayoutWidget_3)
        self.events.setMaximumSize(QtCore.QSize(80, 80))
        self.events.setStyleSheet("background-color: rgb(255, 255, 127);\n"
"border:none;")
        self.events.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("../MDTouch/Images/event.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.events.setIcon(icon3)
        self.events.setIconSize(QtCore.QSize(50, 50))
        self.events.setObjectName("events")
        self.horizontalLayout_4.addWidget(self.events)
        self.bloodBank = QtWidgets.QPushButton(self.horizontalLayoutWidget_3)
        self.bloodBank.setMaximumSize(QtCore.QSize(80, 80))
        self.bloodBank.setStyleSheet("border:none;")
        self.bloodBank.setText("")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap("../MDTouch/Images/bloodbank.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.bloodBank.setIcon(icon4)
        self.bloodBank.setIconSize(QtCore.QSize(50, 50))
        self.bloodBank.setObjectName("bloodBank")
        self.horizontalLayout_4.addWidget(self.bloodBank)
        self.testCenters = QtWidgets.QPushButton(self.horizontalLayoutWidget_3)
        self.testCenters.setMaximumSize(QtCore.QSize(80, 80))
        self.testCenters.setStyleSheet("border:none;")
        self.testCenters.setText("")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap("../MDTouch/Images/test_2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.testCenters.setIcon(icon5)
        self.testCenters.setIconSize(QtCore.QSize(50, 50))
        self.testCenters.setObjectName("testCenters")
        self.horizontalLayout_4.addWidget(self.testCenters)
        self.doctors = QtWidgets.QPushButton(self.horizontalLayoutWidget_3)
        self.doctors.setMaximumSize(QtCore.QSize(80, 80))
        self.doctors.setStyleSheet("border:none;")
        self.doctors.setText("")
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap("../MDTouch/Images/doctor.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.doctors.setIcon(icon6)
        self.doctors.setIconSize(QtCore.QSize(50, 50))
        self.doctors.setObjectName("doctors")
        self.horizontalLayout_4.addWidget(self.doctors)
        self.dispensary = QtWidgets.QPushButton(self.horizontalLayoutWidget_3)
        self.dispensary.setMaximumSize(QtCore.QSize(80, 80))
        self.dispensary.setStyleSheet("border:none;")
        self.dispensary.setText("")
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap("../MDTouch/Images/dispensary.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.dispensary.setIcon(icon7)
        self.dispensary.setIconSize(QtCore.QSize(50, 50))
        self.dispensary.setObjectName("dispensary")
        self.horizontalLayout_4.addWidget(self.dispensary)
        self.emergency = QtWidgets.QPushButton(self.horizontalLayoutWidget_3)
        self.emergency.setMaximumSize(QtCore.QSize(80, 80))
        self.emergency.setStyleSheet("border:none;")
        self.emergency.setText("")
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap("../MDTouch/Images/ambulance.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.emergency.setIcon(icon8)
        self.emergency.setIconSize(QtCore.QSize(50, 50))
        self.emergency.setObjectName("emergency")
        self.horizontalLayout_4.addWidget(self.emergency)
        self.deleteEventLabel = QtWidgets.QLabel(self.centralwidget)
        self.deleteEventLabel.setGeometry(QtCore.QRect(980, 370, 112, 80))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.deleteEventLabel.sizePolicy().hasHeightForWidth())
        self.deleteEventLabel.setSizePolicy(sizePolicy)
        self.deleteEventLabel.setObjectName("deleteEventLabel")
        self.horizontalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(40, 230, 1291, 151))
        self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.addEvent = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.addEvent.setMaximumSize(QtCore.QSize(120, 120))
        self.addEvent.setStyleSheet("border:none;")
        self.addEvent.setText("")
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap("../MDTouch/Images/add_event.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.addEvent.setIcon(icon9)
        self.addEvent.setIconSize(QtCore.QSize(100, 100))
        self.addEvent.setObjectName("addEvent")
        self.horizontalLayout.addWidget(self.addEvent)
        self.viewEvents = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.viewEvents.sizePolicy().hasHeightForWidth())
        self.viewEvents.setSizePolicy(sizePolicy)
        self.viewEvents.setMaximumSize(QtCore.QSize(120, 120))
        self.viewEvents.setStyleSheet("border:none;")
        self.viewEvents.setText("")
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap("../MDTouch/Images/search_hospital.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.viewEvents.setIcon(icon10)
        self.viewEvents.setIconSize(QtCore.QSize(100, 100))
        self.viewEvents.setObjectName("viewEvents")
        self.horizontalLayout.addWidget(self.viewEvents)
        self.deleteEvent = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.deleteEvent.setMaximumSize(QtCore.QSize(120, 120))
        self.deleteEvent.setStyleSheet("border:none;")
        self.deleteEvent.setText("")
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap("../MDTouch/Images/delete_event.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.deleteEvent.setIcon(icon11)
        self.deleteEvent.setIconSize(QtCore.QSize(100, 100))
        self.deleteEvent.setObjectName("deleteEvent")
        self.horizontalLayout.addWidget(self.deleteEvent)
        self.addEventLabel = QtWidgets.QLabel(self.centralwidget)
        self.addEventLabel.setGeometry(QtCore.QRect(260, 370, 126, 80))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.addEventLabel.sizePolicy().hasHeightForWidth())
        self.addEventLabel.setSizePolicy(sizePolicy)
        self.addEventLabel.setObjectName("addEventLabel")
        self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.centralwidget)
        self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(210, 520, 1011, 161))
        self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_2)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.eventStatistics = QtWidgets.QPushButton(self.horizontalLayoutWidget_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.eventStatistics.sizePolicy().hasHeightForWidth())
        self.eventStatistics.setSizePolicy(sizePolicy)
        self.eventStatistics.setMaximumSize(QtCore.QSize(120, 120))
        self.eventStatistics.setStyleSheet("border:none;")
        self.eventStatistics.setText("")
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap("../MDTouch/Images/statistics.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.eventStatistics.setIcon(icon12)
        self.eventStatistics.setIconSize(QtCore.QSize(100, 100))
        self.eventStatistics.setObjectName("eventStatistics")
        self.horizontalLayout_2.addWidget(self.eventStatistics)
        self.broadcast = QtWidgets.QPushButton(self.horizontalLayoutWidget_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.broadcast.sizePolicy().hasHeightForWidth())
        self.broadcast.setSizePolicy(sizePolicy)
        self.broadcast.setMaximumSize(QtCore.QSize(120, 120))
        self.broadcast.setStyleSheet("border:none;")
        self.broadcast.setText("")
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap("../MDTouch/Images/broadcast.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.broadcast.setIcon(icon13)
        self.broadcast.setIconSize(QtCore.QSize(100, 100))
        self.broadcast.setObjectName("broadcast")
        self.horizontalLayout_2.addWidget(self.broadcast)
        self.eventStatisticsLabel = QtWidgets.QLabel(self.centralwidget)
        self.eventStatisticsLabel.setGeometry(QtCore.QRect(460, 660, 145, 81))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.eventStatisticsLabel.sizePolicy().hasHeightForWidth())
        self.eventStatisticsLabel.setSizePolicy(sizePolicy)
        self.eventStatisticsLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.eventStatisticsLabel.setObjectName("eventStatisticsLabel")
        self.viewEventsLabel = QtWidgets.QLabel(self.centralwidget)
        self.viewEventsLabel.setGeometry(QtCore.QRect(620, 370, 126, 80))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.viewEventsLabel.sizePolicy().hasHeightForWidth())
        self.viewEventsLabel.setSizePolicy(sizePolicy)
        self.viewEventsLabel.setObjectName("viewEventsLabel")
        self.broadcastLabel = QtWidgets.QLabel(self.centralwidget)
        self.broadcastLabel.setGeometry(QtCore.QRect(820, 660, 161, 61))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.broadcastLabel.sizePolicy().hasHeightForWidth())
        self.broadcastLabel.setSizePolicy(sizePolicy)
        self.broadcastLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.broadcastLabel.setObjectName("broadcastLabel")
        self.inbox = QtWidgets.QPushButton(self.centralwidget)
        self.inbox.setGeometry(QtCore.QRect(1130, 0, 80, 80))
        self.inbox.setMaximumSize(QtCore.QSize(100, 100))
        self.inbox.setStyleSheet("border:none;")
        self.inbox.setText("")
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap("../MDTouch/Images/inbox.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.inbox.setIcon(icon15)
        self.inbox.setIconSize(QtCore.QSize(80, 80))
        self.inbox.setObjectName("inbox")
        Events.setCentralWidget(self.centralwidget)

        self.retranslateUi(Events, superadmin)
        QtCore.QMetaObject.connectSlotsByName(Events)
Exemplo n.º 27
0
    def __init__(self, parent=None):
        # super这个用法是调用父类的构造函数
        # parent=None表示默认没有父Widget,如果指定父亲Widget,则调用之
        super(FirstWindow, self).__init__(parent)
        self.setWindowTitle("桌宠设定")
        # self.setupUi()
        self.resize(500, 150)
        layout = QVBoxLayout()

        self.rb1 = QRadioButton("拉普兰德")
        layout.addWidget(self.rb1)
        self.rb1.setChecked(True)
        self.rb2 = QRadioButton("幽灵鲨")
        layout.addWidget(self.rb2)
        self.buttonGroup1 = QtWidgets.QButtonGroup()
        self.buttonGroup1.addButton(self.rb1)
        self.buttonGroup1.addButton(self.rb2)

        self.label = QLabel('不透明度')
        self.label.setAlignment(Qt.AlignLeft)
        layout.addWidget(self.label)

        self.slider = QSlider(Qt.Horizontal)
        self.slider.setMinimum(10)
        self.slider.setMaximum(100)
        self.slider.setSingleStep(10)
        self.slider.setValue(50)
        self.slider.setTickPosition(QSlider.TicksBelow)
        self.slider.setTickInterval(10)
        layout.addWidget(self.slider)

        self.checkBox1 = QCheckBox('鼠标可穿透')
        self.checkBox1.setChecked(False)
        #self.checkBox1.stateChanged.connect(lambda:self.checkboxState(self.checkBox1))
        layout.addWidget(self.checkBox1)

        self.rb3 = QRadioButton("站立")
        layout.addWidget(self.rb3)
        self.rb3.setChecked(True)
        self.rb4 = QRadioButton("坐下")
        layout.addWidget(self.rb4)
        self.rb5 = QRadioButton("睡觉")
        layout.addWidget(self.rb5)
        self.buttonGroup2 = QtWidgets.QButtonGroup()
        self.buttonGroup2.addButton(self.rb3)
        self.buttonGroup2.addButton(self.rb4)
        self.buttonGroup2.addButton(self.rb5)

        self.btn1 = QToolButton(self)
        self.btn1.setText("确认")
        self.btn1.clicked.connect(self.pbMin)
        self.btn1.clicked.connect(self.readandrun)
        self.btn1.clicked.connect(lambda: self.btn1.setEnabled(False))
        layout.addWidget(self.btn1)

        # self.btn2 = QToolButton(self)
        # self.btn2.setText("消除")
        # layout.addWidget(self.btn2)

        self.btn3 = QToolButton(self)
        self.btn3.setText("更改")
        self.btn3.clicked.connect(self.adjustandrun)
        layout.addWidget(self.btn3)

        self.setLayout(layout)
        self.close_signal.connect(self.close)
Exemplo n.º 28
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(531, 460)
        MainWindow.setStyleSheet("*{\n"
                                 "font-family: segoe ui;\n"
                                 "}\n"
                                 "QLabel{\n"
                                 "font-size: 15px;\n"
                                 "color: white;\n"
                                 "}\n"
                                 "QFrame{\n"
                                 "background: #444;\n"
                                 "}\n"
                                 "QPushButton{\n"
                                 "color: #444;\n"
                                 "border-radius: 15px;\n"
                                 "background:white;\n"
                                 "font-size: 30px;\n"
                                 "}\n"
                                 "QToolButton{\n"
                                 "background: transparent;\n"
                                 "border:none;\n"
                                 "}\n"
                                 "QPushButton:hover{\n"
                                 "background: #444;\n"
                                 "color: white;\n"
                                 "border-color: white;\n"
                                 "border-radius: 15px;\n"
                                 "}\n"
                                 "QLineEdit{\n"
                                 "background:transparent;\n"
                                 "color: #717072;\n"
                                 "border: none;\n"
                                 "border-bottom: 1px solid;\n"
                                 "border-color: #717072;\n"
                                 "font-size: 30px;\n"
                                 "}")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.frame_2 = QtWidgets.QFrame(self.centralwidget)
        self.frame_2.setGeometry(QtCore.QRect(0, 0, 531, 461))
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.usernameLine = QtWidgets.QLineEdit(self.frame_2)
        self.usernameLine.setGeometry(QtCore.QRect(40, 310, 461, 61))
        self.usernameLine.setText("")
        self.usernameLine.setEchoMode(QtWidgets.QLineEdit.Password)
        self.usernameLine.setCursorPosition(0)
        self.usernameLine.setObjectName("usernameLine")
        self.passwordLine = QtWidgets.QLineEdit(self.frame_2)
        self.passwordLine.setGeometry(QtCore.QRect(40, 220, 461, 61))
        self.passwordLine.setText("")
        self.passwordLine.setCursorPosition(0)
        self.passwordLine.setObjectName("passwordLine")
        self.registerButton = QtWidgets.QPushButton(self.frame_2)
        self.registerButton.setGeometry(QtCore.QRect(290, 380, 181, 51))
        self.registerButton.setObjectName("registerButton")
        self.loginButton = QtWidgets.QPushButton(self.frame_2)
        self.loginButton.setGeometry(QtCore.QRect(50, 380, 181, 51))
        self.loginButton.setObjectName("loginButton")
        self.label = QtWidgets.QLabel(self.frame_2)
        self.label.setGeometry(QtCore.QRect(70, 0, 381, 171))
        self.label.setStyleSheet("")
        self.label.setText("")
        self.label.setPixmap(QtGui.QPixmap("easy_blanco.svg"))
        self.label.setObjectName("label")
        self.usernameLabel = QtWidgets.QLabel(self.frame_2)
        self.usernameLabel.setGeometry(QtCore.QRect(40, 201, 191, 20))
        self.usernameLabel.setObjectName("usernameLabel")
        self.passwordLabel = QtWidgets.QLabel(self.frame_2)
        self.passwordLabel.setGeometry(QtCore.QRect(40, 291, 191, 20))
        self.passwordLabel.setObjectName("passwordLabel")
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Exemplo n.º 29
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(640, 700)
        MainWindow.setMaximumSize(QtCore.QSize(640, 700))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(220, 30, 181, 41))
        self.label.setStyleSheet("font: 75 24pt \"Monospace\";")
        self.label.setObjectName("label")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(10, 80, 621, 31))
        self.pushButton.setObjectName("pushButton")
        self.pushButton.clicked.connect(self.filemanager)
        self.graphicsView = QtWidgets.QGraphicsView(self.centralwidget)
        self.graphicsView.setGeometry(QtCore.QRect(20, 120, 601, 271))
        self.graphicsView.setObjectName("graphicsView")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(270, 400, 100, 31))
        self.pushButton_2.setObjectName("pushButton_2")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 640, 25))
        self.menubar.setObjectName("menubar")
        self.menuMenu = QtWidgets.QMenu(self.menubar)
        self.menuMenu.setObjectName("menuMenu")
        self.menuAbout = QtWidgets.QMenu(self.menubar)
        self.menuAbout.setObjectName("menuAbout")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionOpen_FIle = QtWidgets.QAction(MainWindow)
        self.actionOpen_FIle.setObjectName("actionOpen_FIle")
        self.actionQR_code = QtWidgets.QAction(MainWindow)
        self.actionQR_code.setObjectName("actionQR_code")
        self.actionAbout_Image_OCR = QtWidgets.QAction(MainWindow)
        self.actionAbout_Image_OCR.setObjectName("actionAbout_Image_OCR")
        self.actionAbout_Us = QtWidgets.QAction(MainWindow)
        self.actionAbout_Us.setObjectName("actionAbout_Us")
        self.menuMenu.addAction(self.actionOpen_FIle)
        self.menuMenu.addAction(self.actionQR_code)
        self.menuAbout.addAction(self.actionAbout_Image_OCR)
        self.menuAbout.addAction(self.actionAbout_Us)
        self.menubar.addAction(self.menuMenu.menuAction())
        self.menubar.addAction(self.menuAbout.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Exemplo n.º 30
0
	def __init__(self):
		QtWidgets.__init__(self,master)
		self.setGeometry(400,300,250,250)
Exemplo n.º 31
0
        self.button_home.setObjectName("button_home")
        self.horizontalLayout_2.addWidget(self.button_home)
        self.verticalLayout.addLayout(self.horizontalLayout_2)

        self.retranslateUi(Problem)
        QtCore.QMetaObject.connectSlotsByName(Problem)

    def retranslateUi(self, Problem):
        _translate = QtCore.QCoreApplication.translate
        Problem.setWindowTitle(_translate("Problem", "Form"))
        self.title.setText(_translate("Problem", "Problems"))
        self.score.setText(_translate("Problem", "Score: 0/0"))
        self.score_percent.setText(_translate("Problem", "0%"))
        self.button_new.setText(_translate("Problem", "New"))
        self.button_check.setToolTip(_translate("Problem", "<html><head/><body><p>Please note that your answer is checked by a computer which lacks the intuition of a human and may be incorrect</p></body></html>"))
        self.button_check.setText(_translate("Problem", "Check"))
        self.button_back.setText(_translate("Problem", "Back"))
        self.button_help.setText(_translate("Problem", "Help"))
        self.button_home.setText(_translate("Problem", "Home"))
from PyQt5.QtSvg import QSvgWidget


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    Problem = QtWidgets.QWidget()
    ui = Ui_Problem()
    ui.setupUi(Problem)
    Problem.show()
    sys.exit(app.exec_())