Esempio n. 1
0
    def setupUi(self, Dialog):
        if Dialog.objectName():
            Dialog.setObjectName(u"Dialog")
        Dialog.setWindowModality(Qt.ApplicationModal)
        Dialog.resize(191, 90)
        Dialog.setMinimumSize(QSize(191, 90))
        Dialog.setMaximumSize(QSize(191, 90))
        icon = QIcon()
        icon.addFile(u"../Pictures/Saved Pictures/pyisotools.png", QSize(),
                     QIcon.Normal, QIcon.Off)
        Dialog.setWindowIcon(icon)
        Dialog.setSizeGripEnabled(False)
        Dialog.setModal(False)
        self.buttonBox = QDialogButtonBox(Dialog)
        self.buttonBox.setObjectName(u"buttonBox")
        self.buttonBox.setGeometry(QRect(20, 50, 151, 32))
        self.buttonBox.setOrientation(Qt.Horizontal)
        self.buttonBox.setStandardButtons(QDialogButtonBox.Cancel
                                          | QDialogButtonBox.Ok)
        self.darkThemeCheckBox = QCheckBox(Dialog)
        self.darkThemeCheckBox.setObjectName(u"darkThemeCheckBox")
        self.darkThemeCheckBox.setGeometry(QRect(20, 10, 91, 17))
        self.updateCheckBox = QCheckBox(Dialog)
        self.updateCheckBox.setObjectName(u"updateCheckBox")
        self.updateCheckBox.setGeometry(QRect(20, 30, 111, 17))

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        self.darkThemeCheckBox.stateChanged.connect(Dialog.switch_theme)

        QMetaObject.connectSlotsByName(Dialog)
    def setupUi(self, McBeServerManager):
        if not McBeServerManager.objectName():
            McBeServerManager.setObjectName(u"McBeServerManager")
        McBeServerManager.resize(526, 305)
        self.centralwidget = QWidget(McBeServerManager)
        self.centralwidget.setObjectName(u"centralwidget")
        self.version = QLabel(self.centralwidget)
        self.version.setObjectName(u"version")
        self.version.setGeometry(QRect(480, 290, 41, 9))
        self.wn = QLabel(self.centralwidget)
        self.wn.setObjectName(u"wn")
        self.wn.setGeometry(QRect(430, 270, 91, 21))
        self.Icon = QPushButton(self.centralwidget)
        self.Icon.setObjectName(u"Icon")
        self.Icon.setGeometry(QRect(0, 274, 31, 31))
        icon = QIcon()
        icon.addFile(u"../z001/ss/dev/minecraft.ico", QSize(), QIcon.Normal, QIcon.Off)
        self.Icon.setIcon(icon)
        self.pbtn_st = QPushButton(self.centralwidget)
        self.pbtn_st.setObjectName(u"pbtn_st")
        self.pbtn_st.setGeometry(QRect(1, 2, 521, 71))
        self.pbtn_sc = QPushButton(self.centralwidget)
        self.pbtn_sc.setObjectName(u"pbtn_sc")
        self.pbtn_sc.setGeometry(QRect(1, 77, 521, 71))
        self.pbtn_lv = QPushButton(self.centralwidget)
        self.pbtn_lv.setObjectName(u"pbtn_lv")
        self.pbtn_lv.setGeometry(QRect(1, 152, 521, 71))
        McBeServerManager.setCentralWidget(self.centralwidget)

        self.retranslateUi(McBeServerManager)

        QMetaObject.connectSlotsByName(McBeServerManager)
Esempio n. 3
0
    def setupUi(self, ContainerSettings):
        if not ContainerSettings.objectName():
            ContainerSettings.setObjectName(u"ContainerSettings")
        ContainerSettings.resize(400, 300)
        ContainerSettings.setMinimumSize(QSize(200, 0))
        self.verticalLayout = QVBoxLayout(ContainerSettings)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.enable_audio = QPushButton(ContainerSettings)
        self.enable_audio.setObjectName(u"enable_audio")
        icon = QIcon()
        icon.addFile(u"static/microphone-inactive.svg", QSize(), QIcon.Normal,
                     QIcon.Off)
        icon.addFile(u"static/microphone-recording.svg", QSize(), QIcon.Normal,
                     QIcon.On)
        self.enable_audio.setIcon(icon)
        self.enable_audio.setCheckable(True)
        self.enable_audio.setChecked(True)

        self.verticalLayout.addWidget(self.enable_audio)

        self.container_name = QLabel(ContainerSettings)
        self.container_name.setObjectName(u"container_name")

        self.verticalLayout.addWidget(self.container_name)

        self.retranslateUi(ContainerSettings)

        QMetaObject.connectSlotsByName(ContainerSettings)
Esempio n. 4
0
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(800, 500)
        MainWindow.setMinimumSize(QSize(800, 500))
        MainWindow.setMaximumSize(QSize(800, 500))
        icon = QIcon()
        icon.addFile(u":/icon/setting.svg", QSize(), QIcon.Normal, QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.gridLayout = QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(u"gridLayout")
        self.tabWidget = QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName(u"tabWidget")
        self.Runtime = QWidget()
        self.Runtime.setObjectName(u"Runtime")
        self.groupBox = QGroupBox(self.Runtime)
        self.groupBox.setObjectName(u"groupBox")
        self.groupBox.setGeometry(QRect(410, 10, 361, 51))
        self.groupBox.setFlat(False)
        self.label = QLabel(self.groupBox)
        self.label.setObjectName(u"label")
        self.label.setGeometry(QRect(20, 20, 101, 16))
        self.lineEdit_PlayerVersion = QLineEdit(self.groupBox)
        self.lineEdit_PlayerVersion.setObjectName(u"lineEdit_PlayerVersion")
        self.lineEdit_PlayerVersion.setEnabled(True)
        self.lineEdit_PlayerVersion.setGeometry(QRect(130, 20, 113, 16))
        self.lineEdit_PlayerVersion.setReadOnly(True)
        self.scrollArea = QScrollArea(self.Runtime)
        self.scrollArea.setObjectName(u"scrollArea")
        self.scrollArea.setGeometry(QRect(10, 10, 390, 430))
        self.scrollArea.setFrameShape(QFrame.NoFrame)
        self.scrollArea.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)
        self.scrollArea.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.scrollArea.setWidgetResizable(True)
        self.scrollAreaWidgetContents = QWidget()
        self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
        self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 373, 430))
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.textBrowser = QTextBrowser(self.Runtime)
        self.textBrowser.setObjectName(u"textBrowser")
        self.textBrowser.setGeometry(QRect(410, 70, 361, 371))
        self.textBrowser.setFrameShape(QFrame.NoFrame)
        self.textBrowser.setOverwriteMode(False)
        self.tabWidget.addTab(self.Runtime, "")
        self.tab_2 = QWidget()
        self.tab_2.setObjectName(u"tab_2")
        self.tabWidget.addTab(self.tab_2, "")

        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)

        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)

        self.tabWidget.setCurrentIndex(0)


        QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 5
0
    def setupUi(self, PDFViewer):
        if not PDFViewer.objectName():
            PDFViewer.setObjectName(u"PDFViewer")
        PDFViewer.resize(820, 652)
        icon = QIcon()
        icon.addFile(u":/icons/icon.ico", QSize(), QIcon.Normal, QIcon.Off)
        PDFViewer.setWindowIcon(icon)
        self.centralwidget = QWidget(PDFViewer)
        self.centralwidget.setObjectName(u"centralwidget")
        self.verticalLayout = QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.webView = QWebView(self.centralwidget)
        self.webView.setObjectName(u"webView")
        sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.webView.sizePolicy().hasHeightForWidth())
        self.webView.setSizePolicy(sizePolicy)
        self.webView.setProperty("url", QUrl(u""))

        self.verticalLayout.addWidget(self.webView)

        PDFViewer.setCentralWidget(self.centralwidget)

        self.retranslateUi(PDFViewer)

        QMetaObject.connectSlotsByName(PDFViewer)
Esempio n. 6
0
    def setupUi(self, Dialog):
        if Dialog.objectName():
            Dialog.setObjectName(u"Dialog")
        Dialog.resize(878, 528)
        icon = QIcon()
        icon.addFile("./icon.ico")
        Dialog.setWindowIcon(icon)
        self.verticalLayout = QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.questionLable = QLabel(Dialog)
        self.questionLable.setObjectName(u"questionLable")
        font = QFont()
        font.setFamily(u"\u5fae\u8f6f\u96c5\u9ed1")
        font.setPointSize(12)
        self.questionLable.setFont(font)
        self.questionLable.setWordWrap(True)
        self.questionLable.setMargin(0)
        self.questionLable.setIndent(0)

        self.horizontalLayout.addWidget(self.questionLable)

        self.lcd = QLCDNumber(Dialog)
        self.lcd.setObjectName(u"lcd")
        sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lcd.sizePolicy().hasHeightForWidth())
        self.lcd.setSizePolicy(sizePolicy)
        self.lcd.setMinimumSize(QSize(120, 60))
        self.lcd.setSmallDecimalPoint(True)
        self.lcd.setDigitCount(4)
        self.lcd.setSegmentStyle(QLCDNumber.Flat)
        self.lcd.setProperty("value", 120.000000000000000)

        self.horizontalLayout.addWidget(self.lcd)

        self.verticalLayout.addLayout(self.horizontalLayout)

        self.line = QFrame(Dialog)
        self.line.setObjectName(u"line")
        self.line.setFrameShape(QFrame.HLine)
        self.line.setFrameShadow(QFrame.Sunken)

        self.verticalLayout.addWidget(self.line)

        self.answerLable = QLabel(Dialog)
        self.answerLable.setObjectName(u"answerLable")
        font1 = QFont()
        font1.setFamily(u"Yu Gothic UI")
        font1.setPointSize(14)
        self.answerLable.setFont(font1)
        self.answerLable.setWordWrap(True)

        self.verticalLayout.addWidget(self.answerLable)

        self.retranslateUi(Dialog)

        QMetaObject.connectSlotsByName(Dialog)
def main():
    multiprocessing.freeze_support()
    app = QApplication(sys.argv)
    app.setApplicationName("nfb-studio")
    app.setApplicationDisplayName("NFB Studio")
    app.setStyle(QStyleFactory.create("fusion"))

    if platform.system() == "Darwin":
        icon_dir = package.dir / "assets/window-icon/macos"
    else:
        icon_dir = package.dir / "assets/window-icon/generic"

    icon = QIcon()
    for file in icon_dir.glob("*"):
        icon.addFile(str(file))
    app.setWindowIcon(icon)

    main_window = ExperimentView()
    main_window.show()

    # If a file was passed as a command-line argument, load it
    if len(sys.argv) > 1:
        main_window.fileOpen(sys.argv[1])

    return app.exec_()
Esempio n. 8
0
def main():
    basePath = os.path.dirname(os.path.realpath(__file__))
    app = QApplication(sys.argv)
    contextMenu = QMenu()
    fixAction = QAction(
        "Run 'create__ap --fix-unmanaged' in the terminal as root to fix possible issues"
    )
    contextMenu.addAction(fixAction)
    activeIcon = QIcon()
    activeIcon.addFile(os.path.join(basePath, "wifi.svg"))
    inactiveIcon = QIcon()
    inactiveIcon.addFile(os.path.join(basePath, "wifi-off.svg"))
    trayIcon = QSystemTrayIcon(inactiveIcon)
    trayIcon.setContextMenu(contextMenu)
    trayIcon.activated.connect(handleTrayIconClick)

    def syncIcon():
        if serviceIsActive():
            trayIcon.setIcon(activeIcon)
        else:
            trayIcon.setIcon(inactiveIcon)

    timer = QTimer()
    timer.setInterval(1000)
    timer.timeout.connect(syncIcon)
    timer.start()
    trayIcon.show()
    sys.exit(app.exec_())
Esempio n. 9
0
    def setupUi(self, Logon):
        if Logon.objectName():
            Logon.setObjectName(u"Logon")
        Logon.resize(391, 174)
        icon = QIcon()
        icon.addFile(u":/images/ok.png", QSize(), QIcon.Normal, QIcon.Off)
        Logon.setWindowIcon(icon)
        self.layoutWidget = QWidget(Logon)
        self.layoutWidget.setObjectName(u"layoutWidget")
        self.layoutWidget.setGeometry(QRect(60, 40, 279, 51))
        self.formLayout = QFormLayout(self.layoutWidget)
        self.formLayout.setObjectName(u"formLayout")
        self.formLayout.setContentsMargins(0, 0, 0, 0)
        self.labelID = QLabel(self.layoutWidget)
        self.labelID.setObjectName(u"labelID")

        self.formLayout.setWidget(0, QFormLayout.LabelRole, self.labelID)

        self.lineEditId = QLineEdit(self.layoutWidget)
        self.lineEditId.setObjectName(u"lineEditId")

        self.formLayout.setWidget(0, QFormLayout.FieldRole, self.lineEditId)

        self.labelPW = QLabel(self.layoutWidget)
        self.labelPW.setObjectName(u"labelPW")

        self.formLayout.setWidget(1, QFormLayout.LabelRole, self.labelPW)

        self.lineEditPW = QLineEdit(self.layoutWidget)
        self.lineEditPW.setObjectName(u"lineEditPW")
        self.lineEditPW.setEchoMode(QLineEdit.Password)

        self.formLayout.setWidget(1, QFormLayout.FieldRole, self.lineEditPW)

        self.layoutWidget1 = QWidget(Logon)
        self.layoutWidget1.setObjectName(u"layoutWidget1")
        self.layoutWidget1.setGeometry(QRect(60, 100, 280, 32))
        self.horizontalLayout = QHBoxLayout(self.layoutWidget1)
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalSpacer = QSpacerItem(178, 30, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout.addItem(self.horizontalSpacer)

        self.buttonOk = QPushButton(self.layoutWidget1)
        self.buttonOk.setObjectName(u"buttonOk")

        self.horizontalLayout.addWidget(self.buttonOk)

#if QT_CONFIG(shortcut)
        self.labelID.setBuddy(self.lineEditId)
        self.labelPW.setBuddy(self.lineEditPW)
#endif // QT_CONFIG(shortcut)
        QWidget.setTabOrder(self.lineEditId, self.lineEditPW)
        QWidget.setTabOrder(self.lineEditPW, self.buttonOk)

        self.retranslateUi(Logon)

        QMetaObject.connectSlotsByName(Logon)
Esempio n. 10
0
def set_plot_gui_icon():
    """Add the software icon on the current plot"""
    thismanager = plt.get_current_fig_manager()
    if thismanager is not None:
        icon = QIcon()
        icon.addFile(pixmap_dict["soft_icon"], QSize(), QIcon.Normal,
                     QIcon.Off)
        thismanager.window.setWindowIcon(icon)
Esempio n. 11
0
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(1109, 714)
        icon = QIcon()
        icon.addFile(u"images/docker_pic2.png", QSize(), QIcon.Normal,
                     QIcon.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setStyleSheet(u"background-color: rgb(255, 255, 255);")
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.centralwidget.setStyleSheet(
            u"background-color: rgb(255, 255, 255);")
        self.commandLinkButton = QCommandLinkButton(self.centralwidget)
        self.commandLinkButton.setObjectName(u"commandLinkButton")
        self.commandLinkButton.setGeometry(QRect(20, 150, 222, 48))
        self.commandLinkButton.setStyleSheet(
            u"background-color: rgb(235, 247, 255);")
        self.commandLinkButton_2 = QCommandLinkButton(self.centralwidget)
        self.commandLinkButton_2.setObjectName(u"commandLinkButton_2")
        self.commandLinkButton_2.setGeometry(QRect(20, 230, 222, 48))
        self.commandLinkButton_2.setStyleSheet(
            u"background-color: rgb(235, 247, 255);")
        self.commandLinkButton_3 = QCommandLinkButton(self.centralwidget)
        self.commandLinkButton_3.setObjectName(u"commandLinkButton_3")
        self.commandLinkButton_3.setGeometry(QRect(20, 310, 222, 48))
        self.commandLinkButton_3.setStyleSheet(
            u"background-color: rgb(235, 247, 255);")
        self.commandLinkButton_4 = QCommandLinkButton(self.centralwidget)
        self.commandLinkButton_4.setObjectName(u"commandLinkButton_4")
        self.commandLinkButton_4.setGeometry(QRect(20, 390, 222, 48))
        self.commandLinkButton_4.setStyleSheet(
            u"background-color: rgb(235, 247, 255);")
        self.commandLinkButton_5 = QCommandLinkButton(self.centralwidget)
        self.commandLinkButton_5.setObjectName(u"commandLinkButton_5")
        self.commandLinkButton_5.setGeometry(QRect(20, 470, 222, 48))
        self.commandLinkButton_5.setStyleSheet(
            u"background-color: rgb(235, 247, 255);")
        self.change_widget = QWidget(self.centralwidget)
        self.change_widget.setObjectName(u"change_widget")
        self.change_widget.setGeometry(QRect(260, 10, 831, 661))
        self.change_widget.setStyleSheet(
            u"background-color: rgb(235, 247, 255);")
        self.label = QLabel(self.centralwidget)
        self.label.setObjectName(u"label")
        self.label.setGeometry(QRect(20, 30, 61, 61))
        self.label.setPixmap(QPixmap(u"images/docker_pic2.png"))
        self.label_2 = QLabel(self.centralwidget)
        self.label_2.setObjectName(u"label_2")
        self.label_2.setGeometry(QRect(90, 50, 81, 21))
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)

        QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 12
0
    def create_project(self,
                       project_name: str,
                       visualization: bool = False,
                       stimulus: bool = False,
                       analysis: bool = False) -> None:
        """Create a new project with a template and open it."""
        icon = QIcon()
        icon_name = 'icon_sti'

        if visualization:
            icon_name = 'icon_viz'
            item = QListWidgetItem(
                self.parent_frame.listWidget_projects_visualizations)
            default_project = '_default_visualization'
            self.mode = 'visualization'
        elif stimulus:
            icon_name = 'icon_sti'
            item = QListWidgetItem(
                self.parent_frame.listWidget_projects_delivery)
            default_project = '_default_stimuli_delivery'
            self.mode = 'delivery'
        elif analysis:
            icon_name = 'icon_ana'
            item = QListWidgetItem(
                self.parent_frame.listWidget_projects_analysis)
            default_project = '_default_data_analysis'
            self.mode = 'analysis'

        item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEditable
                      | Qt.ItemIsDragEnabled | Qt.ItemIsUserCheckable
                      | Qt.ItemIsEnabled)
        item.setText(project_name)
        item.previous_name = project_name
        item.path = self.normalize_path(project_name)

        ext = 0
        while item.path in os.listdir(self.projects_dir):
            ext += 1
            item.path = f"{self.normalize_path(project_name)}{ext}"

        icon.addFile(f"bci:primary/{icon_name}.svg", QSize(), QIcon.Normal,
                     QIcon.Off)
        item.setIcon(icon)
        item.icon_name = icon_name

        source = os.path.join(os.getenv('BCISTREAM_ROOT'),
                              'default_extensions', default_project)
        target = os.path.join(self.projects_dir, item.path)
        shutil.copytree(source, target)

        pickle.dump({
            'name': project_name,
            'files': []
        }, open(os.path.join(self.projects_dir, item.path, BCIFR_FILE), 'wb'))
        self.open_project(item.path)
Esempio n. 13
0
    def setupMainUI(self, Main):
        if not Main.objectName():
            Main.setObjectName(u"Main")
        Main.resize(463, 92)
        Main.setMinimumSize(QSize(463, 92))
        Main.setMaximumSize(QSize(463, 92))
        icon = QIcon()
        icon.addFile(u"icons/favicon.ico", QSize(), QIcon.Normal, QIcon.Off)
        Main.setWindowIcon(icon)
        #Font 16
        font = QFont()
        font.setFamily(u"Yandex Sans Text")
        font.setPointSize(16)
        #Autolocation
        self.wbtn = QPushButton(Main)
        self.wbtn.setObjectName(u"wbtn")
        self.wbtn.setGeometry(QRect(380, 10, 31, 31))
        self.wbtn.setFont(font)
        self.wbtn.setCursor(QCursor(Qt.PointingHandCursor))
        self.wbtn.setAcceptDrops(False)
        self.wbtn.setCheckable(False)
        #City
        self.lineedit = QLineEdit(Main)
        self.lineedit.setObjectName(u"lineedit")
        self.lineedit.setGeometry(QRect(60, 10, 351, 31))
        self.lineedit.setFont(font)
        self.lineedit.setFrame(True)
        self.lineedit.setEchoMode(QLineEdit.Normal)
        #GetWeather
        self.wbtnr = QPushButton(Main)
        self.wbtnr.setObjectName(u"wbtnr")
        self.wbtnr.setGeometry(QRect(60, 50, 351, 31))
        self.wbtnr.setFont(font)
        self.wbtnr.setCursor(QCursor(Qt.PointingHandCursor))
        #Settings
        self.setbtn = QPushButton(Main)
        self.setbtn.setObjectName(u"setbtn")
        self.setbtn.setGeometry(QRect(420, 10, 31, 31))
        icon1 = QIcon()
        icon1.addFile(u"icons/settings.ico", QSize(), QIcon.Normal, QIcon.Off)
        self.setbtn.setIcon(icon1)
        self.setbtn.setIconSize(QSize(25, 25))
        self.setbtn.setCursor(QCursor(Qt.PointingHandCursor))

        self.lineedit.raise_()
        self.wbtnr.raise_()
        self.wbtn.raise_()
        self.setbtn.raise_()

        if language == "ru":
            self.TextMainRu(Main)
        else:
            self.TextMainEn(Main)

        QMetaObject.connectSlotsByName(Main)
Esempio n. 14
0
 def show_message(cls, message: str, logo: str):
     msg = QMessageBox()
     icon = QIcon()
     icon.addFile(u"inc/icon.ico", QSize(), QIcon.Normal, QIcon.Off)
     msg.setWindowIcon(icon)
     if logo == "error":
         msg.setIcon(QMessageBox.Critical)
     elif logo == "info":
         msg.setIcon(QMessageBox.Information)
     msg.setText(message)
     msg.setWindowTitle(logo)
     msg.exec_()
Esempio n. 15
0
def get_app_icon() -> QIcon:
    """
    Reads icon files of different sizes and convert them to QIcon.

    Returns:
        App icon.
    """

    app_icon = QIcon()
    icon_paths = Path(os.path.join(sys.path[0], "src/gui/res/app_icon"))
    for icon in icon_paths.iterdir():
        app_icon.addFile(str(icon), QSize(int(icon.stem), int(icon.stem)))
    return app_icon
Esempio n. 16
0
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(400, 200)
        sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        icon = QIcon()
        icon.addFile(u"app.png", QSize(), QIcon.Normal, QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.btnFindArticle = QPushButton(self.centralwidget)
        self.btnFindArticle.setObjectName(u"btnFindArticle")
        self.btnFindArticle.setGeometry(QRect(80, 120, 241, 51))
        font = QFont()
        font.setFamily(u"Segoe UI Black")
        font.setPointSize(15)
        self.btnFindArticle.setFont(font)
        self.btnFindArticle.setStyleSheet(
            u"background-color: rgb(0, 118, 214);\n"
            "color: rgb(255, 255, 255);")
        self.btnFindArticle.setAutoDefault(False)
        self.label = QLabel(self.centralwidget)
        self.label.setObjectName(u"label")
        self.label.setGeometry(QRect(10, 9, 381, 61))
        font1 = QFont()
        font1.setFamily(u"Segoe UI Black")
        font1.setPointSize(20)
        self.label.setFont(font1)
        self.label.setStyleSheet(u"color: rgb(221, 79, 66);")
        self.label.setAlignment(Qt.AlignCenter)
        self.label_2 = QLabel(self.centralwidget)
        self.label_2.setObjectName(u"label_2")
        self.label_2.setGeometry(QRect(20, 59, 361, 41))
        font2 = QFont()
        font2.setFamily(u"Segoe UI")
        font2.setPointSize(12)
        self.label_2.setFont(font2)
        self.label_2.setAlignment(Qt.AlignCenter)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)

        self.btnFindArticle.setDefault(False)

        QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 17
0
    def setupUi(self, MainWindow):
        if MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(1015, 600)
        icon = QIcon()
        icon.addFile(u":/icons/icon.png", QSize(), QIcon.Normal, QIcon.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setStyleSheet(
            u"background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(50, 50, 50, 255), stop:1 rgba(100, 100, 100, 255));"
        )
        self.action_save = QAction(MainWindow)
        self.action_save.setObjectName(u"action_save")
        self.action_load = QAction(MainWindow)
        self.action_load.setObjectName(u"action_load")
        self.actionPlay = QAction(MainWindow)
        self.actionPlay.setObjectName(u"actionPlay")
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.horizontalLayout_2 = QHBoxLayout(self.centralwidget)
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(u"horizontalLayout")

        self.horizontalLayout_2.addLayout(self.horizontalLayout)

        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 1015, 21))
        self.menubar.setStyleSheet(u"color: rgb(255, 255, 255);")
        self.menu_file = QMenu(self.menubar)
        self.menu_file.setObjectName(u"menu_file")
        self.menuPlay = QMenu(self.menubar)
        self.menuPlay.setObjectName(u"menuPlay")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.menubar.addAction(self.menu_file.menuAction())
        self.menubar.addAction(self.menuPlay.menuAction())
        self.menu_file.addAction(self.action_save)
        self.menu_file.addAction(self.action_load)
        self.menuPlay.addAction(self.actionPlay)

        self.retranslateUi(MainWindow)

        QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 18
0
    def __init__(self, model, parent=None):
        super().__init__(parent)
        self.model = model
        self.chosen_user_record = None
        self.settings = QSettings()
        default_user = self.settings.value("default_user", 0)

        self.setWindowTitle(self.tr("pyOffer - Choose user"))
        icon = QIcon()
        icon.addFile(u":/ico")
        self.setWindowIcon(icon)

        top_level_layout = QtWidgets.QVBoxLayout(self)
        logo_label = QtWidgets.QLabel(self)
        logo = QPixmap()
        logo.load(u":/klog")
        logo_label.setPixmap(logo)
        logo_label.setAlignment(Qt.AlignCenter)
        top_level_layout.addWidget(logo_label)

        horizontal_layout = QtWidgets.QHBoxLayout()
        icon_label = QtWidgets.QLabel(self)
        pixmap = QPixmap(":/user").scaled(128, 128, Qt.KeepAspectRatio)
        icon_label.setPixmap(pixmap)
        icon_label.setAlignment(Qt.AlignCenter)
        horizontal_layout.addWidget(icon_label)

        vertical_layout = QtWidgets.QVBoxLayout()
        label_description = QtWidgets.QLabel(self)
        label_description.setText(self.tr("Please choose user:"))
        vertical_layout.addWidget(label_description)

        self.list_view = QtWidgets.QListView(self)
        self.list_view.setModel(self.model)
        self.list_view.setModelColumn(1)
        self.list_view.setSelectionBehavior(QtWidgets.QListView.SelectRows)
        self.list_view.setCurrentIndex(self.model.index(default_user, 1))
        vertical_layout.addWidget(self.list_view)

        self.buttons = QtWidgets.QDialogButtonBox(
            QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel)
        self.buttons.accepted.connect(self.ok)
        self.buttons.rejected.connect(self.reject)
        vertical_layout.addWidget(self.buttons)

        horizontal_layout.addLayout(vertical_layout)
        top_level_layout.addLayout(horizontal_layout)
Esempio n. 19
0
    def setupUi(self, Initializer):
        if not Initializer.objectName():
            Initializer.setObjectName(u"Initializer")
        Initializer.resize(222, 320)
        icon = QIcon()
        icon.addFile(u":/res/ui/guiscrcpy_logo.png", QSize(), QIcon.Normal, QIcon.Off)
        Initializer.setWindowIcon(icon)
        self.widget = QWidget(Initializer)
        self.widget.setObjectName(u"widget")
        self.widget.setGeometry(QRect(0, 0, 221, 311))
        self.verticalLayout = QVBoxLayout(self.widget)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.label_2 = QLabel(self.widget)
        self.label_2.setObjectName(u"label_2")
        self.label_2.setTextFormat(Qt.PlainText)
        self.label_2.setPixmap(QPixmap(u":/res/ui/guiscrcpy_logo.png"))
        self.label_2.setScaledContents(True)
        self.label_2.setAlignment(Qt.AlignCenter)
        self.label_2.setWordWrap(True)
        self.label_2.setMargin(15)

        self.verticalLayout.addWidget(self.label_2)

        self.stat = QLabel(self.widget)
        self.stat.setObjectName(u"stat")
        font = QFont()
        font.setFamily(u"Titillium Web")
        font.setPointSize(30)
        font.setBold(True)
        font.setWeight(75)
        self.stat.setFont(font)
        self.stat.setScaledContents(False)
        self.stat.setAlignment(Qt.AlignCenter)

        self.verticalLayout.addWidget(self.stat)

        self.label_3 = QLabel(self.widget)
        self.label_3.setObjectName(u"label_3")
        self.label_3.setAlignment(Qt.AlignCenter)

        self.verticalLayout.addWidget(self.label_3)


        self.retranslateUi(Initializer)

        QMetaObject.connectSlotsByName(Initializer)
Esempio n. 20
0
    def __init__(self, groups_list, parent: QObject = None):
        super().__init__(parent)
        self.model = QtCore.QStringListModel(groups_list)

        self.setWindowTitle(self.tr("Set discount value for group"))
        icon = QIcon()
        icon.addFile(u":/discount")
        self.setWindowIcon(icon)

        top_level_layout = QtWidgets.QHBoxLayout(self)
        icon_label = QtWidgets.QLabel(self)
        pixmap = QPixmap(":/discount").scaled(128, 128, Qt.KeepAspectRatio)
        icon_label.setPixmap(pixmap)
        top_level_layout.addWidget(icon_label)

        vertical_layout = QtWidgets.QVBoxLayout(self)
        self.label = QtWidgets.QLabel(self)
        self.label.setText(
            self.tr("Please choose discount group and discount value"))
        vertical_layout.addWidget(self.label)

        self.list_view = QtWidgets.QListView()
        self.list_view.setModel(self.model)
        self.list_view.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.list_view.clicked.connect(self._list_item_clicked)
        vertical_layout.addWidget(self.list_view)

        spin_layout = QtWidgets.QHBoxLayout(self)
        spin_layout.addStretch()
        spin_layout.addWidget(QtWidgets.QLabel(self.tr("Discount:"), self))
        self.spinbox_discount = QtWidgets.QDoubleSpinBox(self)
        self.spinbox_discount.setDecimals(1)
        self.spinbox_discount.setMinimum(0)
        self.spinbox_discount.setSingleStep(5)
        self.spinbox_discount.setMaximum(100)
        spin_layout.addWidget(self.spinbox_discount)
        vertical_layout.addLayout(spin_layout)

        self.buttons = QtWidgets.QDialogButtonBox(
            QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel)
        self.buttons.accepted.connect(self.accept)
        self.buttons.rejected.connect(self.reject)
        vertical_layout.addWidget(self.buttons)

        top_level_layout.addLayout(vertical_layout)
Esempio n. 21
0
def error(text):
    mbox = QMessageBox()

    if language == "ru":
        windowname = "Ошибка"
    else:
        windowname = "Error"

    mbox.setWindowTitle(windowname)
    mbox.setText(text)

    icon = QIcon()
    icon.addFile(u"icons/error.png", QSize(), QIcon.Normal, QIcon.Off)
    mbox.setWindowIcon(icon)

    mbox.show()
    mbox.exec()
Esempio n. 22
0
    def __init__(self):
        super().__init__()

        # Load UI
        loader = QUiLoader(self)
        self.ui = loader.load(resource_path("resources/form.ui"), self)
        icon = QIcon()
        icon.addFile(resource_path("resources/img-dice.ico"), QSize(),
                     QIcon.Normal, QIcon.Off)
        self.setWindowIcon(icon)
        self.setWindowTitle("Img Dice")

        # Connect signals/slots
        self.ui.pushButtonRun.clicked.connect(self.handle_run)
        self.ui.toolButtonImgPath.clicked.connect(self.handle_img_path_select)
        self.ui.toolButtonTileIndex.clicked.connect(
            self.handle_tile_index_select)
        self.ui.toolButtonOutDir.clicked.connect(self.handle_out_dir_select)
Esempio n. 23
0
    def setupUi(self, About):
        if About.objectName():
            About.setObjectName(u"About")
        About.resize(695, 274)
        font = QFont()
        font.setFamily(u"Levenim MT")
        font.setPointSize(12)
        About.setFont(font)
        About.setCursor(QCursor(Qt.WhatsThisCursor))
        icon = QIcon()
        icon.addFile(
            u":/\u043d\u043e\u0432\u0438\u0439\u041f\u0440\u0435\u0444\u0456\u043a\u0441/icon.png",
            QSize(), QIcon.Normal, QIcon.Off)
        About.setWindowIcon(icon)
        self.formLayout = QFormLayout(About)
        self.formLayout.setObjectName(u"formLayout")
        self.label = QLabel(About)
        self.label.setObjectName(u"label")
        self.label.setAutoFillBackground(True)

        self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label)

        self.verticalLayout = QVBoxLayout()
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.label_2 = QLabel(About)
        self.label_2.setObjectName(u"label_2")
        self.label_2.setFont(font)
        self.label_2.setCursor(QCursor(Qt.ArrowCursor))
        self.label_2.setInputMethodHints(Qt.ImhEmailCharactersOnly)
        self.label_2.setMargin(0)

        self.verticalLayout.addWidget(self.label_2)

        self.label_4 = QLabel(About)
        self.label_4.setObjectName(u"label_4")

        self.verticalLayout.addWidget(self.label_4)

        self.formLayout.setLayout(0, QFormLayout.FieldRole,
                                  self.verticalLayout)

        self.retranslateUi(About)

        QMetaObject.connectSlotsByName(About)
Esempio n. 24
0
def settings():
    SettingsWindow.show()

    uis.apiweather.setText(weatherAPI)
    uis.apigeocoder.setText(geocoderAPI)
    #Icon USA
    icon = QIcon()
    icon.addFile(u"icons/usa.png", QSize(), QIcon.Normal, QIcon.Off)
    #Icon Russia
    icon1 = QIcon()
    icon1.addFile(u"icons/russia.png", QSize(), QIcon.Normal, QIcon.Off)
    if language == "ru":
        uis.langbox.addItem(icon1, "Русский")
        uis.langbox.addItem(icon, "English")
    else:
        uis.langbox.addItem(icon, "English")
        uis.langbox.addItem(icon1, "Русский")

    SettingsWindow.exec()
Esempio n. 25
0
    def __init__(self, parent: QObject = None):
        super().__init__(parent)

        self.setWindowTitle(self.tr("Set discounts"))
        icon = QIcon()
        icon.addFile(u":/discount")
        self.setWindowIcon(icon)

        top_level_layout = QtWidgets.QHBoxLayout(self)
        icon_label = QtWidgets.QLabel(self)
        pixmap = QPixmap(":/discount").scaled(128, 128, Qt.KeepAspectRatio)
        icon_label.setPixmap(pixmap)
        top_level_layout.addWidget(icon_label)

        vertical_layout = QtWidgets.QVBoxLayout(self)
        self.label = QtWidgets.QLabel(self)
        self.label.setText(
            self.tr("Please enter regular expression\n"
                    "if you want to limit discount to matching items,\n"
                    "or leave empty to add discount to all items."))
        vertical_layout.addWidget(self.label)

        self.line_edit_expression = QtWidgets.QLineEdit(self)
        vertical_layout.addWidget(self.line_edit_expression)

        spin_layout = QtWidgets.QHBoxLayout(self)
        spin_layout.addStretch()
        spin_layout.addWidget(QtWidgets.QLabel(self.tr("Discount:"), self))
        self.spinbox_discount = QtWidgets.QDoubleSpinBox(self)
        self.spinbox_discount.setDecimals(1)
        self.spinbox_discount.setMinimum(0)
        self.spinbox_discount.setSingleStep(5)
        self.spinbox_discount.setMaximum(100)
        spin_layout.addWidget(self.spinbox_discount)
        vertical_layout.addLayout(spin_layout)

        self.buttons = QtWidgets.QDialogButtonBox(
            QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel)
        self.buttons.accepted.connect(self.accept)
        self.buttons.rejected.connect(self.reject)
        vertical_layout.addWidget(self.buttons)

        top_level_layout.addLayout(vertical_layout)
Esempio n. 26
0
    def setupUi_(self, MainWindow):
        # set Icon
        icon = QIcon()
        icon.addFile("./icon.ico")
        MainWindow.setWindowIcon(icon)

        # Set constant
        self.LABEL_N = {0: self.label_0,
                        1: self.label_1,
                        2: self.label_2,
                        3: self.label_3,
                        4: self.label_4,
                        5: self.label_5,
                        6: self.label_6,
                        7: self.label_7,
                        8: self.label_8,
                        9: self.label_9}
        self.QUESTIONS = [i for i in range(1, 11)]

        self.FILE = "./bank/货运组理论试题.xls"
        if os.access(self.FILE, os.F_OK) is False:
            self.FILE = ''
            self.selectFile()

        # set QMessageBox
        self.message = QMessageBox(text="选择题库")
        self.message.setWindowTitle(" ")

        # Action
        self.Select.clicked.connect(self.selectFile)
        self.Button.clicked.connect(self.cilckButton)
        for i in self.LABEL_N:
            _label = self.LABEL_N[i]
            _label.ANSWER = ""
            _label.TIME = 0
            _label.installEventFilter(self)  # 安装事件过滤器

        # Filter
        _regex = QRegExp("^[0-9]*[1-9][0-9]*$")  # 正则表达式:正整数
        _validator = QRegExpValidator(_regex)
        self.MinSelect.setValidator(_validator)
        self.MaxSelect.setValidator(_validator)
Esempio n. 27
0
    def setupUi(self, SearchWindow):
        if not SearchWindow.objectName():
            SearchWindow.setObjectName(u"SearchWindow")
        SearchWindow.resize(320, 320)
        sizePolicy = QSizePolicy(QSizePolicy.Fixed,
                                 QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(60)
        sizePolicy.setVerticalStretch(60)
        sizePolicy.setHeightForWidth(
            SearchWindow.sizePolicy().hasHeightForWidth())
        SearchWindow.setSizePolicy(sizePolicy)
        SearchWindow.setMinimumSize(QSize(320, 320))
        SearchWindow.setMaximumSize(QSize(320, 320))
        self.searchBar = QLineEdit(SearchWindow)
        self.searchBar.setObjectName(u"searchBar")
        self.searchBar.setGeometry(QRect(80, 30, 151, 21))
        self.searchBar.setMaximumSize(QSize(16777215, 100))
        self.searchButton = QPushButton(SearchWindow)
        self.searchButton.setObjectName(u"searchButton")
        self.searchButton.setGeometry(QRect(230, 29, 32, 22))
        sizePolicy1 = QSizePolicy(QSizePolicy.Minimum,
                                  QSizePolicy.MinimumExpanding)
        sizePolicy1.setHorizontalStretch(0)
        sizePolicy1.setVerticalStretch(0)
        sizePolicy1.setHeightForWidth(
            self.searchButton.sizePolicy().hasHeightForWidth())
        self.searchButton.setSizePolicy(sizePolicy1)
        icon = QIcon()
        icon.addFile(u"icons/search.png", QSize(), QIcon.Normal, QIcon.Off)
        self.searchButton.setIcon(icon)
        self.searchButton.setCheckable(False)
        self.searchResults = QListWidget(SearchWindow)
        self.searchResults.setObjectName(u"searchResults")
        self.searchResults.setGeometry(QRect(80, 50, 181, 191))

        self.retranslateUi(SearchWindow)

        self.searchButton.setDefault(True)

        QMetaObject.connectSlotsByName(SearchWindow)
Esempio n. 28
0
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(185, 128)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.gridLayout = QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(u"gridLayout")
        self.btnStart = QToolButton(self.centralwidget)
        self.btnStart.setObjectName(u"btnStart")
        self.btnStart.setMinimumSize(QSize(50, 50))
        icon = QIcon()
        icon.addFile(u":/play.png", QSize(), QIcon.Normal, QIcon.On)
        self.btnStart.setIcon(icon)
        self.btnStart.setIconSize(QSize(30, 30))

        self.gridLayout.addWidget(self.btnStart, 0, 0, 1, 1)

        self.btnStop = QToolButton(self.centralwidget)
        self.btnStop.setObjectName(u"btnStop")
        self.btnStop.setMinimumSize(QSize(50, 50))
        icon1 = QIcon()
        icon1.addFile(u":/stop.png", QSize(), QIcon.Normal, QIcon.On)
        self.btnStop.setIcon(icon1)
        self.btnStop.setIconSize(QSize(30, 30))

        self.gridLayout.addWidget(self.btnStop, 0, 1, 1, 1)

        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 185, 21))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)

        QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 29
0
    def __init__(self, youder, ui, ctx):
        self.youder = youder
        self.ui = ui
        self.ctx = ctx

        #Set Home Page is Default Page
        self.ui.pages.setCurrentIndex(0)

        # Always load Dark Mode at Fist Time

        self.dark_mode = True
        self.green_mode = False
        self.pink_mode = False

        if self.dark_mode == True:
            icon = QIcon()
            icon.addFile(u":/toggle_on/icons/white/toggle_on.png", QSize(),
                         QIcon.Normal, QIcon.Off)
            self.ui.dark_mode_onoff_button.setIcon(icon)
            self.ui.dark_mode_onoff_button.setIconSize(QSize(80, 30))
            self.youder.setStyleSheet(open(self.ctx.dark).read())
            self.load_white_icons()
        '''
        
        YouDer is product of Open Utilities 
        
        Links of 
                Open Utilities's YouDer GitHub Account
                
                Open Utilities's Official Telegram Channel 
                
                Open Utilities's Official YouTube Channel
        '''

        self.github_link = "https://github.com/OpenUtilities2020/YouDer"
        self.telegram_link = "https://t.me/Open_Utilities"
        self.youtube_link = 'https://www.youtube.com/channel/UC0XdnN27yW9DwaSFj1kmOIw/'
Esempio n. 30
0
    def setupUi(self, Dialog):
        if not Dialog.objectName():
            Dialog.setObjectName(u"Dialog")
        Dialog.setMinimumSize(QSize(600, 500))
        Dialog.setMaximumSize(QSize(600, 500))
        font = QFont()
        font.setFamily("Times New Roman")
        font.setPointSize(12)
        font.setBold(False)

        self.toolBox_s = QToolBox(Dialog)
        self.toolBox_s.setObjectName("toolBox_m")
        self.toolBox_s.setGeometry(10, 10, 600, 500)
        self.toolBox_s.setFont(font)
        self.toolBox_s.setLayoutDirection(Qt.LeftToRight)

        self.lineEdit_StatusForm = QLineEdit(self.toolBox_s)
        self.lineEdit_StatusForm.setObjectName("lineEdit_StatusForm")
        self.lineEdit_StatusForm.setGeometry(QRect(10, 0, 300, 25))
        self.lineEdit_StatusForm.setFrame(True)
        self.lineEdit_StatusForm.setEchoMode(QLineEdit.Normal)
        self.lineEdit_StatusForm.setClearButtonEnabled(True)

        self.pB_print_StatusForm = QPushButton(self.toolBox_s)
        self.pB_print_StatusForm.setObjectName("pB_print_StatusForm")
        self.pB_print_StatusForm.setGeometry(QRect(400, 0, 150, 25))
        self.pB_print_StatusForm.setFont(font)

        self.pB_add_StatusForm = QPushButton(self.toolBox_s)
        self.pB_add_StatusForm.setObjectName("pB_add_StatusForm")
        self.pB_add_StatusForm.setGeometry(QRect(10, 40, 100, 25))
        icon = QIcon()
        icon.addFile("images/add.png", QSize(), QIcon.Normal, QIcon.Off)
        self.pB_add_StatusForm.setIcon(icon)

        self.pB_edit_StatusForm = QPushButton(self.toolBox_s)
        self.pB_edit_StatusForm.setObjectName("pB_edit_StatusForm")
        self.pB_edit_StatusForm.setGeometry(QRect(110, 40, 100, 25))
        self.pB_edit_StatusForm.setCheckable(True)
        icon1 = QIcon()
        icon1.addFile("images/edit.png", QSize(), QIcon.Normal, QIcon.Off)
        self.pB_edit_StatusForm.setIcon(icon1)

        self.pB_delete_StatusForm = QPushButton(self.toolBox_s)
        self.pB_delete_StatusForm.setObjectName("pB_delete_StatusForm")
        self.pB_delete_StatusForm.setGeometry(QRect(210, 40, 100, 25))
        icon2 = QIcon()
        icon2.addFile("images/delete.png", QSize(), QIcon.Normal, QIcon.Off)
        self.pB_delete_StatusForm.setIcon(icon2)

        self.tableView_StatusForm = QTableView(self.toolBox_s)
        self.tableView_StatusForm.setObjectName("tableView_StatusForm")
        self.tableView_StatusForm.setGeometry(QRect(0, 90, 580, 380))

        self.retranslateUi(Dialog)

        QMetaObject.connectSlotsByName(Dialog)