コード例 #1
0
    def setupUi(self, WebWindow):
        WebWindow.setObjectName("WebWindow")
        WebWindow.resize(800, 600)
        self.centralwidget = QtWidgets.QWidget(WebWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setSpacing(0)
        self.gridLayout.setObjectName("gridLayout")
        WebWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(WebWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 30))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        WebWindow.setMenuBar(self.menubar)
        self.actionHome = QtGui.QAction(WebWindow)
        self.actionHome.setObjectName("actionHome")
        self.actionBack = QtGui.QAction(WebWindow)
        self.actionBack.setObjectName("actionBack")
        self.actionNext = QtGui.QAction(WebWindow)
        self.actionNext.setObjectName("actionNext")
        self.menuFile.addAction(self.actionHome)
        self.menuFile.addAction(self.actionBack)
        self.menuFile.addAction(self.actionNext)
        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(WebWindow)
        QtCore.QMetaObject.connectSlotsByName(WebWindow)
コード例 #2
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(317, 171)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setObjectName("pushButton")
        self.verticalLayout.addWidget(self.pushButton)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 317, 24))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName("actionQuit")
        self.menuFile.addAction(self.actionQuit)
        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
コード例 #3
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuReports = QtWidgets.QMenu(self.menubar)
        self.menuReports.setObjectName("menuReports")
        self.menuSettings = QtWidgets.QMenu(self.menubar)
        self.menuSettings.setObjectName("menuSettings")
        self.menuFInd_Device = QtWidgets.QMenu(self.menuSettings)
        self.menuFInd_Device.setObjectName("menuFInd_Device")
        self.menudevice = QtWidgets.QMenu(self.menubar)
        self.menudevice.setObjectName("menudevice")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.action_New_cofig = QtGui.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap("Gui\\../../../../Downloads/BlackArch_logo.png"),
            QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On)
        self.action_New_cofig.setIcon(icon)
        self.action_New_cofig.setObjectName("action_New_cofig")
        self.actionOpen_config = QtGui.QAction(MainWindow)
        self.actionOpen_config.setObjectName("actionOpen_config")
        self.actionClose = QtGui.QAction(MainWindow)
        self.actionClose.setObjectName("actionClose")
        self.actionNew_Device = QtGui.QAction(MainWindow)
        self.actionNew_Device.setObjectName("actionNew_Device")
        self.actionMobile_Device = QtGui.QAction(MainWindow)
        self.actionMobile_Device.setObjectName("actionMobile_Device")
        self.actionDoc = QtGui.QAction(MainWindow)
        self.actionDoc.setObjectName("actionDoc")
        self.actionupload_confing = QtGui.QAction(MainWindow)
        self.actionupload_confing.setObjectName("actionupload_confing")
        self.menuFile.addAction(self.action_New_cofig)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionOpen_config)
        self.menuFInd_Device.addAction(self.actionNew_Device)
        self.menuFInd_Device.addSeparator()
        self.menuFInd_Device.addAction(self.actionMobile_Device)
        self.menuSettings.addAction(self.menuFInd_Device.menuAction())
        self.menuSettings.addSeparator()
        self.menuSettings.addAction(self.actionDoc)
        self.menudevice.addAction(self.actionupload_confing)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuReports.menuAction())
        self.menubar.addAction(self.menuSettings.menuAction())
        self.menubar.addAction(self.menudevice.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
コード例 #4
0
    def addCharLeaf(self, menu, value, menuitem_note=None):
        """
        Adds character item to menu
        """
        menuitem_text = f"{menuitem_note}: [{value}]" if menuitem_note else value
        vaction = QtGui.QAction(menuitem_text, menu, checkable=False)
        vaction.setData(value)
        menu.addAction(vaction)
        vaction.setFont(self.leaf_font)

        vaction.triggered.connect(self.charTriggered)
        vaction.hovered.connect(self.charHovered)
コード例 #5
0
ファイル: window.py プロジェクト: jehenninger/zbow
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1271, 856)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_15 = QtWidgets.QLabel(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Preferred,
            QtWidgets.QSizePolicy.Policy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_15.sizePolicy().hasHeightForWidth())
        self.label_15.setSizePolicy(sizePolicy)
        self.label_15.setObjectName("label_15")
        self.verticalLayout.addWidget(self.label_15)
        self.fileLabel = QtWidgets.QLabel(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Preferred,
            QtWidgets.QSizePolicy.Policy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fileLabel.sizePolicy().hasHeightForWidth())
        self.fileLabel.setSizePolicy(sizePolicy)
        self.fileLabel.setText("")
        self.fileLabel.setObjectName("fileLabel")
        self.verticalLayout.addWidget(self.fileLabel)
        self.viewOutliersButton = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.viewOutliersButton.sizePolicy().hasHeightForWidth())
        self.viewOutliersButton.setSizePolicy(sizePolicy)
        self.viewOutliersButton.setObjectName("viewOutliersButton")
        self.verticalLayout.addWidget(self.viewOutliersButton)
        self.removeOutliers = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.removeOutliers.sizePolicy().hasHeightForWidth())
        self.removeOutliers.setSizePolicy(sizePolicy)
        self.removeOutliers.setObjectName("removeOutliers")
        self.verticalLayout.addWidget(self.removeOutliers)
        self.parameterTable = QtWidgets.QTableWidget(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.parameterTable.sizePolicy().hasHeightForWidth())
        self.parameterTable.setSizePolicy(sizePolicy)
        self.parameterTable.setShowGrid(False)
        self.parameterTable.setObjectName("parameterTable")
        self.parameterTable.setColumnCount(0)
        self.parameterTable.setRowCount(0)
        self.parameterTable.horizontalHeader().setStretchLastSection(True)
        self.parameterTable.verticalHeader().setVisible(False)
        self.parameterTable.verticalHeader().setStretchLastSection(False)
        self.verticalLayout.addWidget(self.parameterTable)
        self.updateParams = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.updateParams.sizePolicy().hasHeightForWidth())
        self.updateParams.setSizePolicy(sizePolicy)
        self.updateParams.setObjectName("updateParams")
        self.verticalLayout.addWidget(self.updateParams)
        self.horizontalLayout.addWidget(self.groupBox)
        self.groupBox_4 = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_4.sizePolicy().hasHeightForWidth())
        self.groupBox_4.setSizePolicy(sizePolicy)
        self.groupBox_4.setTitle("")
        self.groupBox_4.setObjectName("groupBox_4")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_4)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox_2 = QtWidgets.QGroupBox(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setAutoFillBackground(True)
        self.groupBox_2.setTitle("")
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.clusterOptionsBox = QtWidgets.QGroupBox(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clusterOptionsBox.sizePolicy().hasHeightForWidth())
        self.clusterOptionsBox.setSizePolicy(sizePolicy)
        self.clusterOptionsBox.setObjectName("clusterOptionsBox")
        self.formLayout = QtWidgets.QFormLayout(self.clusterOptionsBox)
        self.formLayout.setObjectName("formLayout")
        self.label_2 = QtWidgets.QLabel(self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setScaledContents(True)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole,
                                  self.label_2)
        self.clusterSampleSize = QtWidgets.QLineEdit(self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clusterSampleSize.sizePolicy().hasHeightForWidth())
        self.clusterSampleSize.setSizePolicy(sizePolicy)
        self.clusterSampleSize.setObjectName("clusterSampleSize")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole,
                                  self.clusterSampleSize)
        self.label_3 = QtWidgets.QLabel(self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setScaledContents(True)
        self.label_3.setObjectName("label_3")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole,
                                  self.label_3)
        self.clusterOnData = QtWidgets.QComboBox(self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clusterOnData.sizePolicy().hasHeightForWidth())
        self.clusterOnData.setSizePolicy(sizePolicy)
        self.clusterOnData.setObjectName("clusterOnData")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole,
                                  self.clusterOnData)
        self.label_4 = QtWidgets.QLabel(self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setScaledContents(True)
        self.label_4.setObjectName("label_4")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole,
                                  self.label_4)
        self.clusterMinClusterSize = QtWidgets.QLineEdit(
            self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clusterMinClusterSize.sizePolicy().hasHeightForWidth())
        self.clusterMinClusterSize.setSizePolicy(sizePolicy)
        self.clusterMinClusterSize.setObjectName("clusterMinClusterSize")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole,
                                  self.clusterMinClusterSize)
        self.label_5 = QtWidgets.QLabel(self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setScaledContents(True)
        self.label_5.setObjectName("label_5")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole,
                                  self.label_5)
        self.clusterMinSamples = QtWidgets.QLineEdit(self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clusterMinSamples.sizePolicy().hasHeightForWidth())
        self.clusterMinSamples.setSizePolicy(sizePolicy)
        self.clusterMinSamples.setObjectName("clusterMinSamples")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.FieldRole,
                                  self.clusterMinSamples)
        self.clusterPushButton = QtWidgets.QPushButton(self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clusterPushButton.sizePolicy().hasHeightForWidth())
        self.clusterPushButton.setSizePolicy(sizePolicy)
        self.clusterPushButton.setObjectName("clusterPushButton")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.ItemRole.FieldRole,
                                  self.clusterPushButton)
        self.evaluateClusteringCheckBox = QtWidgets.QCheckBox(
            self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.evaluateClusteringCheckBox.sizePolicy().hasHeightForWidth())
        self.evaluateClusteringCheckBox.setSizePolicy(sizePolicy)
        self.evaluateClusteringCheckBox.setObjectName(
            "evaluateClusteringCheckBox")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.ItemRole.FieldRole,
                                  self.evaluateClusteringCheckBox)
        spacerItem = QtWidgets.QSpacerItem(
            20, 40, QtWidgets.QSizePolicy.Policy.Minimum,
            QtWidgets.QSizePolicy.Policy.Expanding)
        self.formLayout.setItem(7, QtWidgets.QFormLayout.ItemRole.FieldRole,
                                spacerItem)
        self.highlightClusterPushButton = QtWidgets.QPushButton(
            self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.highlightClusterPushButton.sizePolicy().hasHeightForWidth())
        self.highlightClusterPushButton.setSizePolicy(sizePolicy)
        self.highlightClusterPushButton.setObjectName(
            "highlightClusterPushButton")
        self.formLayout.setWidget(9, QtWidgets.QFormLayout.ItemRole.FieldRole,
                                  self.highlightClusterPushButton)
        self.joinClusterPushButton = QtWidgets.QPushButton(
            self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.joinClusterPushButton.sizePolicy().hasHeightForWidth())
        self.joinClusterPushButton.setSizePolicy(sizePolicy)
        self.joinClusterPushButton.setObjectName("joinClusterPushButton")
        self.formLayout.setWidget(10, QtWidgets.QFormLayout.ItemRole.FieldRole,
                                  self.joinClusterPushButton)
        self.splitCluster = QtWidgets.QPushButton(self.clusterOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.splitCluster.sizePolicy().hasHeightForWidth())
        self.splitCluster.setSizePolicy(sizePolicy)
        self.splitCluster.setObjectName("splitCluster")
        self.formLayout.setWidget(11, QtWidgets.QFormLayout.ItemRole.FieldRole,
                                  self.splitCluster)
        self.horizontalLayout_2.addWidget(self.clusterOptionsBox)
        self.plotOptionsBox = QtWidgets.QGroupBox(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plotOptionsBox.sizePolicy().hasHeightForWidth())
        self.plotOptionsBox.setSizePolicy(sizePolicy)
        self.plotOptionsBox.setObjectName("plotOptionsBox")
        self.formLayout_2 = QtWidgets.QFormLayout(self.plotOptionsBox)
        self.formLayout_2.setObjectName("formLayout_2")
        self.label_6 = QtWidgets.QLabel(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setScaledContents(True)
        self.label_6.setObjectName("label_6")
        self.formLayout_2.setWidget(0,
                                    QtWidgets.QFormLayout.ItemRole.LabelRole,
                                    self.label_6)
        self.label_7 = QtWidgets.QLabel(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_7.sizePolicy().hasHeightForWidth())
        self.label_7.setSizePolicy(sizePolicy)
        self.label_7.setScaledContents(True)
        self.label_7.setObjectName("label_7")
        self.formLayout_2.setWidget(1,
                                    QtWidgets.QFormLayout.ItemRole.LabelRole,
                                    self.label_7)
        self.scatterColorOption = QtWidgets.QComboBox(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scatterColorOption.sizePolicy().hasHeightForWidth())
        self.scatterColorOption.setSizePolicy(sizePolicy)
        self.scatterColorOption.setObjectName("scatterColorOption")
        self.formLayout_2.setWidget(1,
                                    QtWidgets.QFormLayout.ItemRole.FieldRole,
                                    self.scatterColorOption)
        self.label_8 = QtWidgets.QLabel(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_8.sizePolicy().hasHeightForWidth())
        self.label_8.setSizePolicy(sizePolicy)
        self.label_8.setScaledContents(True)
        self.label_8.setObjectName("label_8")
        self.formLayout_2.setWidget(2,
                                    QtWidgets.QFormLayout.ItemRole.LabelRole,
                                    self.label_8)
        self.scatterScaleOption = QtWidgets.QComboBox(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scatterScaleOption.sizePolicy().hasHeightForWidth())
        self.scatterScaleOption.setSizePolicy(sizePolicy)
        self.scatterScaleOption.setObjectName("scatterScaleOption")
        self.formLayout_2.setWidget(2,
                                    QtWidgets.QFormLayout.ItemRole.FieldRole,
                                    self.scatterScaleOption)
        spacerItem1 = QtWidgets.QSpacerItem(
            20, 40, QtWidgets.QSizePolicy.Policy.Minimum,
            QtWidgets.QSizePolicy.Policy.Expanding)
        self.formLayout_2.setItem(3, QtWidgets.QFormLayout.ItemRole.LabelRole,
                                  spacerItem1)
        self.label_9 = QtWidgets.QLabel(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setScaledContents(True)
        self.label_9.setObjectName("label_9")
        self.formLayout_2.setWidget(4,
                                    QtWidgets.QFormLayout.ItemRole.LabelRole,
                                    self.label_9)
        self.label_10 = QtWidgets.QLabel(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setScaledContents(True)
        self.label_10.setObjectName("label_10")
        self.formLayout_2.setWidget(5,
                                    QtWidgets.QFormLayout.ItemRole.LabelRole,
                                    self.label_10)
        self.ternColorOption = QtWidgets.QComboBox(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ternColorOption.sizePolicy().hasHeightForWidth())
        self.ternColorOption.setSizePolicy(sizePolicy)
        self.ternColorOption.setObjectName("ternColorOption")
        self.formLayout_2.setWidget(5,
                                    QtWidgets.QFormLayout.ItemRole.FieldRole,
                                    self.ternColorOption)
        self.label_11 = QtWidgets.QLabel(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_11.sizePolicy().hasHeightForWidth())
        self.label_11.setSizePolicy(sizePolicy)
        self.label_11.setScaledContents(True)
        self.label_11.setObjectName("label_11")
        self.formLayout_2.setWidget(6,
                                    QtWidgets.QFormLayout.ItemRole.LabelRole,
                                    self.label_11)
        self.ternScaleOption = QtWidgets.QComboBox(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ternScaleOption.sizePolicy().hasHeightForWidth())
        self.ternScaleOption.setSizePolicy(sizePolicy)
        self.ternScaleOption.setObjectName("ternScaleOption")
        self.formLayout_2.setWidget(6,
                                    QtWidgets.QFormLayout.ItemRole.FieldRole,
                                    self.ternScaleOption)
        spacerItem2 = QtWidgets.QSpacerItem(
            20, 40, QtWidgets.QSizePolicy.Policy.Minimum,
            QtWidgets.QSizePolicy.Policy.Expanding)
        self.formLayout_2.setItem(7, QtWidgets.QFormLayout.ItemRole.LabelRole,
                                  spacerItem2)
        self.label = QtWidgets.QLabel(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setScaledContents(True)
        self.label.setObjectName("label")
        self.formLayout_2.setWidget(8,
                                    QtWidgets.QFormLayout.ItemRole.LabelRole,
                                    self.label)
        self.giniCoeff = QtWidgets.QTextBrowser(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.giniCoeff.sizePolicy().hasHeightForWidth())
        self.giniCoeff.setSizePolicy(sizePolicy)
        self.giniCoeff.setMaximumSize(QtCore.QSize(100, 30))
        self.giniCoeff.setObjectName("giniCoeff")
        self.formLayout_2.setWidget(8,
                                    QtWidgets.QFormLayout.ItemRole.FieldRole,
                                    self.giniCoeff)
        self.label_12 = QtWidgets.QLabel(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_12.sizePolicy().hasHeightForWidth())
        self.label_12.setSizePolicy(sizePolicy)
        self.label_12.setScaledContents(True)
        self.label_12.setObjectName("label_12")
        self.formLayout_2.setWidget(9,
                                    QtWidgets.QFormLayout.ItemRole.LabelRole,
                                    self.label_12)
        self.shannonEntropy = QtWidgets.QTextBrowser(self.plotOptionsBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.shannonEntropy.sizePolicy().hasHeightForWidth())
        self.shannonEntropy.setSizePolicy(sizePolicy)
        self.shannonEntropy.setMaximumSize(QtCore.QSize(100, 30))
        self.shannonEntropy.setObjectName("shannonEntropy")
        self.formLayout_2.setWidget(9,
                                    QtWidgets.QFormLayout.ItemRole.FieldRole,
                                    self.shannonEntropy)
        self.horizontalLayout_2.addWidget(self.plotOptionsBox)
        self.verticalLayout_2.addWidget(self.groupBox_2)
        self.clusterInformationBox = QtWidgets.QGroupBox(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clusterInformationBox.sizePolicy().hasHeightForWidth())
        self.clusterInformationBox.setSizePolicy(sizePolicy)
        self.clusterInformationBox.setObjectName("clusterInformationBox")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(
            self.clusterInformationBox)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.clusterInformationTable = QtWidgets.QTableWidget(
            self.clusterInformationBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clusterInformationTable.sizePolicy().hasHeightForWidth())
        self.clusterInformationTable.setSizePolicy(sizePolicy)
        self.clusterInformationTable.setEditTriggers(
            QtWidgets.QAbstractItemView.EditTrigger.DoubleClicked)
        self.clusterInformationTable.setShowGrid(False)
        self.clusterInformationTable.setObjectName("clusterInformationTable")
        self.clusterInformationTable.setColumnCount(0)
        self.clusterInformationTable.setRowCount(0)
        self.clusterInformationTable.horizontalHeader().setStretchLastSection(
            True)
        self.clusterInformationTable.verticalHeader().setVisible(False)
        self.clusterInformationTable.verticalHeader().setStretchLastSection(
            False)
        self.verticalLayout_3.addWidget(self.clusterInformationTable)
        self.verticalLayout_2.addWidget(self.clusterInformationBox)
        self.progressBar = QtWidgets.QProgressBar(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.progressBar.sizePolicy().hasHeightForWidth())
        self.progressBar.setSizePolicy(sizePolicy)
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")
        self.verticalLayout_2.addWidget(self.progressBar)
        self.horizontalLayout.addWidget(self.groupBox_4)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1271, 22))
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.menubar.sizePolicy().hasHeightForWidth())
        self.menubar.setSizePolicy(sizePolicy)
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuData_processing = QtWidgets.QMenu(self.menubar)
        self.menuData_processing.setObjectName("menuData_processing")
        self.menuTools = QtWidgets.QMenu(self.menubar)
        self.menuTools.setObjectName("menuTools")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionLoad = QtGui.QAction(MainWindow)
        self.actionLoad.setObjectName("actionLoad")
        self.actionSave = QtGui.QAction(MainWindow)
        self.actionSave.setObjectName("actionSave")
        self.actionClear = QtGui.QAction(MainWindow)
        self.actionClear.setObjectName("actionClear")
        self.actionRestore = QtGui.QAction(MainWindow)
        self.actionRestore.setObjectName("actionRestore")
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName("actionQuit")
        self.actionLoadClusteringSolution = QtGui.QAction(MainWindow)
        self.actionLoadClusteringSolution.setObjectName(
            "actionLoadClusteringSolution")
        self.actionMake_cluster_plots = QtGui.QAction(MainWindow)
        self.actionMake_cluster_plots.setObjectName("actionMake_cluster_plots")
        self.menuFile.addAction(self.actionLoad)
        self.menuFile.addAction(self.actionLoadClusteringSolution)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionSave)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionClear)
        self.menuFile.addSeparator()
        self.menuData_processing.addAction(self.actionRestore)
        self.menuTools.addAction(self.actionMake_cluster_plots)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuData_processing.menuAction())
        self.menubar.addAction(self.menuTools.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
コード例 #6
0
ファイル: mainwindow.py プロジェクト: pyphil/WLAN-Codes
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(327, 286)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(".\\ui\\../images/icon.ico"),
                       QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.tabWidget.setFont(font)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.tab)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setPointSize(24)
        font.setBold(True)
        self.label.setFont(font)
        self.label.setStyleSheet("background-color: rgb(238, 246, 255);")
        self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.pushButton = QtWidgets.QPushButton(self.tab)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        self.pushButton.setFont(font)
        self.pushButton.setDefault(True)
        self.pushButton.setObjectName("pushButton")
        self.verticalLayout.addWidget(self.pushButton)
        self.pushButton_2 = QtWidgets.QPushButton(self.tab)
        self.pushButton_2.setEnabled(False)
        self.pushButton_2.setObjectName("pushButton_2")
        self.verticalLayout.addWidget(self.pushButton_2)
        self.pushButton_3 = QtWidgets.QPushButton(self.tab)
        self.pushButton_3.setEnabled(False)
        self.pushButton_3.setObjectName("pushButton_3")
        self.verticalLayout.addWidget(self.pushButton_3)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_2)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.tableWidget = QtWidgets.QTableWidget(self.tab_2)
        self.tableWidget.setAlternatingRowColors(True)
        self.tableWidget.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
        self.tableWidget.setRowCount(0)
        self.tableWidget.setColumnCount(2)
        self.tableWidget.setObjectName("tableWidget")
        self.tableWidget.horizontalHeader().setCascadingSectionResizes(False)
        self.tableWidget.horizontalHeader().setDefaultSectionSize(126)
        self.tableWidget.horizontalHeader().setStretchLastSection(True)
        self.verticalLayout_2.addWidget(self.tableWidget)
        self.pushButton_4 = QtWidgets.QPushButton(self.tab_2)
        self.pushButton_4.setEnabled(False)
        self.pushButton_4.setObjectName("pushButton_4")
        self.verticalLayout_2.addWidget(self.pushButton_4)
        self.pushButton_5 = QtWidgets.QPushButton(self.tab_2)
        self.pushButton_5.setEnabled(False)
        self.pushButton_5.setObjectName("pushButton_5")
        self.verticalLayout_2.addWidget(self.pushButton_5)
        self.tabWidget.addTab(self.tab_2, "")
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 327, 22))
        self.menubar.setObjectName("menubar")
        self.menudatei = QtWidgets.QMenu(self.menubar)
        self.menudatei.setObjectName("menudatei")
        self.menuHilfe = QtWidgets.QMenu(self.menubar)
        self.menuHilfe.setObjectName("menuHilfe")
        self.menuBearbeiten = QtWidgets.QMenu(self.menubar)
        self.menuBearbeiten.setObjectName("menuBearbeiten")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        font = QtGui.QFont()
        font.setPointSize(7)
        font.setItalic(False)
        self.statusbar.setFont(font)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionCodes_importieren = QtGui.QAction(MainWindow)
        self.actionCodes_importieren.setObjectName("actionCodes_importieren")
        self.actionBeenden = QtGui.QAction(MainWindow)
        self.actionBeenden.setObjectName("actionBeenden")
        self.actionInfo = QtGui.QAction(MainWindow)
        self.actionInfo.setObjectName("actionInfo")
        self.actionEinstellungen = QtGui.QAction(MainWindow)
        self.actionEinstellungen.setObjectName("actionEinstellungen")
        self.menudatei.addAction(self.actionCodes_importieren)
        self.menudatei.addAction(self.actionBeenden)
        self.menuHilfe.addAction(self.actionInfo)
        self.menuBearbeiten.addAction(self.actionEinstellungen)
        self.menubar.addAction(self.menudatei.menuAction())
        self.menubar.addAction(self.menuBearbeiten.menuAction())
        self.menubar.addAction(self.menuHilfe.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
コード例 #7
0
    def setupUi(self, signalGeneratorMainWindow):
        signalGeneratorMainWindow.setObjectName("signalGeneratorMainWindow")
        signalGeneratorMainWindow.resize(685, 567)
        self.centralwidget = QtWidgets.QWidget(signalGeneratorMainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(250, 0, 71, 16))
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(0, 30, 31, 21))
        self.label_2.setObjectName("label_2")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setGeometry(QtCore.QRect(0, 70, 81, 16))
        self.label_3.setObjectName("label_3")
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setGeometry(QtCore.QRect(0, 110, 101, 21))
        self.label_4.setObjectName("label_4")
        self.urlLineEdit = QtWidgets.QLineEdit(self.centralwidget)
        self.urlLineEdit.setGeometry(QtCore.QRect(30, 30, 621, 21))
        self.urlLineEdit.setObjectName("urlLineEdit")
        self.btnCalculateSignal = QtWidgets.QCommandLinkButton(
            self.centralwidget)
        self.btnCalculateSignal.setGeometry(QtCore.QRect(540, 90, 141, 31))
        self.btnCalculateSignal.setObjectName("btnCalculateSignal")
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(0, 130, 681, 16))
        self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line.setObjectName("line")
        self.signalTypeComboBox = QtWidgets.QComboBox(self.centralwidget)
        self.signalTypeComboBox.setGeometry(QtCore.QRect(110, 70, 161, 21))
        self.signalTypeComboBox.setObjectName("signalTypeComboBox")
        self.exportFormatComboBox = QtWidgets.QComboBox(self.centralwidget)
        self.exportFormatComboBox.setGeometry(QtCore.QRect(110, 110, 81, 21))
        self.exportFormatComboBox.setObjectName("exportFormatComboBox")
        self.graphicsView = QtWidgets.QGraphicsView(self.centralwidget)
        self.graphicsView.setGeometry(QtCore.QRect(-15, 141, 701, 381))
        self.graphicsView.setObjectName("graphicsView")
        signalGeneratorMainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(signalGeneratorMainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 685, 20))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuSettings = QtWidgets.QMenu(self.menubar)
        self.menuSettings.setObjectName("menuSettings")
        self.menuHelp = QtWidgets.QMenu(self.menubar)
        self.menuHelp.setObjectName("menuHelp")
        signalGeneratorMainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(signalGeneratorMainWindow)
        self.statusbar.setObjectName("statusbar")
        signalGeneratorMainWindow.setStatusBar(self.statusbar)
        self.actionNew = QtGui.QAction(signalGeneratorMainWindow)
        self.actionNew.setObjectName("actionNew")
        self.actionOpen = QtGui.QAction(signalGeneratorMainWindow)
        self.actionOpen.setObjectName("actionOpen")
        self.actionSave = QtGui.QAction(signalGeneratorMainWindow)
        self.actionSave.setObjectName("actionSave")
        self.actionSave_All = QtGui.QAction(signalGeneratorMainWindow)
        self.actionSave_All.setObjectName("actionSave_All")
        self.actionAbout = QtGui.QAction(signalGeneratorMainWindow)
        self.actionAbout.setObjectName("actionAbout")
        self.actionQuit = QtGui.QAction(signalGeneratorMainWindow)
        self.actionQuit.setObjectName("actionQuit")
        self.actionPreferences = QtGui.QAction(signalGeneratorMainWindow)
        self.actionPreferences.setObjectName("actionPreferences")
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionNew)
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addAction(self.actionSave)
        self.menuFile.addAction(self.actionSave_All)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionQuit)
        self.menuSettings.addAction(self.actionPreferences)
        self.menuHelp.addAction(self.actionAbout)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuSettings.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(signalGeneratorMainWindow)
        QtCore.QMetaObject.connectSlotsByName(signalGeneratorMainWindow)
コード例 #8
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(672, 431)
        MainWindow.setIconSize(QtCore.QSize(200, 200))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.tableView = QtWidgets.QTableView(self.centralwidget)
        self.tableView.setGeometry(QtCore.QRect(10, 80, 651, 271))
        self.tableView.setObjectName("tableView")
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setGeometry(QtCore.QRect(180, 10, 231, 60))
        self.groupBox.setObjectName("groupBox")
        self.comboBox = QtWidgets.QComboBox(self.groupBox)
        self.comboBox.setGeometry(QtCore.QRect(10, 20, 211, 31))
        self.comboBox.setObjectName("comboBox")
        self.createButton = QtWidgets.QToolButton(self.centralwidget)
        self.createButton.setGeometry(QtCore.QRect(10, 10, 41, 61))
        self.createButton.setLayoutDirection(
            QtCore.Qt.LayoutDirection.LeftToRight)
        self.createButton.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("ui\\../img/create.png"),
                       QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.createButton.setIcon(icon)
        self.createButton.setIconSize(QtCore.QSize(34, 50))
        self.createButton.setObjectName("createButton")
        self.readButton = QtWidgets.QToolButton(self.centralwidget)
        self.readButton.setGeometry(QtCore.QRect(50, 10, 41, 61))
        self.readButton.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("ui\\../img/read.png"),
                        QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.readButton.setIcon(icon1)
        self.readButton.setIconSize(QtCore.QSize(34, 50))
        self.readButton.setObjectName("readButton")
        self.deleteButton = QtWidgets.QToolButton(self.centralwidget)
        self.deleteButton.setGeometry(QtCore.QRect(130, 10, 41, 61))
        self.deleteButton.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("ui\\../img/delete.png"),
                        QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.deleteButton.setIcon(icon2)
        self.deleteButton.setIconSize(QtCore.QSize(34, 50))
        self.deleteButton.setObjectName("deleteButton")
        self.updateButton = QtWidgets.QToolButton(self.centralwidget)
        self.updateButton.setGeometry(QtCore.QRect(90, 10, 41, 61))
        self.updateButton.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("ui\\../img/update.png"),
                        QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.updateButton.setIcon(icon3)
        self.updateButton.setIconSize(QtCore.QSize(34, 50))
        self.updateButton.setObjectName("updateButton")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 672, 31))
        self.menubar.setObjectName("menubar")
        self.menu = QtWidgets.QMenu(self.menubar)
        self.menu.setObjectName("menu")
        self.menu_2 = QtWidgets.QMenu(self.menubar)
        self.menu_2.setObjectName("menu_2")
        self.menu_3 = QtWidgets.QMenu(self.menubar)
        self.menu_3.setObjectName("menu_3")
        self.menu_4 = QtWidgets.QMenu(self.menubar)
        self.menu_4.setObjectName("menu_4")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.action = QtGui.QAction(MainWindow)
        self.action.setObjectName("action")
        self.action_2 = QtGui.QAction(MainWindow)
        self.action_2.setObjectName("action_2")
        self.action_3 = QtGui.QAction(MainWindow)
        self.action_3.setObjectName("action_3")
        self.action_4 = QtGui.QAction(MainWindow)
        self.action_4.setObjectName("action_4")
        self.action_5 = QtGui.QAction(MainWindow)
        self.action_5.setObjectName("action_5")
        self.action_6 = QtGui.QAction(MainWindow)
        self.action_6.setObjectName("action_6")
        self.action_7 = QtGui.QAction(MainWindow)
        self.action_7.setObjectName("action_7")
        self.action_8 = QtGui.QAction(MainWindow)
        self.action_8.setObjectName("action_8")
        self.action_9 = QtGui.QAction(MainWindow)
        self.action_9.setObjectName("action_9")
        self.action_1 = QtGui.QAction(MainWindow)
        self.action_1.setObjectName("action_1")
        self.action_10 = QtGui.QAction(MainWindow)
        self.action_10.setObjectName("action_10")
        self.action_11 = QtGui.QAction(MainWindow)
        self.action_11.setObjectName("action_11")
        self.action_12 = QtGui.QAction(MainWindow)
        self.action_12.setObjectName("action_12")
        self.menu.addAction(self.action_8)
        self.menu_2.addAction(self.action)
        self.menu_2.addAction(self.action_2)
        self.menu_2.addAction(self.action_3)
        self.menu_2.addAction(self.action_4)
        self.menu_2.addAction(self.action_5)
        self.menu_3.addAction(self.action_6)
        self.menu_3.addAction(self.action_7)
        self.menu_3.addAction(self.action_9)
        self.menu_4.addAction(self.action_1)
        self.menu_4.addAction(self.action_10)
        self.menu_4.addAction(self.action_11)
        self.menu_4.addAction(self.action_12)
        self.menubar.addAction(self.menu.menuAction())
        self.menubar.addAction(self.menu_2.menuAction())
        self.menubar.addAction(self.menu_3.menuAction())
        self.menubar.addAction(self.menu_4.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.comboBox, self.tableView)
コード例 #9
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.setEnabled(True)
        MainWindow.resize(1000, 650)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName("tabWidget")
        self.share_tab = QtWidgets.QWidget()
        self.share_tab.setObjectName("share_tab")
        self.share_vlayout = QtWidgets.QVBoxLayout(self.share_tab)
        self.share_vlayout.setObjectName("share_vlayout")
        self.share_hlayout_top = QtWidgets.QHBoxLayout()
        self.share_hlayout_top.setObjectName("share_hlayout_top")
        self.label_share_url = QtWidgets.QLabel(self.share_tab)
        self.label_share_url.setObjectName("label_share_url")
        self.share_hlayout_top.addWidget(self.label_share_url)
        self.line_share_url = QtWidgets.QLineEdit(self.share_tab)
        self.line_share_url.setObjectName("line_share_url")
        self.line_share_pwd = QtWidgets.QLineEdit(self.share_tab)
        self.line_share_pwd.setObjectName("line_share_pwd")
        self.share_hlayout_top.addWidget(self.line_share_url)
        self.share_hlayout_top.addWidget(self.line_share_pwd)
        self.btn_extract = QtWidgets.QPushButton(self.share_tab)
        self.btn_extract.setObjectName("btn_extract")
        self.share_hlayout_top.addWidget(self.btn_extract)
        self.share_vlayout.addLayout(self.share_hlayout_top)
        self.table_share = QtWidgets.QTableView(self.share_tab)
        self.table_share.setObjectName("table_share")
        self.share_vlayout.addWidget(self.table_share)
        self.share_hlayout_bottom = QtWidgets.QHBoxLayout()
        self.share_hlayout_bottom.setObjectName("share_hlayout_bottom")
        self.btn_share_select_all = QtWidgets.QPushButton(self.share_tab)
        self.btn_share_select_all.setObjectName("btn_share_select_all")
        self.share_hlayout_bottom.addWidget(self.btn_share_select_all)
        self.label_dl_path = QtWidgets.QLabel(self.share_tab)
        self.label_dl_path.setObjectName("label_dl_path")
        self.share_hlayout_bottom.addWidget(self.label_dl_path)
        self.share_set_dl_path = MyLineEdit(self.share_tab)
        self.share_set_dl_path.setObjectName("share_set_dl_path")
        self.share_hlayout_bottom.addWidget(self.share_set_dl_path)
        self.btn_share_dl = QtWidgets.QPushButton(self.share_tab)
        self.btn_share_dl.setObjectName("btn_share_dl")
        self.share_hlayout_bottom.addWidget(self.btn_share_dl)
        self.share_vlayout.addLayout(self.share_hlayout_bottom)
        self.tabWidget.addTab(self.share_tab, "")
        self.disk_tab = QtWidgets.QWidget()
        self.disk_tab.setEnabled(True)
        self.disk_tab.setMinimumSize(QtCore.QSize(620, 0))
        self.disk_tab.setObjectName("disk_tab")
        self.disk_vlayout = QtWidgets.QVBoxLayout(self.disk_tab)
        self.disk_vlayout.setObjectName("disk_vlayout")
        self.disk_hlayout_top = QtWidgets.QHBoxLayout()
        self.disk_hlayout_top.setObjectName("disk_hlayout_top")
        self.disk_loc_hbox = QtWidgets.QHBoxLayout()
        self.disk_loc_hbox.setObjectName("disk_loc_hbox")
        self.label_disk_loc = QtWidgets.QLabel(self.disk_tab)
        self.label_disk_loc.setObjectName("label_disk_loc")
        self.disk_loc_hbox.addWidget(self.label_disk_loc)
        self.disk_hlayout_top.addLayout(self.disk_loc_hbox)
        spacerItem = QtWidgets.QSpacerItem(
            40, 20, QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Minimum)
        self.disk_hlayout_top.addItem(spacerItem)
        self.btn_disk_mkdir = QtWidgets.QPushButton(self.disk_tab)
        self.btn_disk_mkdir.setObjectName("btn_disk_mkdir")
        self.disk_hlayout_top.addWidget(self.btn_disk_mkdir)
        self.disk_vlayout.addLayout(self.disk_hlayout_top)
        self.table_disk = MyTableView(self.disk_tab)
        self.table_disk.setObjectName("table_disk")
        self.disk_vlayout.addWidget(self.table_disk)
        self.disk_hlayout_bottom = QtWidgets.QHBoxLayout()
        self.disk_hlayout_bottom.setObjectName("disk_hlayout_bottom")
        self.btn_disk_select_all = QtWidgets.QPushButton(self.disk_tab)
        self.btn_disk_select_all.setObjectName("btn_disk_select_all")
        self.disk_hlayout_bottom.addWidget(self.btn_disk_select_all)
        spacerItem1 = QtWidgets.QSpacerItem(
            40, 20, QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Minimum)
        self.disk_hlayout_bottom.addItem(spacerItem1)
        self.btn_disk_delete = QtWidgets.QPushButton(self.disk_tab)
        self.btn_disk_delete.setObjectName("btn_disk_delete")
        self.disk_hlayout_bottom.addWidget(self.btn_disk_delete)
        self.btn_disk_dl = QtWidgets.QPushButton(self.disk_tab)
        self.btn_disk_dl.setObjectName("btn_disk_dl")
        self.disk_hlayout_bottom.addWidget(self.btn_disk_dl)
        self.disk_vlayout.addLayout(self.disk_hlayout_bottom)
        self.tabWidget.addTab(self.disk_tab, "")

        self.rec_tab = QtWidgets.QWidget()
        self.rec_tab.setObjectName("rec_tab")
        self.rec_verticalLayout = QtWidgets.QVBoxLayout(self.rec_tab)
        self.rec_verticalLayout.setObjectName("rec_verticalLayout")
        self.rec_horizontalLayout = QtWidgets.QHBoxLayout()
        self.rec_horizontalLayout.setObjectName("rec_horizontalLayout")
        self.btn_rec_select_all = QtWidgets.QPushButton(self.rec_tab)
        self.btn_rec_select_all.setObjectName("btn_rec_select_all")
        self.rec_horizontalLayout.addWidget(self.btn_rec_select_all)
        self.btn_recovery = QtWidgets.QPushButton(self.rec_tab)
        self.btn_recovery.setObjectName("btn_recovery")
        self.rec_horizontalLayout.addWidget(self.btn_recovery)
        self.btn_rec_delete = QtWidgets.QPushButton(self.rec_tab)
        self.btn_rec_delete.setObjectName("btn_rec_delete")
        self.rec_horizontalLayout.addWidget(self.btn_rec_delete)
        self.rec_horizontalLayout.addStretch(1)
        self.btn_rec_clean = QtWidgets.QPushButton(self.rec_tab)
        self.btn_rec_clean.setObjectName("btn_rec_clean")
        self.rec_horizontalLayout.addWidget(self.btn_rec_clean)
        self.btn_recovery_all = QtWidgets.QPushButton(self.rec_tab)
        self.btn_recovery_all.setObjectName("btn_recovery_all")
        self.rec_horizontalLayout.addWidget(self.btn_recovery_all)
        self.btn_rec_expire_files = QtWidgets.QPushButton(self.rec_tab)
        self.btn_rec_expire_files.setObjectName("btn_rec_expire_files")
        self.rec_horizontalLayout.addWidget(self.btn_rec_expire_files)
        self.rec_verticalLayout.addLayout(self.rec_horizontalLayout)
        self.table_rec = QtWidgets.QTableView(self.rec_tab)
        self.table_rec.setObjectName("table_rec")
        self.rec_verticalLayout.addWidget(self.table_rec)
        self.tabWidget.addTab(self.rec_tab, "")

        self.jobs_tab = QtWidgets.QWidget()
        self.jobs_tab.setObjectName("jobs_tab")
        self.jobs_verticalLayout = QtWidgets.QVBoxLayout(self.jobs_tab)
        self.jobs_verticalLayout.setObjectName("jobs_verticalLayout")
        self.jobs_horizontalLayout = QtWidgets.QHBoxLayout()
        self.jobs_horizontalLayout.setObjectName("jobs_horizontalLayout")
        self.btn_jobs_start_all = QtWidgets.QPushButton(self.jobs_tab)
        self.btn_jobs_clean_all = QtWidgets.QPushButton(self.jobs_tab)
        self.jobs_horizontalLayout.addWidget(self.btn_jobs_start_all)
        self.jobs_horizontalLayout.addStretch(1)
        self.jobs_horizontalLayout.addWidget(self.btn_jobs_clean_all)
        self.table_jobs = MyTableView(self.jobs_tab)
        self.table_jobs.setObjectName("table_jobs")
        self.jobs_verticalLayout.addLayout(self.jobs_horizontalLayout)
        self.jobs_verticalLayout.addWidget(self.table_jobs)
        self.tabWidget.addTab(self.jobs_tab, "")

        self.verticalLayout.addWidget(self.tabWidget)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 640, 30))
        self.menubar.setObjectName("menubar")
        self.acount = QtWidgets.QMenu(self.menubar)
        self.acount.setObjectName("acount")
        self.files = QtWidgets.QMenu(self.menubar)
        self.files.setObjectName("files")
        self.help = QtWidgets.QMenu(self.menubar)
        self.help.setObjectName("help")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolbar = QtWidgets.QToolBar(MainWindow)
        self.toolbar.setObjectName("toolbar")
        MainWindow.addToolBar(QtCore.Qt.ToolBarArea.TopToolBarArea,
                              self.toolbar)
        self.login = QtGui.QAction(MainWindow)
        self.login.setObjectName("login")
        self.logout = QtGui.QAction(MainWindow)
        self.logout.setObjectName("logout")
        self.upload = QtGui.QAction(MainWindow)
        self.upload.setObjectName("upload")
        self.download = QtGui.QAction(MainWindow)
        self.download.setObjectName("download")
        self.delete = QtGui.QAction(MainWindow)
        self.delete.setObjectName("delete")
        self.show_toolbar = QtGui.QAction(MainWindow)
        self.show_toolbar.setObjectName("show_toolbar")
        self.merge_file = QtGui.QAction(MainWindow)
        self.merge_file.setObjectName("merge_file")
        self.setting_menu = QtGui.QAction(MainWindow)
        self.setting_menu.setObjectName("setting_menu")
        self.how = QtGui.QAction(MainWindow)
        self.how.setObjectName("how")
        self.about = QtGui.QAction(MainWindow)
        self.about.setObjectName("about")
        self.acount.addSeparator()
        self.acount.addAction(self.login)
        self.acount.addAction(self.logout)
        self.files.addAction(self.upload)
        self.files.addAction(self.download)
        self.files.addAction(self.delete)
        self.files.addAction(self.show_toolbar)
        self.files.addAction(self.merge_file)
        self.files.addAction(self.setting_menu)
        self.help.addAction(self.how)
        self.help.addAction(self.about)
        self.menubar.addAction(self.acount.menuAction())
        self.menubar.addAction(self.files.menuAction())
        self.menubar.addAction(self.help.menuAction())
        # 工具栏
        self.toolbar.addAction(self.login)
        # 状态栏
        self.statusbar_msg_label = QtWidgets.QLabel()
        self.statusbar_load_lb = QtWidgets.QLabel()
        self.statusbar_load_movie = QtGui.QMovie(SRC_DIR + "loading_more.gif")
        self.statusbar_load_lb.setMovie(self.statusbar_load_movie)
        self.statusbar_msg_label.setObjectName("msg_label")
        self.statusbar_load_lb.setObjectName("msg_movie_lb")
        self.statusbar.addWidget(self.statusbar_load_lb)
        self.statusbar.addWidget(self.statusbar_msg_label)

        self.retranslateUi(MainWindow)
        self.other_init()
        self.set_window_at_center()
        self.create_left_menus()
        self.init_main_menu()
        self.text_add_shadow()
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
コード例 #10
0
ファイル: MainWindowUI.py プロジェクト: 0vlll/noscope
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(999, 766)
        MainWindow.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setMinimumSize(QtCore.QSize(0, 0))
        self.centralwidget.setStyleSheet(
            "QWidget{\n"
            "    background-color: rgb(25, 25,30);\n"
            "}")
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setContentsMargins(0, 20, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QtWidgets.QWidget(self.centralwidget)
        self.widget.setObjectName("widget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout.setContentsMargins(30, 0, 30, 0)
        self.horizontalLayout.setSpacing(20)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.side_menu = QtWidgets.QWidget(self.widget)
        self.side_menu.setMinimumSize(QtCore.QSize(90, 0))
        self.side_menu.setMaximumSize(QtCore.QSize(90, 16777215))
        self.side_menu.setStyleSheet("")
        self.side_menu.setObjectName("side_menu")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.side_menu)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.button_widget = QtWidgets.QWidget(self.side_menu)
        self.button_widget.setMinimumSize(QtCore.QSize(0, 350))
        self.button_widget.setObjectName("button_widget")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.button_widget)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setSpacing(40)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.file_button = QtWidgets.QPushButton(self.button_widget)
        self.file_button.setMinimumSize(QtCore.QSize(0, 90))
        self.file_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(25, 25,30);\n"
            "    border-radius: 45px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(35, 35, 44);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.file_button.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("./Assets/Icons/settings.svg"),
                       QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.file_button.setIcon(icon)
        self.file_button.setIconSize(QtCore.QSize(45, 45))
        self.file_button.setObjectName("file_button")
        self.verticalLayout_3.addWidget(self.file_button)
        self.mask_button = QtWidgets.QPushButton(self.button_widget)
        self.mask_button.setMinimumSize(QtCore.QSize(0, 90))
        self.mask_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(25, 25,30);\n"
            "    border-radius: 45px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(35, 35, 44);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.mask_button.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("./Assets/Icons/mask.svg"),
                        QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.mask_button.setIcon(icon1)
        self.mask_button.setIconSize(QtCore.QSize(45, 45))
        self.mask_button.setObjectName("mask_button")
        self.verticalLayout_3.addWidget(self.mask_button)
        self.clip_button = QtWidgets.QPushButton(self.button_widget)
        self.clip_button.setMinimumSize(QtCore.QSize(0, 90))
        self.clip_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(25, 25,30);\n"
            "    border-radius: 45px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(35, 35, 44);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.clip_button.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("./Assets/Icons/clip.svg"),
                        QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.clip_button.setIcon(icon2)
        self.clip_button.setIconSize(QtCore.QSize(45, 45))
        self.clip_button.setObjectName("clip_button")
        self.verticalLayout_3.addWidget(self.clip_button)
        self.verticalLayout_2.addWidget(self.button_widget, 0,
                                        QtCore.Qt.Alignment.AlignTop)
        self.horizontalLayout.addWidget(self.side_menu)
        self.vertical_divider_side_menu = QtWidgets.QWidget(self.widget)
        self.vertical_divider_side_menu.setMinimumSize(QtCore.QSize(3, 0))
        self.vertical_divider_side_menu.setMaximumSize(
            QtCore.QSize(3, 16777215))
        self.vertical_divider_side_menu.setStyleSheet(
            "QWidget{\n"
            "    background-color: rgb(33,33, 40);\n"
            "    border-radius: 1px;\n"
            "}")
        self.vertical_divider_side_menu.setObjectName(
            "vertical_divider_side_menu")
        self.horizontalLayout.addWidget(self.vertical_divider_side_menu)
        self.splitter = QtWidgets.QSplitter(self.widget)
        self.splitter.setLineWidth(0)
        self.splitter.setOrientation(QtCore.Qt.Orientations.Horizontal)
        self.splitter.setHandleWidth(2)
        self.splitter.setChildrenCollapsible(False)
        self.splitter.setObjectName("splitter")
        self.scrollArea = QtWidgets.QScrollArea(self.splitter)
        self.scrollArea.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Minimum,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scrollArea.sizePolicy().hasHeightForWidth())
        self.scrollArea.setSizePolicy(sizePolicy)
        self.scrollArea.setMinimumSize(QtCore.QSize(0, 0))
        self.scrollArea.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.scrollArea.setBaseSize(QtCore.QSize(0, 0))
        self.scrollArea.setLayoutDirection(
            QtCore.Qt.LayoutDirection.RightToLeft)
        self.scrollArea.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
        self.scrollArea.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
        self.scrollArea.setLineWidth(0)
        self.scrollArea.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setAlignment(QtCore.Qt.Alignment.AlignCenter)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 388, 684))
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scrollAreaWidgetContents.sizePolicy().hasHeightForWidth())
        self.scrollAreaWidgetContents.setSizePolicy(sizePolicy)
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(
            self.scrollAreaWidgetContents)
        self.horizontalLayout_4.setContentsMargins(0, 0, 12, 0)
        self.horizontalLayout_4.setSpacing(0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.stackedWidget = QtWidgets.QStackedWidget(
            self.scrollAreaWidgetContents)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Preferred,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.stackedWidget.sizePolicy().hasHeightForWidth())
        self.stackedWidget.setSizePolicy(sizePolicy)
        self.stackedWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.stackedWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.stackedWidget.setStyleSheet("")
        self.stackedWidget.setObjectName("stackedWidget")
        self.file_page = QtWidgets.QWidget()
        self.file_page.setStyleSheet("")
        self.file_page.setObjectName("file_page")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.file_page)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setSpacing(0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.file_title = QtWidgets.QLabel(self.file_page)
        self.file_title.setMinimumSize(QtCore.QSize(0, 90))
        self.file_title.setMaximumSize(QtCore.QSize(16777215, 90))
        font = QtGui.QFont()
        font.setPointSize(20)
        self.file_title.setFont(font)
        self.file_title.setStyleSheet("QLabel{\n" "    color: white;\n" "}")
        self.file_title.setAlignment(QtCore.Qt.Alignment.AlignCenter)
        self.file_title.setObjectName("file_title")
        self.verticalLayout_4.addWidget(self.file_title)
        self.file_button_container = QtWidgets.QWidget(self.file_page)
        self.file_button_container.setMinimumSize(QtCore.QSize(200, 0))
        self.file_button_container.setObjectName("file_button_container")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(
            self.file_button_container)
        self.verticalLayout_7.setContentsMargins(12, 0, 12, 12)
        self.verticalLayout_7.setSpacing(30)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.mask_dir_button = QtWidgets.QPushButton(
            self.file_button_container)
        self.mask_dir_button.setMinimumSize(QtCore.QSize(0, 65))
        self.mask_dir_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.mask_dir_button.setObjectName("mask_dir_button")
        self.verticalLayout_7.addWidget(self.mask_dir_button)
        self.image_dir_button = QtWidgets.QPushButton(
            self.file_button_container)
        self.image_dir_button.setMinimumSize(QtCore.QSize(0, 65))
        self.image_dir_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.image_dir_button.setObjectName("image_dir_button")
        self.verticalLayout_7.addWidget(self.image_dir_button)
        self.output_dir_button = QtWidgets.QPushButton(
            self.file_button_container)
        self.output_dir_button.setMinimumSize(QtCore.QSize(0, 65))
        self.output_dir_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.output_dir_button.setObjectName("output_dir_button")
        self.verticalLayout_7.addWidget(self.output_dir_button)
        self.save_project_button = QtWidgets.QPushButton(
            self.file_button_container)
        self.save_project_button.setMinimumSize(QtCore.QSize(0, 65))
        self.save_project_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.save_project_button.setObjectName("save_project_button")
        self.verticalLayout_7.addWidget(self.save_project_button)
        self.open_project_button = QtWidgets.QPushButton(
            self.file_button_container)
        self.open_project_button.setMinimumSize(QtCore.QSize(0, 65))
        self.open_project_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.open_project_button.setObjectName("open_project_button")
        self.verticalLayout_7.addWidget(self.open_project_button)
        self.verticalLayout_4.addWidget(self.file_button_container, 0,
                                        QtCore.Qt.Alignment.AlignTop)
        self.verticalLayout_4.setStretch(0, 1)
        self.verticalLayout_4.setStretch(1, 6)
        self.stackedWidget.addWidget(self.file_page)
        self.mask_page = QtWidgets.QWidget()
        self.mask_page.setObjectName("mask_page")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.mask_page)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setSpacing(0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.mask_title = QtWidgets.QLabel(self.mask_page)
        self.mask_title.setMinimumSize(QtCore.QSize(0, 90))
        self.mask_title.setMaximumSize(QtCore.QSize(16777215, 90))
        font = QtGui.QFont()
        font.setPointSize(20)
        self.mask_title.setFont(font)
        self.mask_title.setStyleSheet("QLabel{\n" "    color: white;\n" "}")
        self.mask_title.setAlignment(QtCore.Qt.Alignment.AlignCenter)
        self.mask_title.setObjectName("mask_title")
        self.verticalLayout_5.addWidget(self.mask_title)
        self.mask_settings_container = QtWidgets.QWidget(self.mask_page)
        self.mask_settings_container.setMaximumSize(QtCore.QSize(
            16777215, 800))
        self.mask_settings_container.setLayoutDirection(
            QtCore.Qt.LayoutDirection.LeftToRight)
        self.mask_settings_container.setObjectName("mask_settings_container")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(
            self.mask_settings_container)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 20)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.mask_buttons_container = QtWidgets.QWidget(
            self.mask_settings_container)
        self.mask_buttons_container.setObjectName("mask_buttons_container")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(
            self.mask_buttons_container)
        self.verticalLayout_8.setContentsMargins(-1, 0, -1, -1)
        self.verticalLayout_8.setSpacing(25)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.change_pen_button = QtWidgets.QPushButton(
            self.mask_buttons_container)
        self.change_pen_button.setMinimumSize(QtCore.QSize(0, 40))
        self.change_pen_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.change_pen_button.setObjectName("change_pen_button")
        self.verticalLayout_8.addWidget(self.change_pen_button)
        self.color_button = QtWidgets.QPushButton(self.mask_buttons_container)
        self.color_button.setMinimumSize(QtCore.QSize(0, 40))
        self.color_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.color_button.setObjectName("color_button")
        self.verticalLayout_8.addWidget(self.color_button)
        self.dialate_button = QtWidgets.QPushButton(
            self.mask_buttons_container)
        self.dialate_button.setMinimumSize(QtCore.QSize(0, 40))
        self.dialate_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.dialate_button.setObjectName("dialate_button")
        self.verticalLayout_8.addWidget(self.dialate_button)
        self.erode_button = QtWidgets.QPushButton(self.mask_buttons_container)
        self.erode_button.setMinimumSize(QtCore.QSize(0, 40))
        self.erode_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.erode_button.setObjectName("erode_button")
        self.verticalLayout_8.addWidget(self.erode_button)
        self.resolve_frame_button = QtWidgets.QPushButton(
            self.mask_buttons_container)
        self.resolve_frame_button.setMinimumSize(QtCore.QSize(0, 40))
        self.resolve_frame_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.resolve_frame_button.setObjectName("resolve_frame_button")
        self.verticalLayout_8.addWidget(self.resolve_frame_button)
        self.clear_changes_button = QtWidgets.QPushButton(
            self.mask_buttons_container)
        self.clear_changes_button.setMinimumSize(QtCore.QSize(0, 40))
        self.clear_changes_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.clear_changes_button.setObjectName("clear_changes_button")
        self.verticalLayout_8.addWidget(self.clear_changes_button)
        self.save_current_button = QtWidgets.QPushButton(
            self.mask_buttons_container)
        self.save_current_button.setMinimumSize(QtCore.QSize(0, 40))
        self.save_current_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.save_current_button.setObjectName("save_current_button")
        self.verticalLayout_8.addWidget(self.save_current_button)
        self.color_indicator_container = QtWidgets.QWidget(
            self.mask_buttons_container)
        self.color_indicator_container.setObjectName(
            "color_indicator_container")
        self.gridLayout = QtWidgets.QGridLayout(self.color_indicator_container)
        self.gridLayout.setObjectName("gridLayout")
        self.primary_color_widget = QtWidgets.QWidget(
            self.color_indicator_container)
        self.primary_color_widget.setMinimumSize(QtCore.QSize(80, 80))
        self.primary_color_widget.setMaximumSize(QtCore.QSize(80, 80))
        self.primary_color_widget.setStyleSheet(
            "QWidget{\n"
            "    border: 5px solid rgb(57, 58, 73);\n"
            "    border-radius: 40px;\n"
            "}")
        self.primary_color_widget.setObjectName("primary_color_widget")
        self.gridLayout.addWidget(self.primary_color_widget, 0, 0, 1, 1)
        self.secondary_color_widget = QtWidgets.QWidget(
            self.color_indicator_container)
        self.secondary_color_widget.setMinimumSize(QtCore.QSize(40, 40))
        self.secondary_color_widget.setMaximumSize(QtCore.QSize(40, 40))
        self.secondary_color_widget.setStyleSheet(
            "QWidget{\n"
            "    border: 5px solid rgb(57, 58, 73);\n"
            "    border-radius: 20px;\n"
            "}")
        self.secondary_color_widget.setObjectName("secondary_color_widget")
        self.gridLayout.addWidget(self.secondary_color_widget, 0, 1, 1, 1)
        self.verticalLayout_8.addWidget(self.color_indicator_container, 0,
                                        QtCore.Qt.Alignment.AlignTop)
        self.horizontalLayout_2.addWidget(self.mask_buttons_container)
        self.verticalSlider = QtWidgets.QSlider(self.mask_settings_container)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.verticalSlider.sizePolicy().hasHeightForWidth())
        self.verticalSlider.setSizePolicy(sizePolicy)
        self.verticalSlider.setMinimumSize(QtCore.QSize(10, 0))
        self.verticalSlider.setMaximumSize(QtCore.QSize(10, 16777215))
        self.verticalSlider.setStyleSheet(
            "QSlider::handle:vertical{\n"
            "    border-radius: 5px;\n"
            "    background-color: rgb(50, 51, 64);\n"
            "}\n"
            "QSlider::handle:vertical:hover{\n"
            "    border-radius: 5px;\n"
            "    background-color: rgb(70, 72, 92);\n"
            "}\n"
            "QSlider::add-page:vertical{\n"
            "    background-color: rgb(35, 35, 44);\n"
            "    border-radius: 5px;\n"
            "}\n"
            "QSlider::sub-page:vertical{\n"
            "    background-color: rgb(12, 12, 16);\n"
            "    border-radius: 5px;\n"
            "}")
        self.verticalSlider.setMaximum(100)
        self.verticalSlider.setProperty("value", 100)
        self.verticalSlider.setOrientation(QtCore.Qt.Orientations.Vertical)
        self.verticalSlider.setInvertedAppearance(False)
        self.verticalSlider.setInvertedControls(False)
        self.verticalSlider.setTickPosition(
            QtWidgets.QSlider.TickPosition.NoTicks)
        self.verticalSlider.setObjectName("verticalSlider")
        self.horizontalLayout_2.addWidget(self.verticalSlider)
        self.verticalLayout_5.addWidget(self.mask_settings_container, 0,
                                        QtCore.Qt.Alignment.AlignTop)
        self.verticalLayout_5.setStretch(0, 1)
        self.stackedWidget.addWidget(self.mask_page)
        self.clip_page = QtWidgets.QWidget()
        self.clip_page.setObjectName("clip_page")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.clip_page)
        self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_6.setSpacing(0)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.clip_title = QtWidgets.QLabel(self.clip_page)
        self.clip_title.setMinimumSize(QtCore.QSize(0, 90))
        self.clip_title.setMaximumSize(QtCore.QSize(16777215, 90))
        font = QtGui.QFont()
        font.setPointSize(20)
        self.clip_title.setFont(font)
        self.clip_title.setStyleSheet("QLabel{\n" "    color: white;\n" "}")
        self.clip_title.setAlignment(QtCore.Qt.Alignment.AlignCenter)
        self.clip_title.setObjectName("clip_title")
        self.verticalLayout_6.addWidget(self.clip_title)
        self.clip_information_container = QtWidgets.QWidget(self.clip_page)
        self.clip_information_container.setObjectName(
            "clip_information_container")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(
            self.clip_information_container)
        self.verticalLayout_9.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_9.setSpacing(0)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.clip_operations_container = QtWidgets.QWidget(
            self.clip_information_container)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Preferred,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(10)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clip_operations_container.sizePolicy().hasHeightForWidth())
        self.clip_operations_container.setSizePolicy(sizePolicy)
        self.clip_operations_container.setMinimumSize(QtCore.QSize(0, 350))
        self.clip_operations_container.setMaximumSize(
            QtCore.QSize(16777215, 500))
        self.clip_operations_container.setLayoutDirection(
            QtCore.Qt.LayoutDirection.LeftToRight)
        self.clip_operations_container.setStyleSheet("")
        self.clip_operations_container.setObjectName(
            "clip_operations_container")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(
            self.clip_operations_container)
        self.verticalLayout_12.setContentsMargins(12, 0, 12, 10)
        self.verticalLayout_12.setSpacing(30)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.generate_masks_button = QtWidgets.QPushButton(
            self.clip_operations_container)
        self.generate_masks_button.setMinimumSize(QtCore.QSize(0, 65))
        self.generate_masks_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.generate_masks_button.setObjectName("generate_masks_button")
        self.verticalLayout_12.addWidget(self.generate_masks_button)
        self.view_clip_details_button = QtWidgets.QPushButton(
            self.clip_operations_container)
        self.view_clip_details_button.setMinimumSize(QtCore.QSize(0, 65))
        self.view_clip_details_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.view_clip_details_button.setObjectName("view_clip_details_button")
        self.verticalLayout_12.addWidget(self.view_clip_details_button)
        self.set_iterations_button = QtWidgets.QPushButton(
            self.clip_operations_container)
        self.set_iterations_button.setMinimumSize(QtCore.QSize(0, 65))
        self.set_iterations_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.set_iterations_button.setObjectName("set_iterations_button")
        self.verticalLayout_12.addWidget(self.set_iterations_button)
        self.generation_status_container = QtWidgets.QWidget(
            self.clip_operations_container)
        self.generation_status_container.setObjectName(
            "generation_status_container")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(
            self.generation_status_container)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.generation_background = QtWidgets.QWidget(
            self.generation_status_container)
        self.generation_background.setMinimumSize(QtCore.QSize(170, 170))
        self.generation_background.setMaximumSize(QtCore.QSize(150, 150))
        self.generation_background.setStyleSheet(
            "QWidget{\n"
            "    background-color: rgb(33,33, 40);\n"
            "    border-radius: 85px;\n"
            "}")
        self.generation_background.setObjectName("generation_background")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(
            self.generation_background)
        self.verticalLayout_11.setSpacing(0)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.generation_status = QtWidgets.QDoubleSpinBox(
            self.generation_background)
        self.generation_status.setMinimumSize(QtCore.QSize(0, 0))
        self.generation_status.setMaximumSize(QtCore.QSize(16777215, 40))
        font = QtGui.QFont()
        font.setPointSize(40)
        self.generation_status.setFont(font)
        self.generation_status.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.generation_status.setLayoutDirection(
            QtCore.Qt.LayoutDirection.RightToLeft)
        self.generation_status.setStyleSheet("QDoubleSpinBox{\n"
                                             "    color: white;\n"
                                             "}")
        self.generation_status.setAlignment(QtCore.Qt.Alignment.AlignCenter)
        self.generation_status.setButtonSymbols(
            QtWidgets.QAbstractSpinBox.ButtonSymbols.NoButtons)
        self.generation_status.setMaximum(100.0)
        self.generation_status.setProperty("value", 0.0)
        self.generation_status.setObjectName("generation_status")
        self.verticalLayout_11.addWidget(self.generation_status)
        self.generation_status_label = QtWidgets.QLabel(
            self.generation_background)
        self.generation_status_label.setMaximumSize(QtCore.QSize(140, 20))
        self.generation_status_label.setStyleSheet("QLabel{\n"
                                                   "    color: white;\n"
                                                   "}")
        self.generation_status_label.setAlignment(
            QtCore.Qt.Alignment.AlignCenter)
        self.generation_status_label.setObjectName("generation_status_label")
        self.verticalLayout_11.addWidget(self.generation_status_label, 0,
                                         QtCore.Qt.Alignment.AlignHCenter)
        self.horizontalLayout_3.addWidget(self.generation_background)
        self.verticalLayout_12.addWidget(self.generation_status_container)
        self.generation_status_container.raise_()
        self.generate_masks_button.raise_()
        self.view_clip_details_button.raise_()
        self.set_iterations_button.raise_()
        self.verticalLayout_9.addWidget(self.clip_operations_container)
        self.verticalLayout_6.addWidget(self.clip_information_container, 0,
                                        QtCore.Qt.Alignment.AlignTop)
        self.verticalLayout_6.setStretch(0, 1)
        self.stackedWidget.addWidget(self.clip_page)
        self.horizontalLayout_4.addWidget(self.stackedWidget)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.workspace = QtWidgets.QWidget(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Preferred,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.workspace.sizePolicy().hasHeightForWidth())
        self.workspace.setSizePolicy(sizePolicy)
        self.workspace.setMinimumSize(QtCore.QSize(0, 0))
        self.workspace.setObjectName("workspace")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.workspace)
        self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_6.setSpacing(25)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.vertical_divider_workspace = QtWidgets.QWidget(self.workspace)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Preferred,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.vertical_divider_workspace.sizePolicy().hasHeightForWidth())
        self.vertical_divider_workspace.setSizePolicy(sizePolicy)
        self.vertical_divider_workspace.setMinimumSize(QtCore.QSize(3, 0))
        self.vertical_divider_workspace.setMaximumSize(
            QtCore.QSize(3, 16777215))
        self.vertical_divider_workspace.setCursor(
            QtGui.QCursor(QtCore.Qt.CursorShape.ArrowCursor))
        self.vertical_divider_workspace.setStyleSheet(
            "QWidget{\n"
            "    background-color: rgb(33,33, 40);\n"
            "    border-radius: 1px;\n"
            "}")
        self.vertical_divider_workspace.setObjectName(
            "vertical_divider_workspace")
        self.horizontalLayout_6.addWidget(self.vertical_divider_workspace)
        self.mask_operations_container = QtWidgets.QWidget(self.workspace)
        self.mask_operations_container.setObjectName(
            "mask_operations_container")
        self.verticalLayout_14 = QtWidgets.QVBoxLayout(
            self.mask_operations_container)
        self.verticalLayout_14.setContentsMargins(0, -1, 0, -1)
        self.verticalLayout_14.setSpacing(0)
        self.verticalLayout_14.setObjectName("verticalLayout_14")
        self.frame_display_container = QtWidgets.QWidget(
            self.mask_operations_container)
        self.frame_display_container.setMinimumSize(QtCore.QSize(0, 30))
        self.frame_display_container.setMaximumSize(QtCore.QSize(16777215, 30))
        self.frame_display_container.setStyleSheet(
            "QWidget{\n"
            "    background-color: rgb(33,33, 40);\n"
            "    border-radius: 15px;\n"
            "}")
        self.frame_display_container.setObjectName("frame_display_container")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(
            self.frame_display_container)
        self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.frame_label = QtWidgets.QLabel(self.frame_display_container)
        self.frame_label.setStyleSheet("QLabel{\n" "    color: white;\n" "}")
        self.frame_label.setAlignment(QtCore.Qt.Alignment.AlignRight
                                      | QtCore.Qt.Alignment.AlignTrailing
                                      | QtCore.Qt.Alignment.AlignVCenter)
        self.frame_label.setObjectName("frame_label")
        self.horizontalLayout_8.addWidget(self.frame_label)
        self.frame_spin_box = QtWidgets.QSpinBox(self.frame_display_container)
        self.frame_spin_box.setStyleSheet("QSpinBox{\n"
                                          "    color: white;\n"
                                          "}")
        self.frame_spin_box.setButtonSymbols(
            QtWidgets.QAbstractSpinBox.ButtonSymbols.NoButtons)
        self.frame_spin_box.setObjectName("frame_spin_box")
        self.horizontalLayout_8.addWidget(self.frame_spin_box)
        self.verticalLayout_14.addWidget(self.frame_display_container)
        self.paint_interface_container = QtWidgets.QWidget(
            self.mask_operations_container)
        self.paint_interface_container.setObjectName(
            "paint_interface_container")
        self.verticalLayout_14.addWidget(self.paint_interface_container)
        self.frame_operations_container = QtWidgets.QWidget(
            self.mask_operations_container)
        self.frame_operations_container.setMinimumSize(QtCore.QSize(0, 0))
        self.frame_operations_container.setMaximumSize(
            QtCore.QSize(16777215, 50))
        self.frame_operations_container.setStyleSheet("")
        self.frame_operations_container.setObjectName(
            "frame_operations_container")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(
            self.frame_operations_container)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.previous_frame_button = QtWidgets.QPushButton(
            self.frame_operations_container)
        self.previous_frame_button.setMinimumSize(QtCore.QSize(40, 30))
        self.previous_frame_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.previous_frame_button.setObjectName("previous_frame_button")
        self.horizontalLayout_5.addWidget(self.previous_frame_button)
        self.frame_slider = QtWidgets.QSlider(self.frame_operations_container)
        self.frame_slider.setMinimumSize(QtCore.QSize(80, 0))
        self.frame_slider.setMaximumSize(QtCore.QSize(16777215, 15))
        self.frame_slider.setStyleSheet(
            "QSlider::handle:horizontal{\n"
            "    border-radius: 5px;\n"
            "    background-color: rgb(50, 51, 64);\n"
            "}\n"
            "QSlider::handle:horizontal:hover{\n"
            "    border-radius: 5px;\n"
            "    background-color: rgb(70, 72, 92);\n"
            "}\n"
            "QSlider::add-page:horizontal{\n"
            "    background-color: rgb(35, 35, 44);\n"
            "    border-radius: 5px;\n"
            "}\n"
            "QSlider::sub-page:horizontal{\n"
            "    background-color: rgb(35, 35, 44);\n"
            "    border-radius: 5px;\n"
            "}")
        self.frame_slider.setOrientation(QtCore.Qt.Orientations.Horizontal)
        self.frame_slider.setObjectName("frame_slider")
        self.horizontalLayout_5.addWidget(self.frame_slider)
        self.next_frame_button = QtWidgets.QPushButton(
            self.frame_operations_container)
        self.next_frame_button.setMinimumSize(QtCore.QSize(40, 30))
        self.next_frame_button.setStyleSheet(
            "QPushButton{\n"
            "    border: none;\n"
            "    background-color: rgb(33,33, 40);\n"
            "    color:white;\n"
            "    border-radius: 15px;\n"
            "}\n"
            "QPushButton:hover{\n"
            "    background-color: rgb(37, 37, 46);\n"
            "}\n"
            "QPushButton:pressed{\n"
            "    background-color: rgb(47, 48, 60);\n"
            "}")
        self.next_frame_button.setObjectName("next_frame_button")
        self.horizontalLayout_5.addWidget(self.next_frame_button)
        self.verticalLayout_14.addWidget(self.frame_operations_container)
        self.horizontalLayout_6.addWidget(self.mask_operations_container)
        self.horizontalLayout.addWidget(self.splitter)
        self.splitter.raise_()
        self.side_menu.raise_()
        self.vertical_divider_side_menu.raise_()
        self.verticalLayout.addWidget(self.widget)
        self.info_bar = QtWidgets.QWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Preferred,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.info_bar.sizePolicy().hasHeightForWidth())
        self.info_bar.setSizePolicy(sizePolicy)
        self.info_bar.setMinimumSize(QtCore.QSize(0, 30))
        self.info_bar.setMaximumSize(QtCore.QSize(16777215, 30))
        self.info_bar.setStyleSheet("QWidget{\n"
                                    "    background-color: rgb(33,33, 40);\n"
                                    "}\n"
                                    "")
        self.info_bar.setObjectName("info_bar")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.info_bar)
        self.horizontalLayout_7.setContentsMargins(30, 0, 30, 0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.info_label = QtWidgets.QLabel(self.info_bar)
        self.info_label.setStyleSheet("QLabel{\n" "    color: white;\n" "}")
        self.info_label.setText("")
        self.info_label.setAlignment(QtCore.Qt.Alignment.AlignCenter)
        self.info_label.setObjectName("info_label")
        self.horizontalLayout_7.addWidget(self.info_label)
        self.verticalLayout.addWidget(self.info_bar)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 999, 22))
        self.menuBar.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.menuBar.setStyleSheet("")
        self.menuBar.setNativeMenuBar(True)
        self.menuBar.setObjectName("menuBar")
        self.menuFile = QtWidgets.QMenu(self.menuBar)
        self.menuFile.setStyleSheet("")
        self.menuFile.setObjectName("menuFile")
        self.menuEdit = QtWidgets.QMenu(self.menuBar)
        self.menuEdit.setObjectName("menuEdit")
        self.menuHelp = QtWidgets.QMenu(self.menuBar)
        self.menuHelp.setObjectName("menuHelp")
        MainWindow.setMenuBar(self.menuBar)
        self.action_save_file = QtGui.QAction(MainWindow)
        self.action_save_file.setObjectName("action_save_file")
        self.action_open = QtGui.QAction(MainWindow)
        self.action_open.setObjectName("action_open")
        self.action_save_as = QtGui.QAction(MainWindow)
        self.action_save_as.setObjectName("action_save_as")
        self.action_manual = QtGui.QAction(MainWindow)
        self.action_manual.setObjectName("action_manual")
        self.menuFile.addAction(self.action_save_file)
        self.menuFile.addAction(self.action_open)
        self.menuFile.addAction(self.action_save_as)
        self.menuHelp.addAction(self.action_manual)
        self.menuBar.addAction(self.menuFile.menuAction())
        self.menuBar.addAction(self.menuEdit.menuAction())
        self.menuBar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        self.stackedWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
コード例 #11
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(632, 490)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed,
                                           QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setMinimumSize(QtCore.QSize(632, 490))
        MainWindow.setMaximumSize(QtCore.QSize(632, 490))
        font = QtGui.QFont()
        font.setPointSize(9)
        MainWindow.setFont(font)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/resources/icon.ico"),
                       QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setWhatsThis("")
        MainWindow.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.splitimagefolderLabel = QtWidgets.QLabel(self.centralwidget)
        self.splitimagefolderLabel.setGeometry(QtCore.QRect(20, 12, 98, 16))
        self.splitimagefolderLabel.setObjectName("splitimagefolderLabel")
        self.splitimagefolderLineEdit = QtWidgets.QLineEdit(self.centralwidget)
        self.splitimagefolderLineEdit.setGeometry(
            QtCore.QRect(130, 10, 412, 22))
        self.splitimagefolderLineEdit.setReadOnly(True)
        self.splitimagefolderLineEdit.setObjectName("splitimagefolderLineEdit")
        self.browseButton = QtWidgets.QPushButton(self.centralwidget)
        self.browseButton.setGeometry(QtCore.QRect(540, 9, 75, 24))
        self.browseButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.browseButton.setObjectName("browseButton")
        self.xLabel = QtWidgets.QLabel(self.centralwidget)
        self.xLabel.setGeometry(QtCore.QRect(25, 145, 7, 16))
        self.xLabel.setObjectName("xLabel")
        self.liveimageCheckBox = QtWidgets.QCheckBox(self.centralwidget)
        self.liveimageCheckBox.setEnabled(True)
        self.liveimageCheckBox.setGeometry(QtCore.QRect(120, 252, 129, 20))
        self.liveimageCheckBox.setChecked(True)
        self.liveimageCheckBox.setTristate(False)
        self.liveimageCheckBox.setObjectName("liveimageCheckBox")
        self.selectregionButton = QtWidgets.QPushButton(self.centralwidget)
        self.selectregionButton.setGeometry(QtCore.QRect(5, 70, 101, 23))
        self.selectregionButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.selectregionButton.setObjectName("selectregionButton")
        self.similaritythresholdLabel = QtWidgets.QLabel(self.centralwidget)
        self.similaritythresholdLabel.setGeometry(QtCore.QRect(
            7, 410, 151, 16))
        self.similaritythresholdLabel.setObjectName("similaritythresholdLabel")
        self.similaritythresholdDoubleSpinBox = QtWidgets.QDoubleSpinBox(
            self.centralwidget)
        self.similaritythresholdDoubleSpinBox.setGeometry(
            QtCore.QRect(155, 408, 61, 22))
        self.similaritythresholdDoubleSpinBox.setMaximum(1.0)
        self.similaritythresholdDoubleSpinBox.setSingleStep(0.01)
        self.similaritythresholdDoubleSpinBox.setProperty("value", 0.9)
        self.similaritythresholdDoubleSpinBox.setObjectName(
            "similaritythresholdDoubleSpinBox")
        self.startautosplitterButton = QtWidgets.QPushButton(
            self.centralwidget)
        self.startautosplitterButton.setGeometry(
            QtCore.QRect(500, 425, 121, 31))
        self.startautosplitterButton.setFocusPolicy(
            QtCore.Qt.FocusPolicy.NoFocus)
        self.startautosplitterButton.setObjectName("startautosplitterButton")
        self.resetButton = QtWidgets.QPushButton(self.centralwidget)
        self.resetButton.setGeometry(QtCore.QRect(500, 390, 121, 31))
        self.resetButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.resetButton.setObjectName("resetButton")
        self.undosplitButton = QtWidgets.QPushButton(self.centralwidget)
        self.undosplitButton.setGeometry(QtCore.QRect(494, 250, 64, 24))
        self.undosplitButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.undosplitButton.setObjectName("undosplitButton")
        self.skipsplitButton = QtWidgets.QPushButton(self.centralwidget)
        self.skipsplitButton.setGeometry(QtCore.QRect(560, 250, 61, 24))
        self.skipsplitButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.skipsplitButton.setObjectName("skipsplitButton")
        self.pauseLabel = QtWidgets.QLabel(self.centralwidget)
        self.pauseLabel.setGeometry(QtCore.QRect(7, 439, 131, 16))
        self.pauseLabel.setObjectName("pauseLabel")
        self.checkfpsButton = QtWidgets.QPushButton(self.centralwidget)
        self.checkfpsButton.setGeometry(QtCore.QRect(5, 225, 53, 21))
        self.checkfpsButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.checkfpsButton.setObjectName("checkfpsButton")
        self.fpsLabel = QtWidgets.QLabel(self.centralwidget)
        self.fpsLabel.setGeometry(QtCore.QRect(87, 225, 20, 20))
        self.fpsLabel.setObjectName("fpsLabel")
        self.showlivesimilarityCheckBox = QtWidgets.QCheckBox(
            self.centralwidget)
        self.showlivesimilarityCheckBox.setEnabled(True)
        self.showlivesimilarityCheckBox.setGeometry(
            QtCore.QRect(7, 323, 124, 20))
        self.showlivesimilarityCheckBox.setChecked(True)
        self.showlivesimilarityCheckBox.setTristate(False)
        self.showlivesimilarityCheckBox.setObjectName(
            "showlivesimilarityCheckBox")
        self.showhighestsimilarityCheckBox = QtWidgets.QCheckBox(
            self.centralwidget)
        self.showhighestsimilarityCheckBox.setEnabled(True)
        self.showhighestsimilarityCheckBox.setGeometry(
            QtCore.QRect(7, 350, 145, 20))
        self.showhighestsimilarityCheckBox.setChecked(True)
        self.showhighestsimilarityCheckBox.setTristate(False)
        self.showhighestsimilarityCheckBox.setObjectName(
            "showhighestsimilarityCheckBox")
        self.livesimilarityLabel = QtWidgets.QLabel(self.centralwidget)
        self.livesimilarityLabel.setGeometry(QtCore.QRect(171, 326, 46, 16))
        self.livesimilarityLabel.setText("")
        self.livesimilarityLabel.setObjectName("livesimilarityLabel")
        self.highestsimilarityLabel = QtWidgets.QLabel(self.centralwidget)
        self.highestsimilarityLabel.setGeometry(QtCore.QRect(171, 352, 46, 16))
        self.highestsimilarityLabel.setText("")
        self.highestsimilarityLabel.setObjectName("highestsimilarityLabel")
        self.splitLabel = QtWidgets.QLabel(self.centralwidget)
        self.splitLabel.setGeometry(QtCore.QRect(230, 317, 58, 16))
        self.splitLabel.setObjectName("splitLabel")
        self.resetLabel = QtWidgets.QLabel(self.centralwidget)
        self.resetLabel.setGeometry(QtCore.QRect(230, 341, 28, 16))
        self.resetLabel.setObjectName("resetLabel")
        self.skiptsplitLabel = QtWidgets.QLabel(self.centralwidget)
        self.skiptsplitLabel.setGeometry(QtCore.QRect(230, 367, 48, 16))
        self.skiptsplitLabel.setObjectName("skiptsplitLabel")
        self.undosplitLabel = QtWidgets.QLabel(self.centralwidget)
        self.undosplitLabel.setGeometry(QtCore.QRect(230, 393, 55, 16))
        self.undosplitLabel.setObjectName("undosplitLabel")
        self.splitLineEdit = QtWidgets.QLineEdit(self.centralwidget)
        self.splitLineEdit.setGeometry(QtCore.QRect(300, 314, 81, 20))
        self.splitLineEdit.setReadOnly(True)
        self.splitLineEdit.setObjectName("splitLineEdit")
        self.undosplitLineEdit = QtWidgets.QLineEdit(self.centralwidget)
        self.undosplitLineEdit.setGeometry(QtCore.QRect(300, 391, 81, 20))
        self.undosplitLineEdit.setFocusPolicy(
            QtCore.Qt.FocusPolicy.StrongFocus)
        self.undosplitLineEdit.setReadOnly(True)
        self.undosplitLineEdit.setObjectName("undosplitLineEdit")
        self.skipsplitLineEdit = QtWidgets.QLineEdit(self.centralwidget)
        self.skipsplitLineEdit.setGeometry(QtCore.QRect(300, 365, 81, 20))
        self.skipsplitLineEdit.setReadOnly(True)
        self.skipsplitLineEdit.setObjectName("skipsplitLineEdit")
        self.resetLineEdit = QtWidgets.QLineEdit(self.centralwidget)
        self.resetLineEdit.setGeometry(QtCore.QRect(300, 339, 81, 20))
        self.resetLineEdit.setReadOnly(True)
        self.resetLineEdit.setObjectName("resetLineEdit")
        self.setsplithotkeyButton = QtWidgets.QPushButton(self.centralwidget)
        self.setsplithotkeyButton.setGeometry(QtCore.QRect(390, 314, 81, 21))
        self.setsplithotkeyButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.setsplithotkeyButton.setObjectName("setsplithotkeyButton")
        self.setresethotkeyButton = QtWidgets.QPushButton(self.centralwidget)
        self.setresethotkeyButton.setGeometry(QtCore.QRect(390, 339, 81, 21))
        self.setresethotkeyButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.setresethotkeyButton.setObjectName("setresethotkeyButton")
        self.setskipsplithotkeyButton = QtWidgets.QPushButton(
            self.centralwidget)
        self.setskipsplithotkeyButton.setGeometry(
            QtCore.QRect(390, 365, 81, 21))
        self.setskipsplithotkeyButton.setFocusPolicy(
            QtCore.Qt.FocusPolicy.NoFocus)
        self.setskipsplithotkeyButton.setObjectName("setskipsplithotkeyButton")
        self.setundosplithotkeyButton = QtWidgets.QPushButton(
            self.centralwidget)
        self.setundosplithotkeyButton.setGeometry(
            QtCore.QRect(390, 391, 81, 21))
        self.setundosplithotkeyButton.setFocusPolicy(
            QtCore.Qt.FocusPolicy.NoFocus)
        self.setundosplithotkeyButton.setObjectName("setundosplithotkeyButton")
        self.line_left = QtWidgets.QFrame(self.centralwidget)
        self.line_left.setGeometry(QtCore.QRect(220, 296, 2, 163))
        self.line_left.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
        self.line_left.setLineWidth(1)
        self.line_left.setFrameShape(QtWidgets.QFrame.Shape.VLine)
        self.line_left.setObjectName("line_left")
        self.timerglobalhotkeysLabel = QtWidgets.QLabel(self.centralwidget)
        self.timerglobalhotkeysLabel.setGeometry(
            QtCore.QRect(230, 291, 251, 20))
        self.timerglobalhotkeysLabel.setAlignment(
            QtCore.Qt.AlignmentFlag.AlignCenter)
        self.timerglobalhotkeysLabel.setObjectName("timerglobalhotkeysLabel")
        self.line_right = QtWidgets.QFrame(self.centralwidget)
        self.line_right.setGeometry(QtCore.QRect(490, 296, 2, 163))
        self.line_right.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
        self.line_right.setLineWidth(1)
        self.line_right.setFrameShape(QtWidgets.QFrame.Shape.VLine)
        self.line_right.setObjectName("line_right")
        self.liveImage = QtWidgets.QLabel(self.centralwidget)
        self.liveImage.setGeometry(QtCore.QRect(120, 70, 240, 180))
        self.liveImage.setFrameShape(QtWidgets.QFrame.Shape.Box)
        self.liveImage.setText("")
        self.liveImage.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.liveImage.setObjectName("liveImage")
        self.currentSplitImage = QtWidgets.QLabel(self.centralwidget)
        self.currentSplitImage.setGeometry(QtCore.QRect(380, 70, 240, 180))
        self.currentSplitImage.setFrameShape(QtWidgets.QFrame.Shape.Box)
        self.currentSplitImage.setText("")
        self.currentSplitImage.setAlignment(
            QtCore.Qt.AlignmentFlag.AlignCenter)
        self.currentSplitImage.setObjectName("currentSplitImage")
        self.currentsplitimageLabel = QtWidgets.QLabel(self.centralwidget)
        self.currentsplitimageLabel.setGeometry(QtCore.QRect(450, 50, 102, 16))
        self.currentsplitimageLabel.setObjectName("currentsplitimageLabel")
        self.widthLabel = QtWidgets.QLabel(self.centralwidget)
        self.widthLabel.setGeometry(QtCore.QRect(12, 185, 33, 16))
        self.widthLabel.setObjectName("widthLabel")
        self.heightLabel = QtWidgets.QLabel(self.centralwidget)
        self.heightLabel.setGeometry(QtCore.QRect(66, 185, 41, 16))
        self.heightLabel.setObjectName("heightLabel")
        self.fpsvalueLabel = QtWidgets.QLabel(self.centralwidget)
        self.fpsvalueLabel.setGeometry(QtCore.QRect(58, 225, 26, 20))
        self.fpsvalueLabel.setText("")
        self.fpsvalueLabel.setObjectName("fpsvalueLabel")
        self.widthSpinBox = QtWidgets.QSpinBox(self.centralwidget)
        self.widthSpinBox.setGeometry(QtCore.QRect(6, 200, 44, 22))
        self.widthSpinBox.setMinimum(1)
        self.widthSpinBox.setMaximum(10000)
        self.widthSpinBox.setProperty("value", 640)
        self.widthSpinBox.setObjectName("widthSpinBox")
        self.heightSpinBox = QtWidgets.QSpinBox(self.centralwidget)
        self.heightSpinBox.setGeometry(QtCore.QRect(62, 200, 44, 22))
        self.heightSpinBox.setMinimum(1)
        self.heightSpinBox.setMaximum(10000)
        self.heightSpinBox.setProperty("value", 480)
        self.heightSpinBox.setObjectName("heightSpinBox")
        self.captureregionLabel = QtWidgets.QLabel(self.centralwidget)
        self.captureregionLabel.setGeometry(QtCore.QRect(200, 50, 82, 16))
        self.captureregionLabel.setObjectName("captureregionLabel")
        self.fpslimitLabel = QtWidgets.QLabel(self.centralwidget)
        self.fpslimitLabel.setGeometry(QtCore.QRect(8, 252, 51, 16))
        self.fpslimitLabel.setObjectName("fpslimitLabel")
        self.fpslimitSpinBox = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.fpslimitSpinBox.setGeometry(QtCore.QRect(62, 250, 44, 22))
        self.fpslimitSpinBox.setPrefix("")
        self.fpslimitSpinBox.setDecimals(0)
        self.fpslimitSpinBox.setMinimum(30.0)
        self.fpslimitSpinBox.setMaximum(5000.0)
        self.fpslimitSpinBox.setSingleStep(1.0)
        self.fpslimitSpinBox.setProperty("value", 60.0)
        self.fpslimitSpinBox.setObjectName("fpslimitSpinBox")
        self.currentsplitimagefileLabel = QtWidgets.QLabel(self.centralwidget)
        self.currentsplitimagefileLabel.setGeometry(
            QtCore.QRect(380, 270, 241, 20))
        self.currentsplitimagefileLabel.setText("")
        self.currentsplitimagefileLabel.setAlignment(
            QtCore.Qt.AlignmentFlag.AlignCenter)
        self.currentsplitimagefileLabel.setObjectName(
            "currentsplitimagefileLabel")
        self.takescreenshotButton = QtWidgets.QPushButton(self.centralwidget)
        self.takescreenshotButton.setGeometry(QtCore.QRect(260, 250, 101, 24))
        self.takescreenshotButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.takescreenshotButton.setObjectName("takescreenshotButton")
        self.xSpinBox = QtWidgets.QSpinBox(self.centralwidget)
        self.xSpinBox.setGeometry(QtCore.QRect(6, 160, 44, 22))
        self.xSpinBox.setReadOnly(False)
        self.xSpinBox.setButtonSymbols(
            QtWidgets.QAbstractSpinBox.ButtonSymbols.UpDownArrows)
        self.xSpinBox.setMinimum(0)
        self.xSpinBox.setMaximum(999999999)
        self.xSpinBox.setSingleStep(1)
        self.xSpinBox.setProperty("value", 0)
        self.xSpinBox.setObjectName("xSpinBox")
        self.ySpinBox = QtWidgets.QSpinBox(self.centralwidget)
        self.ySpinBox.setGeometry(QtCore.QRect(62, 160, 44, 22))
        self.ySpinBox.setReadOnly(False)
        self.ySpinBox.setButtonSymbols(
            QtWidgets.QAbstractSpinBox.ButtonSymbols.UpDownArrows)
        self.ySpinBox.setMinimum(0)
        self.ySpinBox.setMaximum(999999999)
        self.ySpinBox.setProperty("value", 0)
        self.ySpinBox.setObjectName("ySpinBox")
        self.yLabel = QtWidgets.QLabel(self.centralwidget)
        self.yLabel.setGeometry(QtCore.QRect(81, 145, 7, 16))
        self.yLabel.setObjectName("yLabel")
        self.comparisonmethodComboBox = QtWidgets.QComboBox(self.centralwidget)
        self.comparisonmethodComboBox.setGeometry(
            QtCore.QRect(125, 296, 91, 22))
        self.comparisonmethodComboBox.setObjectName("comparisonmethodComboBox")
        self.comparisonmethodComboBox.addItem("")
        self.comparisonmethodComboBox.addItem("")
        self.comparisonmethodComboBox.addItem("")
        self.pauseDoubleSpinBox = QtWidgets.QDoubleSpinBox(self.centralwidget)
        self.pauseDoubleSpinBox.setGeometry(QtCore.QRect(155, 437, 61, 22))
        self.pauseDoubleSpinBox.setMaximum(999999999.0)
        self.pauseDoubleSpinBox.setSingleStep(1.0)
        self.pauseDoubleSpinBox.setProperty("value", 10.0)
        self.pauseDoubleSpinBox.setObjectName("pauseDoubleSpinBox")
        self.comparisonmethodLabel = QtWidgets.QLabel(self.centralwidget)
        self.comparisonmethodLabel.setGeometry(QtCore.QRect(7, 298, 110, 16))
        self.comparisonmethodLabel.setObjectName("comparisonmethodLabel")
        self.alignregionButton = QtWidgets.QPushButton(self.centralwidget)
        self.alignregionButton.setGeometry(QtCore.QRect(5, 95, 101, 23))
        self.alignregionButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.alignregionButton.setObjectName("alignregionButton")
        self.groupDummySplitsCheckBox = QtWidgets.QCheckBox(self.centralwidget)
        self.groupDummySplitsCheckBox.setGeometry(
            QtCore.QRect(230, 442, 261, 20))
        self.groupDummySplitsCheckBox.setChecked(False)
        self.groupDummySplitsCheckBox.setObjectName("groupDummySplitsCheckBox")
        self.selectwindowButton = QtWidgets.QPushButton(self.centralwidget)
        self.selectwindowButton.setGeometry(QtCore.QRect(5, 120, 101, 23))
        self.selectwindowButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.selectwindowButton.setObjectName("selectwindowButton")
        self.imageloopLabel = QtWidgets.QLabel(self.centralwidget)
        self.imageloopLabel.setGeometry(QtCore.QRect(379, 252, 113, 20))
        self.imageloopLabel.setObjectName("imageloopLabel")
        self.pausehotkeyLabel = QtWidgets.QLabel(self.centralwidget)
        self.pausehotkeyLabel.setGeometry(QtCore.QRect(230, 418, 31, 16))
        self.pausehotkeyLabel.setObjectName("pausehotkeyLabel")
        self.pausehotkeyLineEdit = QtWidgets.QLineEdit(self.centralwidget)
        self.pausehotkeyLineEdit.setGeometry(QtCore.QRect(300, 416, 81, 20))
        self.pausehotkeyLineEdit.setFocusPolicy(
            QtCore.Qt.FocusPolicy.StrongFocus)
        self.pausehotkeyLineEdit.setReadOnly(True)
        self.pausehotkeyLineEdit.setObjectName("pausehotkeyLineEdit")
        self.setpausehotkeyButton = QtWidgets.QPushButton(self.centralwidget)
        self.setpausehotkeyButton.setGeometry(QtCore.QRect(390, 416, 81, 21))
        self.setpausehotkeyButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
        self.setpausehotkeyButton.setObjectName("setpausehotkeyButton")
        self.loopCheckBox = QtWidgets.QCheckBox(self.centralwidget)
        self.loopCheckBox.setEnabled(True)
        self.loopCheckBox.setGeometry(QtCore.QRect(500, 340, 117, 20))
        self.loopCheckBox.setChecked(False)
        self.loopCheckBox.setTristate(False)
        self.loopCheckBox.setObjectName("loopCheckBox")
        self.autostartonresetCheckBox = QtWidgets.QCheckBox(self.centralwidget)
        self.autostartonresetCheckBox.setGeometry(
            QtCore.QRect(500, 360, 126, 20))
        self.autostartonresetCheckBox.setChecked(False)
        self.autostartonresetCheckBox.setTristate(False)
        self.autostartonresetCheckBox.setObjectName("autostartonresetCheckBox")
        self.startImageReloadButton = QtWidgets.QPushButton(self.centralwidget)
        self.startImageReloadButton.setGeometry(QtCore.QRect(
            500, 302, 121, 31))
        self.startImageReloadButton.setFocusPolicy(
            QtCore.Qt.FocusPolicy.NoFocus)
        self.startImageReloadButton.setObjectName("startImageReloadButton")
        self.startImageLabel = QtWidgets.QLabel(self.centralwidget)
        self.startImageLabel.setGeometry(QtCore.QRect(120, 270, 241, 16))
        self.startImageLabel.setObjectName("startImageLabel")
        self.currentsimilaritythresholdLabel = QtWidgets.QLabel(
            self.centralwidget)
        self.currentsimilaritythresholdLabel.setGeometry(
            QtCore.QRect(7, 380, 151, 16))
        self.currentsimilaritythresholdLabel.setObjectName(
            "currentsimilaritythresholdLabel")
        self.currentsimilaritythresholdnumberLabel = QtWidgets.QLabel(
            self.centralwidget)
        self.currentsimilaritythresholdnumberLabel.setGeometry(
            QtCore.QRect(171, 380, 46, 16))
        self.currentsimilaritythresholdnumberLabel.setText("")
        self.currentsimilaritythresholdnumberLabel.setObjectName(
            "currentsimilaritythresholdnumberLabel")
        self.splitimagefolderLabel.raise_()
        self.splitimagefolderLineEdit.raise_()
        self.browseButton.raise_()
        self.xLabel.raise_()
        self.liveimageCheckBox.raise_()
        self.selectregionButton.raise_()
        self.similaritythresholdLabel.raise_()
        self.similaritythresholdDoubleSpinBox.raise_()
        self.startautosplitterButton.raise_()
        self.resetButton.raise_()
        self.undosplitButton.raise_()
        self.skipsplitButton.raise_()
        self.pauseLabel.raise_()
        self.checkfpsButton.raise_()
        self.fpsLabel.raise_()
        self.showlivesimilarityCheckBox.raise_()
        self.showhighestsimilarityCheckBox.raise_()
        self.livesimilarityLabel.raise_()
        self.highestsimilarityLabel.raise_()
        self.splitLabel.raise_()
        self.resetLabel.raise_()
        self.skiptsplitLabel.raise_()
        self.undosplitLabel.raise_()
        self.splitLineEdit.raise_()
        self.undosplitLineEdit.raise_()
        self.skipsplitLineEdit.raise_()
        self.resetLineEdit.raise_()
        self.setsplithotkeyButton.raise_()
        self.setresethotkeyButton.raise_()
        self.setskipsplithotkeyButton.raise_()
        self.setundosplithotkeyButton.raise_()
        self.line_left.raise_()
        self.timerglobalhotkeysLabel.raise_()
        self.line_right.raise_()
        self.currentsplitimageLabel.raise_()
        self.liveImage.raise_()
        self.currentSplitImage.raise_()
        self.widthLabel.raise_()
        self.heightLabel.raise_()
        self.fpsvalueLabel.raise_()
        self.widthSpinBox.raise_()
        self.heightSpinBox.raise_()
        self.captureregionLabel.raise_()
        self.fpslimitLabel.raise_()
        self.fpslimitSpinBox.raise_()
        self.currentsplitimagefileLabel.raise_()
        self.takescreenshotButton.raise_()
        self.xSpinBox.raise_()
        self.ySpinBox.raise_()
        self.yLabel.raise_()
        self.comparisonmethodComboBox.raise_()
        self.pauseDoubleSpinBox.raise_()
        self.comparisonmethodLabel.raise_()
        self.alignregionButton.raise_()
        self.groupDummySplitsCheckBox.raise_()
        self.selectwindowButton.raise_()
        self.imageloopLabel.raise_()
        self.pausehotkeyLabel.raise_()
        self.pausehotkeyLineEdit.raise_()
        self.setpausehotkeyButton.raise_()
        self.loopCheckBox.raise_()
        self.autostartonresetCheckBox.raise_()
        self.startImageReloadButton.raise_()
        self.startImageLabel.raise_()
        self.currentsimilaritythresholdLabel.raise_()
        self.currentsimilaritythresholdnumberLabel.raise_()
        MainWindow.setCentralWidget(self.centralwidget)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 632, 22))
        self.menuBar.setObjectName("menuBar")
        self.menuHelp = QtWidgets.QMenu(self.menuBar)
        self.menuHelp.setObjectName("menuHelp")
        self.menuFile = QtWidgets.QMenu(self.menuBar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menuBar)
        self.actionView_Help = QtGui.QAction(MainWindow)
        self.actionView_Help.setObjectName("actionView_Help")
        self.actionAbout = QtGui.QAction(MainWindow)
        self.actionAbout.setObjectName("actionAbout")
        self.actionSplit_Settings = QtGui.QAction(MainWindow)
        self.actionSplit_Settings.setObjectName("actionSplit_Settings")
        self.actionSave_Settings = QtGui.QAction(MainWindow)
        self.actionSave_Settings.setObjectName("actionSave_Settings")
        self.actionLoad_Settings = QtGui.QAction(MainWindow)
        self.actionLoad_Settings.setObjectName("actionLoad_Settings")
        self.actionSave_Settings_As = QtGui.QAction(MainWindow)
        self.actionSave_Settings_As.setObjectName("actionSave_Settings_As")
        self.actionCheck_for_Updates = QtGui.QAction(MainWindow)
        self.actionCheck_for_Updates.setObjectName("actionCheck_for_Updates")
        self.actionCheck_for_Updates_on_Open = QtGui.QAction(MainWindow)
        self.actionCheck_for_Updates_on_Open.setCheckable(True)
        self.actionCheck_for_Updates_on_Open.setChecked(True)
        self.actionCheck_for_Updates_on_Open.setEnabled(True)
        self.actionCheck_for_Updates_on_Open.setObjectName(
            "actionCheck_for_Updates_on_Open")
        self.menuHelp.addAction(self.actionView_Help)
        self.menuHelp.addAction(self.actionAbout)
        self.menuHelp.addAction(self.actionCheck_for_Updates)
        self.menuHelp.addAction(self.actionCheck_for_Updates_on_Open)
        self.menuFile.addAction(self.actionSave_Settings)
        self.menuFile.addAction(self.actionSave_Settings_As)
        self.menuFile.addAction(self.actionLoad_Settings)
        self.menuBar.addAction(self.menuFile.menuAction())
        self.menuBar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.splitimagefolderLineEdit, self.xSpinBox)
        MainWindow.setTabOrder(self.xSpinBox, self.ySpinBox)
        MainWindow.setTabOrder(self.ySpinBox, self.widthSpinBox)
        MainWindow.setTabOrder(self.widthSpinBox, self.heightSpinBox)
        MainWindow.setTabOrder(self.heightSpinBox, self.fpslimitSpinBox)
        MainWindow.setTabOrder(self.fpslimitSpinBox, self.liveimageCheckBox)
        MainWindow.setTabOrder(self.liveimageCheckBox,
                               self.comparisonmethodComboBox)
        MainWindow.setTabOrder(self.comparisonmethodComboBox,
                               self.showlivesimilarityCheckBox)
        MainWindow.setTabOrder(self.showlivesimilarityCheckBox,
                               self.showhighestsimilarityCheckBox)
        MainWindow.setTabOrder(self.showhighestsimilarityCheckBox,
                               self.similaritythresholdDoubleSpinBox)
        MainWindow.setTabOrder(self.similaritythresholdDoubleSpinBox,
                               self.pauseDoubleSpinBox)
        MainWindow.setTabOrder(self.pauseDoubleSpinBox, self.splitLineEdit)
        MainWindow.setTabOrder(self.splitLineEdit, self.resetLineEdit)
        MainWindow.setTabOrder(self.resetLineEdit, self.skipsplitLineEdit)
        MainWindow.setTabOrder(self.skipsplitLineEdit, self.undosplitLineEdit)
        MainWindow.setTabOrder(self.undosplitLineEdit,
                               self.groupDummySplitsCheckBox)
コード例 #12
0
    def setupUi(self, Preferences):
        Preferences.setObjectName("Preferences")
        Preferences.resize(465, 374)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Preferences.sizePolicy().hasHeightForWidth())
        Preferences.setSizePolicy(sizePolicy)
        self.verticalLayout = QtWidgets.QVBoxLayout(Preferences)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabWidget = QtWidgets.QTabWidget(Preferences)
        self.tabWidget.setObjectName("tabWidget")
        self.settings = QtWidgets.QWidget()
        self.settings.setObjectName("settings")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.settings)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.tabWidget_2 = QtWidgets.QTabWidget(self.settings)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget_2.sizePolicy().hasHeightForWidth())
        self.tabWidget_2.setSizePolicy(sizePolicy)
        self.tabWidget_2.setObjectName("tabWidget_2")
        self.tab_honeycomb = QtWidgets.QWidget()
        self.tab_honeycomb.setObjectName("tab_honeycomb")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_honeycomb)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.formLayout_3 = QtWidgets.QFormLayout()
        self.formLayout_3.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.FieldsStayAtSizeHint)
        self.formLayout_3.setContentsMargins(-1, 0, -1, 0)
        self.formLayout_3.setObjectName("formLayout_3")
        self.dimensionsLabel1 = QtWidgets.QLabel(self.tab_honeycomb)
        self.dimensionsLabel1.setObjectName("dimensionsLabel1")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.dimensionsLabel1)
        self.honeycombGLayout = QtWidgets.QGridLayout()
        self.honeycombGLayout.setContentsMargins(-1, 3, -1, -1)
        self.honeycombGLayout.setObjectName("honeycombGLayout")
        self.honeycombRowsSpinBox = QtWidgets.QSpinBox(self.tab_honeycomb)
        self.honeycombRowsSpinBox.setMinimum(6)
        self.honeycombRowsSpinBox.setMaximum(200)
        self.honeycombRowsSpinBox.setProperty("value", 30)
        self.honeycombRowsSpinBox.setObjectName("honeycombRowsSpinBox")
        self.honeycombGLayout.addWidget(self.honeycombRowsSpinBox, 0, 0, 1, 1)
        self.honeycombColsSpinBox = QtWidgets.QSpinBox(self.tab_honeycomb)
        self.honeycombColsSpinBox.setMinimum(6)
        self.honeycombColsSpinBox.setMaximum(200)
        self.honeycombColsSpinBox.setProperty("value", 32)
        self.honeycombColsSpinBox.setObjectName("honeycombColsSpinBox")
        self.honeycombGLayout.addWidget(self.honeycombColsSpinBox, 0, 1, 1, 1)
        self.hRowsLabel = QtWidgets.QLabel(self.tab_honeycomb)
        self.hRowsLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.hRowsLabel.setObjectName("hRowsLabel")
        self.honeycombGLayout.addWidget(self.hRowsLabel, 1, 0, 1, 1)
        self.hColsLabel = QtWidgets.QLabel(self.tab_honeycomb)
        self.hColsLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.hColsLabel.setObjectName("hColsLabel")
        self.honeycombGLayout.addWidget(self.hColsLabel, 1, 1, 1, 1)
        self.honeycombStepsSpinBox = QtWidgets.QSpinBox(self.tab_honeycomb)
        self.honeycombStepsSpinBox.setMinimum(2)
        self.honeycombStepsSpinBox.setMaximum(2000)
        self.honeycombStepsSpinBox.setSingleStep(1)
        self.honeycombStepsSpinBox.setProperty("value", 2)
        self.honeycombStepsSpinBox.setObjectName("honeycombStepsSpinBox")
        self.honeycombGLayout.addWidget(self.honeycombStepsSpinBox, 0, 2, 1, 1)
        self.hBasesLabel = QtWidgets.QLabel(self.tab_honeycomb)
        self.hBasesLabel.setObjectName("hBasesLabel")
        self.honeycombGLayout.addWidget(self.hBasesLabel, 1, 2, 1, 1)
        self.formLayout_3.setLayout(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.honeycombGLayout)
        self.verticalLayout_3.addLayout(self.formLayout_3)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/part/dlg_honeycomb"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.tabWidget_2.addTab(self.tab_honeycomb, icon, "")
        self.tab_square = QtWidgets.QWidget()
        self.tab_square.setObjectName("tab_square")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_square)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.formLayout_2 = QtWidgets.QFormLayout()
        self.formLayout_2.setContentsMargins(-1, 0, -1, 0)
        self.formLayout_2.setObjectName("formLayout_2")
        self.dimensionsLabel2 = QtWidgets.QLabel(self.tab_square)
        self.dimensionsLabel2.setObjectName("dimensionsLabel2")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.dimensionsLabel2)
        self.squareGLayout = QtWidgets.QGridLayout()
        self.squareGLayout.setContentsMargins(-1, 3, -1, -1)
        self.squareGLayout.setObjectName("squareGLayout")
        self.squareRowsSpinBox = QtWidgets.QSpinBox(self.tab_square)
        self.squareRowsSpinBox.setMinimum(6)
        self.squareRowsSpinBox.setMaximum(200)
        self.squareRowsSpinBox.setProperty("value", 30)
        self.squareRowsSpinBox.setObjectName("squareRowsSpinBox")
        self.squareGLayout.addWidget(self.squareRowsSpinBox, 0, 0, 1, 1)
        self.squareColsSpinBox = QtWidgets.QSpinBox(self.tab_square)
        self.squareColsSpinBox.setMinimum(6)
        self.squareColsSpinBox.setMaximum(200)
        self.squareColsSpinBox.setProperty("value", 30)
        self.squareColsSpinBox.setObjectName("squareColsSpinBox")
        self.squareGLayout.addWidget(self.squareColsSpinBox, 0, 1, 1, 1)
        self.sRowsLabel = QtWidgets.QLabel(self.tab_square)
        self.sRowsLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.sRowsLabel.setObjectName("sRowsLabel")
        self.squareGLayout.addWidget(self.sRowsLabel, 1, 0, 1, 1)
        self.sColsLabel = QtWidgets.QLabel(self.tab_square)
        self.sColsLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.sColsLabel.setObjectName("sColsLabel")
        self.squareGLayout.addWidget(self.sColsLabel, 1, 1, 1, 1)
        self.squareStepsSpinBox = QtWidgets.QSpinBox(self.tab_square)
        self.squareStepsSpinBox.setMinimum(2)
        self.squareStepsSpinBox.setMaximum(2000)
        self.squareStepsSpinBox.setObjectName("squareStepsSpinBox")
        self.squareGLayout.addWidget(self.squareStepsSpinBox, 0, 2, 1, 1)
        self.sBasesLabel = QtWidgets.QLabel(self.tab_square)
        self.sBasesLabel.setObjectName("sBasesLabel")
        self.squareGLayout.addWidget(self.sBasesLabel, 1, 2, 1, 1)
        self.formLayout_2.setLayout(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.squareGLayout)
        self.verticalLayout_2.addLayout(self.formLayout_2)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/part/dlg_square"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.tabWidget_2.addTab(self.tab_square, icon1, "")
        self.verticalLayout_4.addWidget(self.tabWidget_2)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.FieldsStayAtSizeHint)
        self.formLayout.setObjectName("formLayout")
        self.autoscafLabel = QtWidgets.QLabel(self.settings)
        self.autoscafLabel.setObjectName("autoscafLabel")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.autoscafLabel)
        self.autoScafComboBox = QtWidgets.QComboBox(self.settings)
        self.autoScafComboBox.setObjectName("autoScafComboBox")
        self.autoScafComboBox.addItem("")
        self.autoScafComboBox.addItem("")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.autoScafComboBox)
        self.zoomSpeedLabel = QtWidgets.QLabel(self.settings)
        self.zoomSpeedLabel.setObjectName("zoomSpeedLabel")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.zoomSpeedLabel)
        self.zoomSpeedSlider = QtWidgets.QSlider(self.settings)
        self.zoomSpeedSlider.setMinimumSize(QtCore.QSize(140, 0))
        self.zoomSpeedSlider.setMinimum(1)
        self.zoomSpeedSlider.setMaximum(100)
        self.zoomSpeedSlider.setSingleStep(1)
        self.zoomSpeedSlider.setProperty("value", 50)
        self.zoomSpeedSlider.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.zoomSpeedSlider.setInvertedControls(False)
        self.zoomSpeedSlider.setTickPosition(QtWidgets.QSlider.TickPosition.TicksBelow)
        self.zoomSpeedSlider.setTickInterval(0)
        self.zoomSpeedSlider.setObjectName("zoomSpeedSlider")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.zoomSpeedSlider)
        self.defaultToolComboBox = QtWidgets.QComboBox(self.settings)
        self.defaultToolComboBox.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
        self.defaultToolComboBox.setObjectName("defaultToolComboBox")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/pathtools/dlg_select"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.defaultToolComboBox.addItem(icon2, "")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/pathtools/dlg_pencil"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.defaultToolComboBox.addItem(icon3, "")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/pathtools/dlg_paint"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.defaultToolComboBox.addItem(icon4, "")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/pathtools/dlg_addseq"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        self.defaultToolComboBox.addItem(icon5, "")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.defaultToolComboBox)
        self.defaultToolLabel = QtWidgets.QLabel(self.settings)
        self.defaultToolLabel.setObjectName("defaultToolLabel")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.defaultToolLabel)
        self.verticalLayout_4.addLayout(self.formLayout)
        self.buttonBox = QtWidgets.QDialogButtonBox(self.settings)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.RestoreDefaults)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout_4.addWidget(self.buttonBox)
        self.tabWidget.addTab(self.settings, "")
        self.plugins = QtWidgets.QWidget()
        self.plugins.setObjectName("plugins")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.plugins)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.pluginTableWidget = QtWidgets.QTableWidget(self.plugins)
        self.pluginTableWidget.setObjectName("pluginTableWidget")
        self.pluginTableWidget.setColumnCount(1)
        self.pluginTableWidget.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.pluginTableWidget.setHorizontalHeaderItem(0, item)
        self.pluginTableWidget.horizontalHeader().setStretchLastSection(True)
        self.verticalLayout_5.addWidget(self.pluginTableWidget)
        self.addPluginButton = QtWidgets.QPushButton(self.plugins)
        self.addPluginButton.setObjectName("addPluginButton")
        self.verticalLayout_5.addWidget(self.addPluginButton)
        self.tabWidget.addTab(self.plugins, "")
        self.verticalLayout.addWidget(self.tabWidget)
        self.actionClose = QtGui.QAction(Preferences)
        self.actionClose.setObjectName("actionClose")

        self.retranslateUi(Preferences)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        self.defaultToolComboBox.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Preferences)
コード例 #13
0
ファイル: nepyh.py プロジェクト: cyb3rw0lf/nepyh
    def __init__(self):
        super(MainGUI, self).__init__()

        # Create empty text box
        # textEdit = QtWidgets.QTextEdit()
        # self.setCentralWidget(textEdit)

        # Menubar Quit action:
        quitAction = QtGui.QAction('&Quit', self)
        quitAction.setShortcut('Ctrl+Q')
        quitAction.setStatusTip('Exit application')
        quitAction.triggered.connect(QtWidgets.QApplication.quit)

        # Menubar Documentation action:
        documentationAction = QtGui.QAction('&Documentation', self)
        documentationAction.setShortcut('F1')
        documentationAction.setStatusTip('Help and guidelines on NEPyH')
        documentationAction.triggered.connect(
            lambda: QtGui.QDesktopServices.openUrl(QtCore.QUrl(__homepage__)))

        # Menubar YAML lint action:
        yamllintAction = QtGui.QAction('&YAML lint', self)
        yamllintAction.setStatusTip('Online YAML validation tool')
        yamllintAction.triggered.connect(
            lambda: QtGui.QDesktopServices.openUrl(QtCore.QUrl(__YAMLlint__)))

        # Menubar Issues action:
        issuesAction = QtGui.QAction('&Issues', self)
        issuesAction.setStatusTip('Report bugs and issues')
        issuesAction.triggered.connect(
            lambda: QtGui.QDesktopServices.openUrl(QtCore.QUrl(__issues__)))

        # Menubar SW Upgrade action:
        swupgradeAction = QtGui.QAction('&SW Upgrade', self)
        swupgradeAction.setStatusTip('Check for new software versions')

        # Menubar About action:
        aboutAction = QtGui.QAction('&About', self)
        aboutAction.setStatusTip('Information about NEPyH')
        aboutAction.triggered.connect(lambda: self.about())

        # Create a status bar
        self.statusBar()

        # Create a menu bar
        menubar = self.menuBar()

        # Menubar File
        fileMenu = menubar.addMenu('&File')
        fileMenu.addAction(quitAction)

        # Menubar Help
        helpMenu = menubar.addMenu('&Help')
        helpMenu.addAction(documentationAction)
        helpMenu.addAction(yamllintAction)
        helpMenu.addAction(issuesAction)
        helpMenu.addAction(swupgradeAction)
        helpMenu.addAction(aboutAction)

        # Create a toolbar
        # toolbar = self.addToolBar('CFG Gen')
        # toolbar.addAction(changeLayoutCFG)
        # toolbar = self.addToolBar('Shut / No Shut')

        # Create a central Widgets
        centralWidget = QtWidgets.QWidget()

        # Create a Layout for the central Widget
        centralLayout = QtWidgets.QGridLayout()

        # Config generator Layout elements
        # Labels
        self.databaseLb = QtWidgets.QLabel('Database: (YAML)')
        self.templateLb = QtWidgets.QLabel('Template: (Jinja2)')
        self.projectLb = QtWidgets.QLabel('Project name:')
        self.fileExtLb = QtWidgets.QLabel('Output file extension:')
        # Text lines
        self.databaseEdit = DragDropQLineEdit(
            '< Drag & Drop a YAML file or Browse >', self, 'YAML')
        self.databaseEdit.focusInEvent = bind(
            lambda w, e: QtCore.QTimer.singleShot(0, w.selectAll),
            self.databaseEdit
        )  # This is needed to select all text when click on LineEdit
        self.templateEdit = DragDropQLineEdit(
            '< Drag & Drop a Jinja2 file or Browse >', self, 'JINJA')
        self.templateEdit.focusInEvent = bind(
            lambda w, e: QtCore.QTimer.singleShot(0, w.selectAll),
            self.templateEdit
        )  # This is needed to select all text when click on LineEdit
        self.projectEdit = QtWidgets.QLineEdit(defFolder)
        self.projectEdit.focusInEvent = bind(
            lambda w, e: QtCore.QTimer.singleShot(0, w.selectAll),
            self.projectEdit
        )  # This is needed to select all text when click on LineEdit
        self.fileExtEdit = QtWidgets.QLineEdit('.txt')
        self.fileExtEdit.focusInEvent = bind(
            lambda w, e: QtCore.QTimer.singleShot(0, w.selectAll),
            self.fileExtEdit
        )  # This is needed to select all text when click on LineEdit
        # Buttons
        self.databaseBtn = QtWidgets.QPushButton('Browse')
        self.databaseBtn.clicked.connect(
            lambda: self._getFilePath(self.databaseEdit))
        self.templateBtn = QtWidgets.QPushButton('Browse')
        self.templateBtn.clicked.connect(
            lambda: self._getFilePath(self.templateEdit))
        self.projectBtn = QtWidgets.QPushButton('Update')
        self.projectBtn.clicked.connect(self._updateDefFolder)
        self.cfgenBtn = QtWidgets.QPushButton('Run')
        self.cfgenBtn.clicked.connect(self.config_gen)

        # Config generator Layout - make a grid and stitch all together
        cfgenLayout = QtWidgets.QGridLayout()
        cfgenLayout.setSpacing(10)
        cfgenLayout.addWidget(self.databaseLb, 1, 0)
        cfgenLayout.addWidget(self.databaseEdit, 1, 1)
        cfgenLayout.addWidget(self.databaseBtn, 1, 2)

        cfgenLayout.addWidget(self.templateLb, 2, 0)
        cfgenLayout.addWidget(self.templateEdit, 2, 1)
        cfgenLayout.addWidget(self.templateBtn, 2, 2)

        cfgenLayout.addWidget(self.projectLb, 3, 0)
        cfgenLayout.addWidget(self.projectEdit, 3, 1)
        cfgenLayout.addWidget(self.projectBtn, 3, 2)

        cfgenLayout.addWidget(self.fileExtLb, 4, 0)
        cfgenLayout.addWidget(self.fileExtEdit, 4, 1)

        cfgenLayout.addWidget(self.cfgenBtn, 4, 2)

        # Set the default Layout
        # centralWidget.setLayout(centralLayout)
        centralWidget.setLayout(cfgenLayout)

        # Set the Widget
        self.setCentralWidget(centralWidget)

        # Set main windows size, position, title and icons
        self.resize(600, 10)
        self.center()
        self.setWindowTitle(__appName__)
        self.setWindowIcon(QtGui.QIcon(__icon__))
        self.show()

        # Override system excepthook to show error within the GUI
        sys.excepthook = self._excepthook
コード例 #14
0
ファイル: main.py プロジェクト: SamSchott/maestral-qt
    def setup_ui_linked(self):

        self.autostart = None
        self.settings_window = SettingsWindow(self, self.mdbx)

        self.setToolTip(IDLE)

        # ------------- populate context menu -------------------

        self.menu.clear()

        openDropboxFolderAction = self.menu.addAction("Open Dropbox Folder")
        openDropboxFolderAction.triggered.connect(self.on_folder_clicked)
        openWebsiteAction = self.menu.addAction("Launch Dropbox Website")
        openWebsiteAction.triggered.connect(self.on_website_clicked)

        self.menu.addSeparator()

        self.accountEmailAction = self.menu.addAction(
            self.mdbx.get_state("account", "email")
        )
        self.accountEmailAction.setEnabled(False)

        self.accountUsageAction = self.menu.addAction(
            self.mdbx.get_state("account", "usage")
        )
        self.accountUsageAction.setEnabled(False)

        self.menu.addSeparator()

        self.statusAction = self.menu.addAction(IDLE)
        self.statusAction.setEnabled(False)
        self.pauseAction = self.menu.addAction(
            self.RESUME_TEXT if self.mdbx.paused else self.PAUSE_TEXT
        )
        self.pauseAction.triggered.connect(self.on_start_stop_clicked)

        self.activityAction = self.menu.addAction("Show Recent Changes...")
        self.activityAction.triggered.connect(self.on_activity_clicked)

        self.menu.aboutToShow.connect(self.update_snoozed)

        self.menu.addSeparator()

        self.snoozeMenu = self.menu.addMenu("Snooze Notifications")
        self.snooze30 = self.snoozeMenu.addAction("For the next 30 minutes")
        self.snooze60 = self.snoozeMenu.addAction("For the next hour")
        self.snooze480 = self.snoozeMenu.addAction("For the next 8 hours")

        def snooze_for(minutes):
            self.mdbx.notification_snooze = minutes

        self.snooze30.triggered.connect(lambda: snooze_for(30))
        self.snooze60.triggered.connect(lambda: snooze_for(60))
        self.snooze480.triggered.connect(lambda: snooze_for(480))
        self.snoozeSeparator = QtGui.QAction()
        self.snoozeSeparator.setSeparator(True)

        self.resumeNotificationsAction = QtGui.QAction("Turn on notifications")
        self.resumeNotificationsAction.triggered.connect(lambda: snooze_for(0))

        self.syncIssuesAction = self.menu.addAction("Show Sync Issues...")
        self.syncIssuesAction.triggered.connect(self.on_sync_issues_clicked)
        rebuildAction = self.menu.addAction("Rebuild index...")
        rebuildAction.triggered.connect(self.on_rebuild_clicked)

        self.menu.addSeparator()

        preferencesAction = self.menu.addAction("Preferences...")
        preferencesAction.triggered.connect(self.on_settings_clicked)
        updatesAction = self.menu.addAction("Check for Updates...")
        updatesAction.triggered.connect(self.on_check_for_updates_clicked)
        helpAction = self.menu.addAction("Help Center")
        helpAction.triggered.connect(self.on_help_clicked)

        self.menu.addSeparator()

        if self._started:
            quitAction = self.menu.addAction("Quit Maestral")
        else:
            quitAction = self.menu.addAction("Quit Maestral GUI")
        quitAction.triggered.connect(self.quit)

        # --------------- switch to idle icon -------------------
        self.setIcon(IDLE)

        # ------------ subscribe to status updates --------------
        self._wait_for_status.start()
コード例 #15
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.setEnabled(True)
        MainWindow.resize(1060, 760)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setMinimumSize(QtCore.QSize(1060, 760))
        MainWindow.setMaximumSize(QtCore.QSize(1060, 760))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        MainWindow.setFont(font)
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(
                "/Users/wuyang/OneDrive - drwulab/Work/my_scripts/r2g_gui/src/r2g_gui/QtDesigner/../../../../../../OneDrive - drwulab/Work/my_scripts/r2g.gui.dev/images/start.png"
            ), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setStyleSheet("")
        MainWindow.setDocumentMode(False)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.aligning_box = QtWidgets.QGroupBox(self.centralwidget)
        self.aligning_box.setEnabled(True)
        self.aligning_box.setGeometry(QtCore.QRect(20, 10, 471, 391))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.aligning_box.setFont(font)
        self.aligning_box.setObjectName("aligning_box")
        self.line_4 = QtWidgets.QFrame(self.aligning_box)
        self.line_4.setGeometry(QtCore.QRect(20, 690, 431, 16))
        self.line_4.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line_4.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line_4.setObjectName("line_4")
        self.query_file = QtWidgets.QLineEdit(self.aligning_box)
        self.query_file.setGeometry(QtCore.QRect(20, 190, 341, 23))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.query_file.setFont(font)
        self.query_file.setObjectName("query_file")
        self.sra = QtWidgets.QLineEdit(self.aligning_box)
        self.sra.setGeometry(QtCore.QRect(20, 270, 431, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        self.sra.setFont(font)
        self.sra.setText("")
        self.sra.setObjectName("sra")
        self.query = QtWidgets.QPlainTextEdit(self.aligning_box)
        self.query.setGeometry(QtCore.QRect(20, 70, 431, 81))
        font = QtGui.QFont()
        font.setFamily("Ubuntu Mono")
        font.setPointSize(10)
        self.query.setFont(font)
        self.query.viewport().setProperty(
            "cursor", QtGui.QCursor(QtCore.Qt.CursorShape.IBeamCursor))
        self.query.setMouseTracking(True)
        self.query.setFocusPolicy(QtCore.Qt.FocusPolicy.ClickFocus)
        self.query.setStyleSheet("")
        self.query.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarPolicy.ScrollBarAsNeeded)
        self.query.setTabChangesFocus(True)
        self.query.setOverwriteMode(False)
        self.query.setObjectName("query")
        self.program = QtWidgets.QComboBox(self.aligning_box)
        self.program.setGeometry(QtCore.QRect(20, 350, 431, 31))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        self.program.setFont(font)
        self.program.setObjectName("program")
        self.program.addItem("")
        self.program.addItem("")
        self.program.addItem("")
        self.program.addItem("")
        self.program.addItem("")
        self.line_1 = QtWidgets.QFrame(self.aligning_box)
        self.line_1.setGeometry(QtCore.QRect(20, 300, 431, 16))
        self.line_1.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line_1.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line_1.setObjectName("line_1")
        self.lbl_sra = QtWidgets.QLabel(self.aligning_box)
        self.lbl_sra.setGeometry(QtCore.QRect(20, 240, 431, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.lbl_sra.setFont(font)
        self.lbl_sra.setObjectName("lbl_sra")
        self.line_0 = QtWidgets.QFrame(self.aligning_box)
        self.line_0.setGeometry(QtCore.QRect(20, 220, 431, 16))
        self.line_0.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line_0.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line_0.setObjectName("line_0")
        self.lbl_program = QtWidgets.QLabel(self.aligning_box)
        self.lbl_program.setGeometry(QtCore.QRect(20, 320, 431, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        self.lbl_program.setFont(font)
        self.lbl_program.setObjectName("lbl_program")
        self.lbl_queryfile = QtWidgets.QLabel(self.aligning_box)
        self.lbl_queryfile.setGeometry(QtCore.QRect(20, 160, 301, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        self.lbl_queryfile.setFont(font)
        self.lbl_queryfile.setObjectName("lbl_queryfile")
        self.browser_file_button = QtWidgets.QToolButton(self.aligning_box)
        self.browser_file_button.setGeometry(QtCore.QRect(377, 190, 71, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.browser_file_button.setFont(font)
        self.browser_file_button.setObjectName("browser_file_button")
        self.lbl_query_len = QtWidgets.QLabel(self.aligning_box)
        self.lbl_query_len.setGeometry(QtCore.QRect(248, 40, 201, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setItalic(True)
        self.lbl_query_len.setFont(font)
        self.lbl_query_len.setAlignment(QtCore.Qt.Alignment.AlignRight
                                        | QtCore.Qt.Alignment.AlignTrailing
                                        | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_query_len.setObjectName("lbl_query_len")
        self.lbl_query = QtWidgets.QLabel(self.aligning_box)
        self.lbl_query.setGeometry(QtCore.QRect(20, 40, 301, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.lbl_query.setFont(font)
        self.lbl_query.setObjectName("lbl_query")
        self.submit = QtWidgets.QPushButton(self.centralwidget)
        self.submit.setGeometry(QtCore.QRect(950, 670, 91, 31))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setItalic(True)
        self.submit.setFont(font)
        self.submit.setAccessibleName("")
        self.submit.setStyleSheet("")
        self.submit.setIcon(icon)
        self.submit.setDefault(False)
        self.submit.setFlat(False)
        self.submit.setObjectName("submit")
        self.assembling_box = QtWidgets.QGroupBox(self.centralwidget)
        self.assembling_box.setGeometry(QtCore.QRect(20, 410, 471, 291))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setItalic(False)
        self.assembling_box.setFont(font)
        self.assembling_box.setObjectName("assembling_box")
        self.cut = QtWidgets.QLineEdit(self.assembling_box)
        self.cut.setGeometry(QtCore.QRect(230, 30, 221, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        font.setItalic(False)
        self.cut.setFont(font)
        self.cut.setInputMask("")
        self.cut.setMaxLength(5)
        self.cut.setAlignment(QtCore.Qt.Alignment.AlignRight
                              | QtCore.Qt.Alignment.AlignTrailing
                              | QtCore.Qt.Alignment.AlignVCenter)
        self.cut.setObjectName("cut")
        self.min_contig = QtWidgets.QLineEdit(self.assembling_box)
        self.min_contig.setGeometry(QtCore.QRect(230, 160, 221, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        font.setItalic(False)
        self.min_contig.setFont(font)
        self.min_contig.setInputMask("")
        self.min_contig.setMaxLength(5)
        self.min_contig.setAlignment(QtCore.Qt.Alignment.AlignRight
                                     | QtCore.Qt.Alignment.AlignTrailing
                                     | QtCore.Qt.Alignment.AlignVCenter)
        self.min_contig.setObjectName("min_contig")
        self.lbl_gb = QtWidgets.QLabel(self.assembling_box)
        self.lbl_gb.setGeometry(QtCore.QRect(400, 260, 41, 31))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.lbl_gb.setFont(font)
        self.lbl_gb.setAlignment(QtCore.Qt.Alignment.AlignRight
                                 | QtCore.Qt.Alignment.AlignTrailing
                                 | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_gb.setObjectName("lbl_gb")
        self.stage = QtWidgets.QComboBox(self.assembling_box)
        self.stage.setGeometry(QtCore.QRect(230, 220, 221, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        self.stage.setFont(font)
        self.stage.setCursor(
            QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
        self.stage.setObjectName("stage")
        self.stage.addItem("")
        self.stage.addItem("")
        self.stage.addItem("")
        self.stage.addItem("")
        self.stage.addItem("")
        self.trim_para = QtWidgets.QLineEdit(self.assembling_box)
        self.trim_para.setGeometry(QtCore.QRect(230, 190, 221, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        font.setItalic(False)
        self.trim_para.setFont(font)
        self.trim_para.setInputMask("")
        self.trim_para.setText("")
        self.trim_para.setMaxLength(5)
        self.trim_para.setAlignment(QtCore.Qt.Alignment.AlignLeading
                                    | QtCore.Qt.Alignment.AlignLeft
                                    | QtCore.Qt.Alignment.AlignVCenter)
        self.trim_para.setObjectName("trim_para")
        self.lbl_maxtarget = QtWidgets.QLabel(self.assembling_box)
        self.lbl_maxtarget.setGeometry(QtCore.QRect(-10, 60, 201, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setWeight(50)
        self.lbl_maxtarget.setFont(font)
        self.lbl_maxtarget.setAlignment(QtCore.Qt.Alignment.AlignRight
                                        | QtCore.Qt.Alignment.AlignTrailing
                                        | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_maxtarget.setObjectName("lbl_maxtarget")
        self.evalue = QtWidgets.QLineEdit(self.assembling_box)
        self.evalue.setGeometry(QtCore.QRect(230, 90, 221, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        self.evalue.setFont(font)
        self.evalue.setAutoFillBackground(False)
        self.evalue.setAlignment(QtCore.Qt.Alignment.AlignRight
                                 | QtCore.Qt.Alignment.AlignTrailing
                                 | QtCore.Qt.Alignment.AlignVCenter)
        self.evalue.setObjectName("evalue")
        self.lbl_stage = QtWidgets.QLabel(self.assembling_box)
        self.lbl_stage.setGeometry(QtCore.QRect(130, 220, 61, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setWeight(50)
        self.lbl_stage.setFont(font)
        self.lbl_stage.setAlignment(QtCore.Qt.Alignment.AlignRight
                                    | QtCore.Qt.Alignment.AlignTrailing
                                    | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_stage.setObjectName("lbl_stage")
        self.lbl_trimpara = QtWidgets.QLabel(self.assembling_box)
        self.lbl_trimpara.setGeometry(QtCore.QRect(40, 190, 151, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setWeight(50)
        self.lbl_trimpara.setFont(font)
        self.lbl_trimpara.setAlignment(QtCore.Qt.Alignment.AlignRight
                                       | QtCore.Qt.Alignment.AlignTrailing
                                       | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_trimpara.setObjectName("lbl_trimpara")
        self.filter = QtWidgets.QCheckBox(self.assembling_box)
        self.filter.setEnabled(True)
        self.filter.setGeometry(QtCore.QRect(260, 120, 191, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.filter.setFont(font)
        self.filter.setChecked(True)
        self.filter.setObjectName("filter")
        self.cpu = QtWidgets.QLineEdit(self.assembling_box)
        self.cpu.setGeometry(QtCore.QRect(90, 260, 71, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        font.setItalic(False)
        self.cpu.setFont(font)
        self.cpu.setFocusPolicy(QtCore.Qt.FocusPolicy.ClickFocus)
        self.cpu.setInputMask("")
        self.cpu.setText("")
        self.cpu.setMaxLength(5)
        self.cpu.setAlignment(QtCore.Qt.Alignment.AlignRight
                              | QtCore.Qt.Alignment.AlignTrailing
                              | QtCore.Qt.Alignment.AlignVCenter)
        self.cpu.setObjectName("cpu")
        self.line_3 = QtWidgets.QFrame(self.assembling_box)
        self.line_3.setGeometry(QtCore.QRect(20, 140, 431, 16))
        self.line_3.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line_3.setObjectName("line_3")
        self.max_memory = QtWidgets.QLineEdit(self.assembling_box)
        self.max_memory.setGeometry(QtCore.QRect(350, 260, 71, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        font.setItalic(False)
        self.max_memory.setFont(font)
        self.max_memory.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
        self.max_memory.setInputMask("")
        self.max_memory.setText("")
        self.max_memory.setMaxLength(5)
        self.max_memory.setAlignment(QtCore.Qt.Alignment.AlignRight
                                     | QtCore.Qt.Alignment.AlignTrailing
                                     | QtCore.Qt.Alignment.AlignVCenter)
        self.max_memory.setObjectName("max_memory")
        self.trim = QtWidgets.QCheckBox(self.assembling_box)
        self.trim.setGeometry(QtCore.QRect(30, 190, 16, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(14)
        self.trim.setFont(font)
        self.trim.setText("")
        self.trim.setChecked(True)
        self.trim.setObjectName("trim")
        self.lbl_evalue = QtWidgets.QLabel(self.assembling_box)
        self.lbl_evalue.setGeometry(QtCore.QRect(30, 90, 161, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setWeight(50)
        self.lbl_evalue.setFont(font)
        self.lbl_evalue.setAlignment(QtCore.Qt.Alignment.AlignRight
                                     | QtCore.Qt.Alignment.AlignTrailing
                                     | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_evalue.setObjectName("lbl_evalue")
        self.lbl_cut = QtWidgets.QLabel(self.assembling_box)
        self.lbl_cut.setGeometry(QtCore.QRect(20, 30, 171, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setWeight(50)
        self.lbl_cut.setFont(font)
        self.lbl_cut.setAlignment(QtCore.Qt.Alignment.AlignRight
                                  | QtCore.Qt.Alignment.AlignTrailing
                                  | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_cut.setObjectName("lbl_cut")
        self.lbl_cpu = QtWidgets.QLabel(self.assembling_box)
        self.lbl_cpu.setGeometry(QtCore.QRect(20, 260, 51, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setWeight(50)
        self.lbl_cpu.setFont(font)
        self.lbl_cpu.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
        self.lbl_cpu.setAlignment(QtCore.Qt.Alignment.AlignRight
                                  | QtCore.Qt.Alignment.AlignTrailing
                                  | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_cpu.setObjectName("lbl_cpu")
        self.lbl_mem = QtWidgets.QLabel(self.assembling_box)
        self.lbl_mem.setGeometry(QtCore.QRect(210, 260, 121, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setWeight(50)
        self.lbl_mem.setFont(font)
        self.lbl_mem.setAlignment(QtCore.Qt.Alignment.AlignRight
                                  | QtCore.Qt.Alignment.AlignTrailing
                                  | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_mem.setObjectName("lbl_mem")
        self.max_num_seq = QtWidgets.QLineEdit(self.assembling_box)
        self.max_num_seq.setGeometry(QtCore.QRect(230, 60, 221, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        font.setItalic(False)
        self.max_num_seq.setFont(font)
        self.max_num_seq.setInputMask("")
        self.max_num_seq.setMaxLength(5)
        self.max_num_seq.setAlignment(QtCore.Qt.Alignment.AlignRight
                                      | QtCore.Qt.Alignment.AlignTrailing
                                      | QtCore.Qt.Alignment.AlignVCenter)
        self.max_num_seq.setObjectName("max_num_seq")
        self.lbl_filter = QtWidgets.QLabel(self.assembling_box)
        self.lbl_filter.setGeometry(QtCore.QRect(140, 120, 51, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setWeight(50)
        self.lbl_filter.setFont(font)
        self.lbl_filter.setAlignment(QtCore.Qt.Alignment.AlignRight
                                     | QtCore.Qt.Alignment.AlignTrailing
                                     | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_filter.setObjectName("lbl_filter")
        self.lbl_mincontig = QtWidgets.QLabel(self.assembling_box)
        self.lbl_mincontig.setGeometry(QtCore.QRect(-10, 160, 201, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setWeight(50)
        self.lbl_mincontig.setFont(font)
        self.lbl_mincontig.setAlignment(QtCore.Qt.Alignment.AlignRight
                                        | QtCore.Qt.Alignment.AlignTrailing
                                        | QtCore.Qt.Alignment.AlignVCenter)
        self.lbl_mincontig.setObjectName("lbl_mincontig")
        self.output_box = QtWidgets.QGroupBox(self.centralwidget)
        self.output_box.setEnabled(True)
        self.output_box.setGeometry(QtCore.QRect(520, 190, 521, 461))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.output_box.setFont(font)
        self.output_box.setObjectName("output_box")
        self.output_log = QtWidgets.QTextBrowser(self.output_box)
        self.output_log.setEnabled(True)
        self.output_log.setGeometry(QtCore.QRect(20, 40, 481, 401))
        font = QtGui.QFont()
        font.setFamily("DejaVu Sans Mono")
        font.setPointSize(12)
        self.output_log.setFont(font)
        self.output_log.viewport().setProperty(
            "cursor", QtGui.QCursor(QtCore.Qt.CursorShape.IBeamCursor))
        self.output_log.setStyleSheet("")
        self.output_log.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
        self.output_log.setOpenExternalLinks(True)
        self.output_log.setObjectName("output_log")
        self.reset = QtWidgets.QPushButton(self.centralwidget)
        self.reset.setGeometry(QtCore.QRect(520, 670, 71, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        self.reset.setFont(font)
        self.reset.setObjectName("reset")
        self.undo = QtWidgets.QPushButton(self.centralwidget)
        self.undo.setGeometry(QtCore.QRect(600, 670, 71, 23))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(10)
        self.undo.setFont(font)
        self.undo.setObjectName("undo")
        self.results_box = QtWidgets.QGroupBox(self.centralwidget)
        self.results_box.setGeometry(QtCore.QRect(520, 10, 521, 171))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.results_box.setFont(font)
        self.results_box.setObjectName("results_box")
        self.browse_outputdir_button = QtWidgets.QToolButton(self.results_box)
        self.browse_outputdir_button.setGeometry(QtCore.QRect(
            430, 130, 71, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.browse_outputdir_button.setFont(font)
        self.browse_outputdir_button.setObjectName("browse_outputdir_button")
        self.outputdir = QtWidgets.QLineEdit(self.results_box)
        self.outputdir.setGeometry(QtCore.QRect(20, 130, 391, 23))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.outputdir.setFont(font)
        self.outputdir.setObjectName("outputdir")
        self.lbl_outputdir = QtWidgets.QLabel(self.results_box)
        self.lbl_outputdir.setGeometry(QtCore.QRect(20, 100, 311, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.lbl_outputdir.setFont(font)
        self.lbl_outputdir.setObjectName("lbl_outputdir")
        self.results = QtWidgets.QLineEdit(self.results_box)
        self.results.setGeometry(QtCore.QRect(20, 60, 481, 23))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.results.setFont(font)
        self.results.setObjectName("results")
        self.lbl_results = QtWidgets.QLabel(self.results_box)
        self.lbl_results.setGeometry(QtCore.QRect(20, 30, 311, 21))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.lbl_results.setFont(font)
        self.lbl_results.setObjectName("lbl_results")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1060, 25))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuHelp = QtWidgets.QMenu(self.menubar)
        self.menuHelp.setObjectName("menuHelp")
        MainWindow.setMenuBar(self.menubar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.actionExport_parameters = QtGui.QAction(MainWindow)
        self.actionExport_parameters.setEnabled(True)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.actionExport_parameters.setFont(font)
        self.actionExport_parameters.setObjectName("actionExport_parameters")
        self.actionImport_parameters = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.actionImport_parameters.setFont(font)
        self.actionImport_parameters.setObjectName("actionImport_parameters")
        self.actionExit = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.actionExit.setFont(font)
        self.actionExit.setObjectName("actionExit")
        self.actionAbout = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.actionAbout.setFont(font)
        self.actionAbout.setObjectName("actionAbout")
        self.actionAbout_r2g = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.actionAbout_r2g.setFont(font)
        self.actionAbout_r2g.setObjectName("actionAbout_r2g")
        self.actionRestore_to_defaults = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.actionRestore_to_defaults.setFont(font)
        self.actionRestore_to_defaults.setObjectName(
            "actionRestore_to_defaults")
        self.actionUndo = QtGui.QAction(MainWindow)
        self.actionUndo.setEnabled(False)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.actionUndo.setFont(font)
        self.actionUndo.setObjectName("actionUndo")
        self.actionUpdate_the_r2g_engine = QtGui.QAction(MainWindow)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        self.actionUpdate_the_r2g_engine.setFont(font)
        self.actionUpdate_the_r2g_engine.setObjectName(
            "actionUpdate_the_r2g_engine")
        self.menuFile.addAction(self.actionExport_parameters)
        self.menuFile.addAction(self.actionImport_parameters)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionRestore_to_defaults)
        self.menuFile.addAction(self.actionUndo)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionExit)
        self.menuFile.addSeparator()
        self.menuHelp.addAction(self.actionAbout)
        self.menuHelp.addSeparator()
        self.menuHelp.addAction(self.actionAbout_r2g)
        self.menuHelp.addAction(self.actionUpdate_the_r2g_engine)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
コード例 #16
0
    def setupUi(self, MainWindow):
        QtCore.QDir.addSearchPath('icons',
                                  fspath(CURRENT_DIRECTORY / "images"))
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1075, 792)
        MainWindow.setContextMenuPolicy(
            QtCore.Qt.ContextMenuPolicy.NoContextMenu)
        MainWindow.setStatusTip("")
        MainWindow.setIconSize(QtCore.QSize(32, 32))
        MainWindow.setDockNestingEnabled(True)
        MainWindow.setDockOptions(
            QtWidgets.QMainWindow.DockOption.AllowNestedDocks
            | QtWidgets.QMainWindow.DockOption.AllowTabbedDocks
            | QtWidgets.QMainWindow.DockOption.AnimatedDocks)
        MainWindow.setUnifiedTitleAndToolBarOnMac(True)
        MainWindow.setAcceptDrops(True)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setAutoFillBackground(False)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setHorizontalSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.splitter = QtWidgets.QSplitter(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Preferred,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
        self.splitter.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
        self.splitter.setLineWidth(0)
        self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.splitter.setOpaqueResize(True)
        self.splitter.setHandleWidth(7)
        self.splitter.setObjectName("splitter")
        self.sliceGraphicsView = CustomQGraphicsView(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sliceGraphicsView.sizePolicy().hasHeightForWidth())
        self.sliceGraphicsView.setSizePolicy(sizePolicy)
        self.sliceGraphicsView.setMinimumSize(QtCore.QSize(0, 0))
        self.sliceGraphicsView.setBaseSize(QtCore.QSize(480, 0))
        self.sliceGraphicsView.setMouseTracking(True)
        self.sliceGraphicsView.setFocusPolicy(QtCore.Qt.FocusPolicy.WheelFocus)
        self.sliceGraphicsView.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
        self.sliceGraphicsView.setLineWidth(0)
        self.sliceGraphicsView.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
        self.sliceGraphicsView.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
        self.sliceGraphicsView.setRenderHints(
            QtGui.QPainter.RenderHint.Antialiasing
            | QtGui.QPainter.RenderHint.TextAntialiasing)
        self.sliceGraphicsView.setDragMode(
            QtWidgets.QGraphicsView.DragMode.NoDrag)
        self.sliceGraphicsView.setTransformationAnchor(
            QtWidgets.QGraphicsView.ViewportAnchor.AnchorUnderMouse)
        self.sliceGraphicsView.setResizeAnchor(
            QtWidgets.QGraphicsView.ViewportAnchor.AnchorUnderMouse)
        self.sliceGraphicsView.setObjectName("sliceGraphicsView")
        self.pathGraphicsView = CustomQGraphicsView(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pathGraphicsView.sizePolicy().hasHeightForWidth())
        self.pathGraphicsView.setSizePolicy(sizePolicy)
        self.pathGraphicsView.setMinimumSize(QtCore.QSize(0, 0))
        self.pathGraphicsView.setMouseTracking(True)
        self.pathGraphicsView.setFocusPolicy(QtCore.Qt.FocusPolicy.WheelFocus)
        self.pathGraphicsView.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
        self.pathGraphicsView.setLineWidth(0)
        self.pathGraphicsView.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
        self.pathGraphicsView.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
        self.pathGraphicsView.setRenderHints(
            QtGui.QPainter.RenderHint.Antialiasing
            | QtGui.QPainter.RenderHint.TextAntialiasing)
        self.pathGraphicsView.setTransformationAnchor(
            QtWidgets.QGraphicsView.ViewportAnchor.AnchorUnderMouse)
        self.pathGraphicsView.setObjectName("pathGraphicsView")
        self.gridLayout.addWidget(self.splitter, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.topToolBar = QtWidgets.QToolBar(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Ignored,
            QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.topToolBar.sizePolicy().hasHeightForWidth())
        self.topToolBar.setSizePolicy(sizePolicy)
        self.topToolBar.setBaseSize(QtCore.QSize(550, 0))
        self.topToolBar.setIconSize(QtCore.QSize(24, 24))
        self.topToolBar.setToolButtonStyle(
            QtCore.Qt.ToolButtonStyle.ToolButtonTextUnderIcon)
        self.topToolBar.setObjectName("topToolBar")
        MainWindow.addToolBar(QtCore.Qt.ToolBarArea.TopToolBarArea,
                              self.topToolBar)
        self.rightToolBar = QtWidgets.QToolBar(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.rightToolBar.sizePolicy().hasHeightForWidth())
        self.rightToolBar.setSizePolicy(sizePolicy)
        self.rightToolBar.setMinimumSize(QtCore.QSize(0, 0))
        self.rightToolBar.setLayoutDirection(
            QtCore.Qt.LayoutDirection.LeftToRight)
        self.rightToolBar.setAllowedAreas(
            QtCore.Qt.ToolBarArea.LeftToolBarArea
            | QtCore.Qt.ToolBarArea.RightToolBarArea
            | QtCore.Qt.ToolBarArea.TopToolBarArea)
        self.rightToolBar.setToolButtonStyle(
            QtCore.Qt.ToolButtonStyle.ToolButtonTextUnderIcon)
        self.rightToolBar.setObjectName("rightToolBar")
        with util.suppress_stdout_stderr():
            MainWindow.addToolBar(QtCore.Qt.ToolBarArea.RightToolBarArea,
                                  self.rightToolBar)
        self.leftToolBar = QtWidgets.QToolBar(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Policy.Fixed,
            QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.leftToolBar.sizePolicy().hasHeightForWidth())
        self.leftToolBar.setSizePolicy(sizePolicy)
        self.leftToolBar.setMinimumSize(QtCore.QSize(0, 0))
        self.leftToolBar.setAllowedAreas(
            QtCore.Qt.ToolBarArea.LeftToolBarArea
            | QtCore.Qt.ToolBarArea.RightToolBarArea
            | QtCore.Qt.ToolBarArea.TopToolBarArea)
        self.leftToolBar.setToolButtonStyle(
            QtCore.Qt.ToolButtonStyle.ToolButtonTextUnderIcon)
        self.leftToolBar.setObjectName("leftToolBar")
        with util.suppress_stdout_stderr():
            MainWindow.addToolBar(QtCore.Qt.ToolBarArea.LeftToolBarArea,
                                  self.leftToolBar)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1075, 22))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuEdit = QtWidgets.QMenu(self.menubar)
        self.menuEdit.setObjectName("menuEdit")
        self.menuPlugins = QtWidgets.QMenu(self.menubar)
        self.menuPlugins.setObjectName("menuPlugins")
        MainWindow.setMenuBar(self.menubar)
        self.actionNew = QtGui.QAction(MainWindow)
        icon = QtGui.QIcon('icons:data-new_32.png')
        self.actionNew.setIcon(icon)
        self.actionNew.setObjectName("actionNew")
        self.actionDrop = QtGui.QAction(MainWindow)
        self.actionDrop.setObjectName("actionDrop")
        self.actionOpen = QtGui.QAction(MainWindow)
        icon1 = QtGui.QIcon('icons:data-open_32.png')
        self.actionOpen.setIcon(icon1)
        self.actionOpen.setObjectName("actionOpen")
        self.actionClose = QtGui.QAction(MainWindow)
        self.actionClose.setObjectName("actionClose")
        self.actionSave = QtGui.QAction(MainWindow)
        icon2 = QtGui.QIcon('icons:data-save_32.png')
        self.actionSave.setIcon(icon2)
        self.actionSave.setObjectName("actionSave")
        self.actionSave_As = QtGui.QAction(MainWindow)
        self.actionSave_As.setIcon(icon2)
        self.actionSave_As.setObjectName("actionSave_As")
        self.actionSave_a_Copy = QtGui.QAction(MainWindow)
        self.actionSave_a_Copy.setObjectName("actionSave_a_Copy")
        self.actionPrint = QtGui.QAction(MainWindow)
        self.actionPrint.setObjectName("actionPrint")
        self.actionSVG = QtGui.QAction(MainWindow)
        icon3 = QtGui.QIcon('icons:data-svg.png')
        self.actionSVG.setIcon(icon3)
        self.actionSVG.setObjectName("actionSVG")
        self.actionX3D = QtGui.QAction(MainWindow)
        self.actionX3D.setObjectName("actionX3D")
        self.actionCut = QtGui.QAction(MainWindow)
        self.actionCut.setObjectName("actionCut")
        self.actionCopy = QtGui.QAction(MainWindow)
        self.actionCopy.setObjectName("actionCopy")
        self.actionPaste = QtGui.QAction(MainWindow)
        self.actionPaste.setObjectName("actionPaste")
        self.actionSelect_All = QtGui.QAction(MainWindow)
        self.actionSelect_All.setObjectName("actionSelect_All")
        self.actionNewHoneycombPart = QtGui.QAction(MainWindow)
        icon4 = QtGui.QIcon('icons:part-new-honeycomb.png')
        self.actionNewHoneycombPart.setIcon(icon4)
        self.actionNewHoneycombPart.setObjectName("actionNewHoneycombPart")
        self.actionPathBreak = QtGui.QAction(MainWindow)
        self.actionPathBreak.setCheckable(True)
        self.actionPathBreak.setChecked(False)
        icon5 = QtGui.QIcon('icons:path-break_48.png')
        self.actionPathBreak.setIcon(icon5)
        self.actionPathBreak.setObjectName("actionPathBreak")
        self.actionPathSelect = QtGui.QAction(MainWindow)
        self.actionPathSelect.setCheckable(True)
        icon6 = QtGui.QIcon('icons:path-edit_32.png')
        self.actionPathSelect.setIcon(icon6)
        self.actionPathSelect.setObjectName("actionPathSelect")
        self.actionSliceFirst = QtGui.QAction(MainWindow)
        icon7 = QtGui.QIcon('icons:slice-go-first.png')
        self.actionSliceFirst.setIcon(icon7)
        self.actionSliceFirst.setObjectName("actionSliceFirst")
        self.actionSliceLast = QtGui.QAction(MainWindow)
        icon8 = QtGui.QIcon('icons:slice-go-last.png')
        self.actionSliceLast.setIcon(icon8)
        self.actionSliceLast.setObjectName("actionSliceLast")
        self.actionPathErase = QtGui.QAction(MainWindow)
        self.actionPathErase.setCheckable(True)
        icon9 = QtGui.QIcon('icons:path-erase_48x48.png')
        self.actionPathErase.setIcon(icon9)
        self.actionPathErase.setObjectName("actionPathErase")
        self.actionPathPencil = QtGui.QAction(MainWindow)
        self.actionPathPencil.setCheckable(True)
        icon10 = QtGui.QIcon('icons:path-force-xover.png')
        self.actionPathPencil.setIcon(icon10)
        self.actionPathPencil.setObjectName("actionPathPencil")
        self.actionPathInsertion = QtGui.QAction(MainWindow)
        self.actionPathInsertion.setCheckable(True)
        icon11 = QtGui.QIcon('icons:path-insert_48x48.png')
        self.actionPathInsertion.setIcon(icon11)
        self.actionPathInsertion.setObjectName("actionPathInsertion")
        self.actionNewSquarePart = QtGui.QAction(MainWindow)
        icon12 = QtGui.QIcon('icons:part-new-square.png')
        self.actionNewSquarePart.setIcon(icon12)
        self.actionNewSquarePart.setObjectName("actionNewSquarePart")
        self.actionPathSkip = QtGui.QAction(MainWindow)
        self.actionPathSkip.setCheckable(True)
        icon13 = QtGui.QIcon('icons:path-skip.png')
        self.actionPathSkip.setIcon(icon13)
        self.actionPathSkip.setObjectName("actionPathSkip")
        self.actionRenumber = QtGui.QAction(MainWindow)
        icon14 = QtGui.QIcon('icons:slice-renumber.png')
        self.actionRenumber.setIcon(icon14)
        self.actionRenumber.setObjectName("actionRenumber")
        self.actionPathPaint = QtGui.QAction(MainWindow)
        self.actionPathPaint.setCheckable(True)
        icon15 = QtGui.QIcon('icons:path-paint_48.png')
        self.actionPathPaint.setIcon(icon15)
        self.actionPathPaint.setObjectName("actionPathPaint")
        self.actionPathAddSeq = QtGui.QAction(MainWindow)
        self.actionPathAddSeq.setCheckable(True)
        icon16 = QtGui.QIcon('icons:path-addseq.png')
        self.actionPathAddSeq.setIcon(icon16)
        self.actionPathAddSeq.setObjectName("actionPathAddSeq")
        self.actionExportStaples = QtGui.QAction(MainWindow)
        icon17 = QtGui.QIcon('icons:export-staples.png')
        self.actionExportStaples.setIcon(icon17)
        self.actionExportStaples.setObjectName("actionExportStaples")
        self.actionPreferences = QtGui.QAction(MainWindow)
        self.actionPreferences.setObjectName("actionPreferences")
        self.actionModify = QtGui.QAction(MainWindow)
        self.actionModify.setCheckable(True)
        icon18 = QtGui.QIcon('icons:path-modify.png')
        self.actionModify.setIcon(icon18)
        self.actionModify.setObjectName("actionModify")
        self.actionCadnanoWebsite = QtGui.QAction(MainWindow)
        self.actionCadnanoWebsite.setObjectName("actionCadnanoWebsite")
        self.actionFeedback = QtGui.QAction(MainWindow)
        self.actionFeedback.setObjectName("actionFeedback")
        self.actionFilterPart = QtGui.QAction(MainWindow)
        self.actionFilterPart.setCheckable(True)
        icon19 = QtGui.QIcon('icons:part-filter-part.png')
        self.actionFilterPart.setIcon(icon19)
        self.actionFilterPart.setObjectName("actionFilterPart")
        self.actionFilterEndpoint = QtGui.QAction(MainWindow)
        self.actionFilterEndpoint.setCheckable(True)
        self.actionFilterEndpoint.setChecked(True)
        icon20 = QtGui.QIcon('icons:part-filter-endpoint.png')
        self.actionFilterEndpoint.setIcon(icon20)
        self.actionFilterEndpoint.setObjectName("actionFilterEndpoint")
        self.actionFilterXover = QtGui.QAction(MainWindow)
        self.actionFilterXover.setCheckable(True)
        self.actionFilterXover.setChecked(True)
        icon21 = QtGui.QIcon('icons:part-filter-xover.png')
        self.actionFilterXover.setIcon(icon21)
        self.actionFilterXover.setText("")
        self.actionFilterXover.setObjectName("actionFilterXover")
        self.actionFiltersLabel = QtGui.QAction(MainWindow)
        self.actionFiltersLabel.setEnabled(False)
        self.actionFiltersLabel.setObjectName("actionFiltersLabel")
        self.actionFilterStrand = QtGui.QAction(MainWindow)
        self.actionFilterStrand.setCheckable(True)
        icon22 = QtGui.QIcon('icons:part-filter-strand.png')
        self.actionFilterStrand.setIcon(icon22)
        self.actionFilterStrand.setObjectName("actionFilterStrand")
        self.actionFilterHandle = QtGui.QAction(MainWindow)
        self.actionFilterHandle.setCheckable(True)
        self.actionFilterHandle.setChecked(False)
        icon23 = QtGui.QIcon('icons:part-filter-handle.png')
        self.actionFilterHandle.setIcon(icon23)
        self.actionFilterHandle.setObjectName("actionFilterHandle")
        self.actionFilterScaf = QtGui.QAction(MainWindow)
        self.actionFilterScaf.setCheckable(True)
        self.actionFilterScaf.setChecked(True)
        icon24 = QtGui.QIcon('icons:part-filter-scaf.png')
        self.actionFilterScaf.setIcon(icon24)
        self.actionFilterScaf.setObjectName("actionFilterScaf")
        self.actionFilterStap = QtGui.QAction(MainWindow)
        self.actionFilterStap.setCheckable(True)
        self.actionFilterStap.setChecked(True)
        icon25 = QtGui.QIcon('icons:part-filter-stap.png')
        self.actionFilterStap.setIcon(icon25)
        self.actionFilterStap.setObjectName("actionFilterStap")
        self.actionAbout = QtGui.QAction(MainWindow)
        self.actionAbout.setObjectName("actionAbout")
        self.actionAutoStaple = QtGui.QAction(MainWindow)
        icon26 = QtGui.QIcon('icons:path-staple.png')
        self.actionAutoStaple.setIcon(icon26)
        self.actionAutoStaple.setObjectName("actionAutoStaple")
        self.topToolBar.addAction(self.actionNew)
        self.topToolBar.addAction(self.actionOpen)
        self.topToolBar.addAction(self.actionSave)
        self.topToolBar.addAction(self.actionSVG)
        self.topToolBar.addAction(self.actionExportStaples)
        self.topToolBar.addSeparator()
        self.topToolBar.addAction(self.actionNewHoneycombPart)
        self.topToolBar.addAction(self.actionNewSquarePart)
        self.topToolBar.addSeparator()
        self.topToolBar.addAction(self.actionAutoStaple)
        self.topToolBar.addAction(self.actionFiltersLabel)
        self.topToolBar.addAction(self.actionFilterScaf)
        self.topToolBar.addAction(self.actionFilterStap)
        self.topToolBar.addAction(self.actionFilterHandle)
        self.topToolBar.addAction(self.actionFilterEndpoint)
        self.topToolBar.addAction(self.actionFilterXover)
        self.topToolBar.addAction(self.actionFilterStrand)
        self.rightToolBar.addAction(self.actionPathSelect)
        self.rightToolBar.addAction(self.actionPathPencil)
        self.rightToolBar.addAction(self.actionPathBreak)
        self.rightToolBar.addAction(self.actionPathInsertion)
        self.rightToolBar.addAction(self.actionPathSkip)
        self.rightToolBar.addAction(self.actionPathPaint)
        self.rightToolBar.addAction(self.actionPathAddSeq)
        self.leftToolBar.addAction(self.actionSliceFirst)
        self.leftToolBar.addAction(self.actionSliceLast)
        self.leftToolBar.addAction(self.actionRenumber)
        self.menuFile.addAction(self.actionAbout)
        self.menuFile.addAction(self.actionPreferences)
        self.menuFile.addAction(self.actionNew)
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionClose)
        self.menuFile.addAction(self.actionSave)
        self.menuFile.addAction(self.actionSave_As)
        self.menuEdit.addAction(self.actionModify)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuEdit.menuAction())
        self.menubar.addAction(self.menuPlugins.menuAction())

        self.retranslateUi(MainWindow)
        self.actionClose.triggered.connect(MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)