class PageAllegroOptions(QWidget): def __init__(self, parent=None): QWidget.__init__(self) self.parent = parent self.parent.addWidget(self) self.auto_login, self.auto_pwd, self.auto_email, self.auto_time = data.get_autofill() self.gridLayout = QGridLayout(self) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setColumnStretch(0, 3) self.gridLayout.setColumnStretch(1, 7) self.pushButton_auto = QPushButton(self) self.pushButton_auto.setText("Autofill") self.pushButton_auto.setStyleSheet(styles.btn_allegro_ops_auto) self.pushButton_auto.setCheckable(True) self.pushButton_auto.setChecked(True) self.pushButton_auto.clicked.connect(lambda: self.on_auto()) self.gridLayout.addWidget(self.pushButton_auto, 0, 0, 1, 1) self.pushButton_help = QPushButton(self) self.pushButton_help.setText("Help") self.pushButton_help.setStyleSheet(styles.btn_allegro_ops_auto) self.pushButton_help.setCheckable(True) self.pushButton_help.setChecked(False) self.pushButton_help.clicked.connect(lambda: self.on_help()) self.gridLayout.addWidget(self.pushButton_help, 1, 0, 1, 1) self.spacer_btn_d = QSpacerItem(40, 20, QSizePolicy.Expanding) self.gridLayout.addItem(self.spacer_btn_d, 2, 0, 1, 1) self.stackedWidget = QStackedWidget(self) self.stackedWidget.setStyleSheet("""QStackedWidget{background-color: #fff;}""") self.gridLayout.addWidget(self.stackedWidget, 0, 1, 3, 1) self.widget_auto = QWidget(self.stackedWidget) self.widget_auto.setStyleSheet("""QWidget{background-color: #fff;}""") self.stackedWidget.addWidget(self.widget_auto) self.widget_help = QWidget(self.stackedWidget) self.widget_help.setStyleSheet("""QWidget{background-color: #fff;}""") self.stackedWidget.addWidget(self.widget_help) self.gridLayout_help = QVBoxLayout(self.widget_help) self.gridLayout_help.setContentsMargins(50, 50, 50, 50) self.gridLayout_help.setSpacing(50) self.label_help = QLabel(self.widget_help) self.label_help.setStyleSheet(styles.label_lineEdit) self.label_help.setWordWrap(True) self.label_help.setText(styles.help_text) self.gridLayout_help.addWidget(self.label_help) self.spacer_help = QSpacerItem(40, 20, QSizePolicy.Expanding) self.gridLayout_help.addItem(self.spacer_help) self.gridLayout_auto = QGridLayout(self.widget_auto) self.gridLayout_auto.setContentsMargins(0, 0, 0, 0) self.gridLayout_auto.setSpacing(20) self.gridLayout_auto.setColumnStretch(0, 1) self.gridLayout_auto.setColumnStretch(1, 1) self.gridLayout_auto.setColumnStretch(2, 1) self.gridLayout_auto.setColumnStretch(3, 1) self.gridLayout_auto.setRowStretch(0, 3) self.gridLayout_auto.setRowStretch(1, 1) self.gridLayout_auto.setRowStretch(2, 1) self.gridLayout_auto.setRowStretch(3, 1) self.gridLayout_auto.setRowStretch(4, 1) self.gridLayout_auto.setRowStretch(5, 1) self.gridLayout_auto.setRowStretch(6, 3) self.lineEdit_login = QLineEdit(self.widget_auto) self.lineEdit_login.setMinimumSize(QSize(0, 60)) self.lineEdit_login.setSizeIncrement(QSize(40, 40)) self.lineEdit_login.setStyleSheet(styles.lineEdit_opt) self.gridLayout_auto.addWidget(self.lineEdit_login, 1, 2, 1, 1) self.lineEdit_login.setPlaceholderText("login or email of your account") self.lineEdit_login.setText(self.auto_login) self.lineEdit_password = QLineEdit(self.widget_auto) self.lineEdit_password.setMinimumSize(QSize(20, 60)) self.lineEdit_password.setStyleSheet(styles.lineEdit_opt) self.lineEdit_password.setEchoMode(QLineEdit.Password) self.lineEdit_password.setReadOnly(False) self.gridLayout_auto.addWidget(self.lineEdit_password, 2, 2, 1, 1) self.lineEdit_password.setPlaceholderText("password of your account") self.lineEdit_password.setText(self.auto_pwd) self.lineEdit_email = QLineEdit(self.widget_auto) self.lineEdit_email.setMinimumSize(QSize(0, 60)) self.lineEdit_email.setStyleSheet(styles.lineEdit_opt) self.lineEdit_email.setFrame(True) self.lineEdit_email.setEchoMode(QLineEdit.Normal) self.gridLayout_auto.addWidget(self.lineEdit_email, 3, 2, 1, 1) self.lineEdit_email.setPlaceholderText("email to which the notification will be sent") self.lineEdit_email.setText(self.auto_email) self.lineEdit_time = QLineEdit(self.widget_auto) self.lineEdit_time.setMinimumSize(QSize(0, 60)) self.lineEdit_time.setStyleSheet(styles.lineEdit) self.gridLayout_auto.addWidget(self.lineEdit_time, 4, 2, 1, 1) self.lineEdit_time.setPlaceholderText("interval between refreshes") self.lineEdit_time.setText(str(self.auto_time)) self.label_login = QLabel("Allegro login", self) self.label_login.setStyleSheet(styles.label_lineEdit) self.gridLayout_auto.addWidget(self.label_login, 1, 1, 1, 1) self.label_password = QLabel("Allegro password", self) self.label_password.setStyleSheet(styles.label_lineEdit) self.gridLayout_auto.addWidget(self.label_password, 2, 1, 1, 1) self.label_email = QLabel("Email to notificate", self) self.label_email.setStyleSheet(styles.label_lineEdit) self.gridLayout_auto.addWidget(self.label_email, 3, 1, 1, 1) self.label_time = QLabel("Refresh time[s]", self) self.label_time.setStyleSheet(styles.label_lineEdit) self.gridLayout_auto.addWidget(self.label_time, 4, 1, 1, 1) self.pushButton_set = QPushButton("Set", self.widget_auto) self.pushButton_set.clicked.connect(lambda: self.on_set()) self.pushButton_set.setMinimumSize(QSize(0, 40)) self.pushButton_set.setStyleSheet(styles.btn_dark) self.gridLayout_auto.addWidget(self.pushButton_set, 5, 2, 1, 1) self.spacer_auto_l = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.gridLayout_auto.addItem(self.spacer_auto_l, 1, 1, 1, 1) self.spacer_auto_r = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.gridLayout_auto.addItem(self.spacer_auto_r, 1, 3, 1, 1) self.spacer_auto_t = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.gridLayout_auto.addItem(self.spacer_auto_t, 0, 0, 1, 1) self.spacer_auto_b = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.gridLayout_auto.addItem(self.spacer_auto_b, 6, 0, 1, 1) def on_set(self): data.add_autofill(self.lineEdit_login.text(), self.lineEdit_password.text(), self.lineEdit_email.text(), int(self.lineEdit_time.text())) auto_login, auto_pwd, auto_email, auto_time = data.get_autofill() self.parent.pageAllegroAdd.lineEdit_login.setText(auto_login) self.parent.pageAllegroAdd.lineEdit_password.setText(auto_pwd) self.parent.pageAllegroAdd.lineEdit_email.setText(auto_email) self.parent.pageAllegroAdd.lineEdit_time.setText(str(auto_time)) def on_auto(self): self.pushButton_auto.setChecked(True) self.pushButton_help.setChecked(False) self.stackedWidget.setCurrentIndex(0) def on_help(self): self.pushButton_auto.setChecked(False) self.pushButton_help.setChecked(True) self.stackedWidget.setCurrentIndex(1)
class Ui_MainWindow(object): def setupUi(self, MainWindow): if not MainWindow.objectName(): MainWindow.setObjectName(u"MainWindow") MainWindow.resize(800, 550) MainWindow.setMinimumSize(QSize(800, 550)) self.centralwidget = QWidget(MainWindow) self.centralwidget.setObjectName(u"centralwidget") self.centralwidget.setStyleSheet(u"background:rgb(91,90,90);") self.verticalLayout = QVBoxLayout(self.centralwidget) self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName(u"verticalLayout") self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.frame_top = QFrame(self.centralwidget) self.frame_top.setObjectName(u"frame_top") self.frame_top.setMaximumSize(QSize(16777215, 55)) self.frame_top.setFrameShape(QFrame.NoFrame) self.frame_top.setFrameShadow(QFrame.Plain) self.horizontalLayout = QHBoxLayout(self.frame_top) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName(u"horizontalLayout") self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.frame_toodle = QFrame(self.frame_top) self.frame_toodle.setObjectName(u"frame_toodle") self.frame_toodle.setMinimumSize(QSize(80, 55)) self.frame_toodle.setMaximumSize(QSize(80, 55)) self.frame_toodle.setStyleSheet(u"background:rgb(0,143,150);") self.frame_toodle.setFrameShape(QFrame.NoFrame) self.frame_toodle.setFrameShadow(QFrame.Plain) self.horizontalLayout_3 = QHBoxLayout(self.frame_toodle) self.horizontalLayout_3.setSpacing(0) self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0) self.toodle = QPushButton(self.frame_toodle) self.toodle.setObjectName(u"toodle") self.toodle.setMinimumSize(QSize(80, 55)) self.toodle.setMaximumSize(QSize(80, 55)) self.toodle.setStyleSheet(u"QPushButton {\n" " border: none;\n" " background-color: rgba(0,0,0,0);\n" "}\n" "QPushButton:hover {\n" " background-color: rgb(0,178,178);\n" "}\n" "QPushButton:pressed { \n" " background-color: rgba(0,0,0,0);\n" "}") icon = QIcon() icon.addFile(u"icons/1x/logo.png", QSize(), QIcon.Normal, QIcon.Off) self.toodle.setIcon(icon) self.toodle.setIconSize(QSize(22, 12)) self.toodle.setFlat(True) self.horizontalLayout_3.addWidget(self.toodle) self.horizontalLayout.addWidget(self.frame_toodle) self.frame_top_east = QFrame(self.frame_top) self.frame_top_east.setObjectName(u"frame_top_east") self.frame_top_east.setMaximumSize(QSize(16777215, 55)) self.frame_top_east.setStyleSheet(u"background:rgb(51,51,51);") self.frame_top_east.setFrameShape(QFrame.NoFrame) self.frame_top_east.setFrameShadow(QFrame.Plain) self.horizontalLayout_4 = QHBoxLayout(self.frame_top_east) self.horizontalLayout_4.setSpacing(0) self.horizontalLayout_4.setObjectName(u"horizontalLayout_4") self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0) self.frame_appname = QFrame(self.frame_top_east) self.frame_appname.setObjectName(u"frame_appname") self.frame_appname.setFrameShape(QFrame.NoFrame) self.frame_appname.setFrameShadow(QFrame.Plain) self.horizontalLayout_10 = QHBoxLayout(self.frame_appname) self.horizontalLayout_10.setSpacing(7) self.horizontalLayout_10.setObjectName(u"horizontalLayout_10") self.horizontalLayout_10.setContentsMargins(0, 0, 0, 0) self.lab_appname = QLabel(self.frame_appname) self.lab_appname.setObjectName(u"lab_appname") font = QFont() font.setFamily(u"Segoe UI Light") font.setPointSize(24) self.lab_appname.setFont(font) self.lab_appname.setStyleSheet(u"color:rgb(255,255,255);") self.horizontalLayout_10.addWidget(self.lab_appname) self.horizontalLayout_4.addWidget(self.frame_appname) self.frame_min = QFrame(self.frame_top_east) self.frame_min.setObjectName(u"frame_min") self.frame_min.setMinimumSize(QSize(55, 55)) self.frame_min.setMaximumSize(QSize(55, 55)) self.frame_min.setFrameShape(QFrame.NoFrame) self.frame_min.setFrameShadow(QFrame.Plain) self.horizontalLayout_7 = QHBoxLayout(self.frame_min) self.horizontalLayout_7.setSpacing(0) self.horizontalLayout_7.setObjectName(u"horizontalLayout_7") self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0) self.bn_min = QPushButton(self.frame_min) self.bn_min.setObjectName(u"bn_min") self.bn_min.setMaximumSize(QSize(55, 55)) self.bn_min.setStyleSheet(u"QPushButton {\n" " border: none;\n" " background-color: rgba(0,0,0,0);\n" "}\n" "QPushButton:hover {\n" " background-color: rgb(0,143,150);\n" "}\n" "QPushButton:pressed { \n" " background-color: rgba(0,0,0,0);\n" "}") icon1 = QIcon() icon1.addFile(u"icons/1x/hideAsset 53.png", QSize(), QIcon.Normal, QIcon.Off) self.bn_min.setIcon(icon1) self.bn_min.setIconSize(QSize(22, 22)) self.bn_min.setFlat(True) self.horizontalLayout_7.addWidget(self.bn_min) self.horizontalLayout_4.addWidget(self.frame_min) self.frame_max = QFrame(self.frame_top_east) self.frame_max.setObjectName(u"frame_max") self.frame_max.setMinimumSize(QSize(55, 55)) self.frame_max.setMaximumSize(QSize(55, 55)) self.frame_max.setFrameShape(QFrame.NoFrame) self.frame_max.setFrameShadow(QFrame.Plain) self.horizontalLayout_6 = QHBoxLayout(self.frame_max) self.horizontalLayout_6.setSpacing(0) self.horizontalLayout_6.setObjectName(u"horizontalLayout_6") self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0) self.bn_max = QPushButton(self.frame_max) self.bn_max.setObjectName(u"bn_max") self.bn_max.setMaximumSize(QSize(55, 55)) self.bn_max.setStyleSheet(u"QPushButton {\n" " border: none;\n" " background-color: rgba(0,0,0,0);\n" "}\n" "QPushButton:hover {\n" " background-color: rgb(0,143,150);\n" "}\n" "QPushButton:pressed { \n" " background-color: rgba(0,0,0,0);\n" "}") icon2 = QIcon() icon2.addFile(u"icons/1x/max.png", QSize(), QIcon.Normal, QIcon.Off) self.bn_max.setIcon(icon2) self.bn_max.setIconSize(QSize(22, 22)) self.bn_max.setFlat(True) self.horizontalLayout_6.addWidget(self.bn_max) self.horizontalLayout_4.addWidget(self.frame_max) self.frame_close = QFrame(self.frame_top_east) self.frame_close.setObjectName(u"frame_close") self.frame_close.setMinimumSize(QSize(55, 55)) self.frame_close.setMaximumSize(QSize(55, 55)) self.frame_close.setFrameShape(QFrame.NoFrame) self.frame_close.setFrameShadow(QFrame.Plain) self.horizontalLayout_5 = QHBoxLayout(self.frame_close) self.horizontalLayout_5.setSpacing(0) self.horizontalLayout_5.setObjectName(u"horizontalLayout_5") self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0) self.bn_close = QPushButton(self.frame_close) self.bn_close.setObjectName(u"bn_close") self.bn_close.setMaximumSize(QSize(55, 55)) self.bn_close.setStyleSheet(u"QPushButton {\n" " border: none;\n" " background-color: rgba(0,0,0,0);\n" "}\n" "QPushButton:hover {\n" " background-color: rgb(0,143,150);\n" "}\n" "QPushButton:pressed { \n" " background-color: rgba(0,0,0,0);\n" "}") icon3 = QIcon() icon3.addFile(u"icons/1x/closeAsset 43.png", QSize(), QIcon.Normal, QIcon.Off) self.bn_close.setIcon(icon3) self.bn_close.setIconSize(QSize(22, 22)) self.bn_close.setFlat(True) self.horizontalLayout_5.addWidget(self.bn_close) self.horizontalLayout_4.addWidget(self.frame_close) self.horizontalLayout.addWidget(self.frame_top_east) self.verticalLayout.addWidget(self.frame_top) self.frame_bottom = QFrame(self.centralwidget) self.frame_bottom.setObjectName(u"frame_bottom") self.frame_bottom.setFrameShape(QFrame.NoFrame) self.frame_bottom.setFrameShadow(QFrame.Plain) self.horizontalLayout_2 = QHBoxLayout(self.frame_bottom) self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) self.frame_bottom_west = QFrame(self.frame_bottom) self.frame_bottom_west.setObjectName(u"frame_bottom_west") self.frame_bottom_west.setMinimumSize(QSize(80, 0)) self.frame_bottom_west.setMaximumSize(QSize(80, 16777215)) self.frame_bottom_west.setStyleSheet(u"background:rgb(51,51,51);") self.frame_bottom_west.setFrameShape(QFrame.NoFrame) self.frame_bottom_west.setFrameShadow(QFrame.Plain) self.verticalLayout_3 = QVBoxLayout(self.frame_bottom_west) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName(u"verticalLayout_3") self.verticalLayout_3.setContentsMargins(0, 0, 0, 0) self.frame_home = QFrame(self.frame_bottom_west) self.frame_home.setObjectName(u"frame_home") self.frame_home.setMinimumSize(QSize(80, 55)) self.frame_home.setMaximumSize(QSize(160, 55)) self.frame_home.setFrameShape(QFrame.NoFrame) self.frame_home.setFrameShadow(QFrame.Plain) self.horizontalLayout_15 = QHBoxLayout(self.frame_home) self.horizontalLayout_15.setSpacing(0) self.horizontalLayout_15.setObjectName(u"horizontalLayout_15") self.horizontalLayout_15.setContentsMargins(0, 0, 0, 0) self.bn_home = QPushButton(self.frame_home) self.bn_home.setObjectName(u"bn_home") self.bn_home.setMinimumSize(QSize(80, 55)) self.bn_home.setMaximumSize(QSize(160, 55)) self.bn_home.setStyleSheet(u"QPushButton {\n" " border: none;\n" " background-color: rgba(0,0,0,0);\n" "}\n" "QPushButton:hover {\n" " background-color: rgb(91,90,90);\n" "}\n" "QPushButton:pressed { \n" " background-color: rgba(0,0,0,0);\n" "}") icon4 = QIcon() icon4.addFile(u"icons/1x/homeAsset 46.png", QSize(), QIcon.Normal, QIcon.Off) self.bn_home.setIcon(icon4) self.bn_home.setIconSize(QSize(22, 22)) self.bn_home.setFlat(True) self.horizontalLayout_15.addWidget(self.bn_home) self.verticalLayout_3.addWidget(self.frame_home) self.frame_8 = QFrame(self.frame_bottom_west) self.frame_8.setObjectName(u"frame_8") self.frame_8.setFrameShape(QFrame.NoFrame) self.frame_8.setFrameShadow(QFrame.Plain) self.verticalLayout_4 = QVBoxLayout(self.frame_8) self.verticalLayout_4.setSpacing(0) self.verticalLayout_4.setObjectName(u"verticalLayout_4") self.verticalLayout_4.setContentsMargins(0, 0, 0, 0) self.verticalLayout_3.addWidget(self.frame_8) self.horizontalLayout_2.addWidget(self.frame_bottom_west) self.frame_bottom_east = QFrame(self.frame_bottom) self.frame_bottom_east.setObjectName(u"frame_bottom_east") self.frame_bottom_east.setFrameShape(QFrame.NoFrame) self.frame_bottom_east.setFrameShadow(QFrame.Plain) self.verticalLayout_2 = QVBoxLayout(self.frame_bottom_east) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.frame = QFrame(self.frame_bottom_east) self.frame.setObjectName(u"frame") self.frame.setFrameShape(QFrame.NoFrame) self.frame.setFrameShadow(QFrame.Plain) self.horizontalLayout_14 = QHBoxLayout(self.frame) self.horizontalLayout_14.setSpacing(0) self.horizontalLayout_14.setObjectName(u"horizontalLayout_14") self.horizontalLayout_14.setContentsMargins(0, 0, 0, 0) self.stackedWidget = QStackedWidget(self.frame) self.stackedWidget.setObjectName(u"stackedWidget") self.stackedWidget.setMinimumSize(QSize(0, 55)) self.stackedWidget.setStyleSheet(u"") self.page_home = QWidget() self.page_home.setObjectName(u"page_home") self.page_home.setStyleSheet(u"background:rgb(91,90,90);") self.horizontalLayout_19 = QHBoxLayout(self.page_home) self.horizontalLayout_19.setSpacing(0) self.horizontalLayout_19.setObjectName(u"horizontalLayout_19") self.horizontalLayout_19.setContentsMargins(0, 5, 0, 5) self.frame_home_main = QFrame(self.page_home) self.frame_home_main.setObjectName(u"frame_home_main") self.frame_home_main.setFrameShape(QFrame.NoFrame) self.frame_home_main.setFrameShadow(QFrame.Plain) self.verticalLayout_5 = QVBoxLayout(self.frame_home_main) self.verticalLayout_5.setSpacing(5) self.verticalLayout_5.setObjectName(u"verticalLayout_5") self.verticalLayout_5.setContentsMargins(5, 5, 5, 5) font1 = QFont() font1.setFamily(u"Segoe UI Semilight") font1.setPointSize(10) self.lab_home_main_disc = QLabel(self.frame_home_main) self.lab_home_main_disc.setObjectName(u"lab_home_main_disc") font2 = QFont() font2.setFamily(u"Segoe UI") font2.setPointSize(10) self.lab_home_main_disc.setFont(font2) self.lab_home_main_disc.setStyleSheet(u"color:rgb(255,255,255);") self.lab_home_main_disc.setAlignment(Qt.AlignLeading | Qt.AlignLeft | Qt.AlignTop) self.lab_home_main_disc.setWordWrap(True) self.lab_home_main_disc.setMargin(5) self.verticalLayout_5.addWidget(self.lab_home_main_disc) self.horizontalLayout_19.addWidget(self.frame_home_main) self.vert_divide = QFrame(self.page_home) self.vert_divide.setObjectName(u"vert_divide") self.vert_divide.setFrameShape(QFrame.VLine) self.vert_divide.setFrameShadow(QFrame.Sunken) self.horizontalLayout_19.addWidget(self.vert_divide) self.frame_home_stat = QFrame(self.page_home) self.frame_home_stat.setObjectName(u"frame_home_stat") self.frame_home_stat.setMinimumSize(QSize(220, 0)) self.frame_home_stat.setMaximumSize(QSize(220, 16777215)) self.frame_home_stat.setFrameShape(QFrame.NoFrame) self.frame_home_stat.setFrameShadow(QFrame.Plain) self.verticalLayout_6 = QVBoxLayout(self.frame_home_stat) self.verticalLayout_6.setSpacing(5) self.verticalLayout_6.setObjectName(u"verticalLayout_6") self.verticalLayout_6.setContentsMargins(5, 5, 5, 5) self.bn_home_image = QPushButton(self.frame_home_stat) self.bn_home_image.setObjectName(u"bn_home_image") self.bn_home_image.setEnabled(True) self.bn_home_image.setMinimumSize(QSize(205, 25)) self.bn_home_image.setMaximumSize(QSize(205, 25)) self.bn_home_image.setFont(font1) self.bn_home_image.setStyleSheet(u"QPushButton {\n" " border: 2px solid rgb(51,51,51);\n" " border-radius: 5px; \n" " color:rgb(255,255,255);\n" " background-color: rgb(51,51,51);\n" "}\n" "QPushButton:hover {\n" " border: 2px solid rgb(0,143,150);\n" " background-color: rgb(0,143,150);\n" "}\n" "QPushButton:pressed { \n" " border: 2px solid rgb(0,143,150);\n" " background-color: rgb(51,51,51);\n" "}\n" "\n" "QPushButton:disabled { \n" " border-radius: 5px; \n" " border: 2px solid rgb(112,112,112);\n" " background-color: rgb(112,112,112);\n" "}") self.verticalLayout_6.addWidget(self.bn_home_image) self.bn_home_rec = QPushButton(self.frame_home_stat) self.bn_home_rec.setObjectName(u"bn_home_rec") self.bn_home_rec.setEnabled(True) self.bn_home_rec.setMinimumSize(QSize(205, 25)) self.bn_home_rec.setMaximumSize(QSize(205, 25)) self.bn_home_rec.setFont(font1) self.bn_home_rec.setStyleSheet(u"QPushButton {\n" " border: 2px solid rgb(51,51,51);\n" " border-radius: 5px; \n" " color:rgb(255,255,255);\n" " background-color: rgb(51,51,51);\n" "}\n" "QPushButton:hover {\n" " border: 2px solid rgb(0,143,150);\n" " background-color: rgb(0,143,150);\n" "}\n" "QPushButton:pressed { \n" " border: 2px solid rgb(0,143,150);\n" " background-color: rgb(51,51,51);\n" "}\n" "\n" "QPushButton:disabled { \n" " border-radius: 5px; \n" " border: 2px solid rgb(112,112,112);\n" " background-color: rgb(112,112,112);\n" "}") self.verticalLayout_6.addWidget(self.bn_home_rec) self.horizontalLayout_19.addWidget(self.frame_home_stat) self.stackedWidget.addWidget(self.page_home) self.page_about_home = QWidget() self.page_about_home.setObjectName(u"page_about_home") self.page_about_home.setStyleSheet(u"background:rgb(91,90,90);") self.verticalLayout_13 = QVBoxLayout(self.page_about_home) self.verticalLayout_13.setSpacing(5) self.verticalLayout_13.setObjectName(u"verticalLayout_13") self.verticalLayout_13.setContentsMargins(5, 5, 5, 5) self.lab_about_home = QLabel(self.page_about_home) self.lab_about_home.setObjectName(u"lab_about_home") self.lab_about_home.setMinimumSize(QSize(0, 55)) self.lab_about_home.setMaximumSize(QSize(16777215, 55)) font3 = QFont() font3.setFamily(u"Segoe UI") font3.setPointSize(24) self.lab_about_home.setFont(font3) self.lab_about_home.setStyleSheet(u"color:rgb(255,255,255);") self.verticalLayout_13.addWidget(self.lab_about_home) self.frame_about_home = QFrame(self.page_about_home) self.frame_about_home.setObjectName(u"frame_about_home") self.frame_about_home.setFrameShape(QFrame.StyledPanel) self.frame_about_home.setFrameShadow(QFrame.Raised) self.horizontalLayout_28 = QHBoxLayout(self.frame_about_home) self.horizontalLayout_28.setSpacing(0) self.horizontalLayout_28.setObjectName(u"horizontalLayout_28") self.horizontalLayout_28.setContentsMargins(5, 5, 0, 5) self.text_about_home = QTextEdit(self.frame_about_home) self.text_about_home.setObjectName(u"text_about_home") self.text_about_home.setEnabled(True) self.text_about_home.setFont(font2) self.text_about_home.setStyleSheet(u"color:rgb(255,255,255);") self.text_about_home.setFrameShape(QFrame.NoFrame) self.text_about_home.setFrameShadow(QFrame.Plain) self.text_about_home.setReadOnly(True) self.text_about_home.setTextInteractionFlags(Qt.TextBrowserInteraction) self.horizontalLayout_28.addWidget(self.text_about_home) self.vsb_about_home = QScrollBar(self.frame_about_home) self.vsb_about_home.setObjectName(u"vsb_about_home") self.vsb_about_home.setStyleSheet(u"QScrollBar:vertical {\n" " background:rgb(51,51,51);\n" " width:20px;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "QScrollBar::handle:vertical {\n" " background:rgb(0,143,170);\n" "}\n" "QScrollBar::add-page:vertical {\n" " background:rgb(51,51,51);\n" "}\n" "QScrollBar::sub-page:vertical {\n" " background:rgb(51,51,51);\n" "}") self.vsb_about_home.setOrientation(Qt.Vertical) self.horizontalLayout_28.addWidget(self.vsb_about_home) self.verticalLayout_13.addWidget(self.frame_about_home) self.stackedWidget.addWidget(self.page_about_home) self.horizontalLayout_14.addWidget(self.stackedWidget) self.verticalLayout_2.addWidget(self.frame) self.frame_low = QFrame(self.frame_bottom_east) self.frame_low.setObjectName(u"frame_low") self.frame_low.setMinimumSize(QSize(0, 20)) self.frame_low.setMaximumSize(QSize(16777215, 20)) self.frame_low.setStyleSheet(u"") self.frame_low.setFrameShape(QFrame.NoFrame) self.frame_low.setFrameShadow(QFrame.Plain) self.horizontalLayout_11 = QHBoxLayout(self.frame_low) self.horizontalLayout_11.setSpacing(0) self.horizontalLayout_11.setObjectName(u"horizontalLayout_11") self.horizontalLayout_11.setContentsMargins(0, 0, 0, 0) self.frame_tab = QFrame(self.frame_low) self.frame_tab.setObjectName(u"frame_tab") font10 = QFont() font10.setFamily(u"Segoe UI") self.frame_tab.setFont(font10) self.frame_tab.setStyleSheet(u"background:rgb(51,51,51);") self.frame_tab.setFrameShape(QFrame.NoFrame) self.frame_tab.setFrameShadow(QFrame.Plain) self.horizontalLayout_12 = QHBoxLayout(self.frame_tab) self.horizontalLayout_12.setSpacing(0) self.horizontalLayout_12.setObjectName(u"horizontalLayout_12") self.horizontalLayout_12.setContentsMargins(0, 0, 0, 0) self.lab_tab = QLabel(self.frame_tab) self.lab_tab.setObjectName(u"lab_tab") font11 = QFont() font11.setFamily(u"Segoe UI Light") font11.setPointSize(10) self.lab_tab.setFont(font11) self.lab_tab.setStyleSheet(u"color:rgb(255,255,255);") self.horizontalLayout_12.addWidget(self.lab_tab) self.horizontalLayout_11.addWidget(self.frame_tab) self.frame_drag = QFrame(self.frame_low) self.frame_drag.setObjectName(u"frame_drag") self.frame_drag.setMinimumSize(QSize(20, 20)) self.frame_drag.setMaximumSize(QSize(20, 20)) self.frame_drag.setStyleSheet(u"background:rgb(51,51,51);") self.frame_drag.setFrameShape(QFrame.NoFrame) self.frame_drag.setFrameShadow(QFrame.Plain) self.horizontalLayout_13 = QHBoxLayout(self.frame_drag) self.horizontalLayout_13.setSpacing(0) self.horizontalLayout_13.setObjectName(u"horizontalLayout_13") self.horizontalLayout_13.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_11.addWidget(self.frame_drag) self.verticalLayout_2.addWidget(self.frame_low) self.horizontalLayout_2.addWidget(self.frame_bottom_east) self.verticalLayout.addWidget(self.frame_bottom) MainWindow.setCentralWidget(self.centralwidget) self.retranslateUi(MainWindow) self.stackedWidget.setCurrentIndex(7) QMetaObject.connectSlotsByName(MainWindow) # setupUi def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None)) self.toodle.setText("") self.lab_appname.setText( QCoreApplication.translate("MainWindow", u"<html><head/><body><p><br/></p></body></html>", None)) self.bn_min.setToolTip(QCoreApplication.translate("MainWindow", u"Minimize", None)) self.bn_min.setText("") self.bn_max.setToolTip(QCoreApplication.translate("MainWindow", u"Maximize", None)) self.bn_max.setText("") self.bn_close.setToolTip(QCoreApplication.translate("MainWindow", u"Close", None)) self.bn_close.setText("") self.bn_home.setToolTip(QCoreApplication.translate("MainWindow", u"Home", None)) self.bn_home.setText("") self.lab_about_home.setText(QCoreApplication.translate("MainWindow", u"How to use", None)) self.bn_home_image.setText(QCoreApplication.translate("MainWindow", u"Upload Image", None)) self.bn_home_rec.setText(QCoreApplication.translate("MainWindow", u"Recognition", None)) self.lab_tab.setText( QCoreApplication.translate("MainWindow", u"<html><head/><body><p><br/></p></body></html>", None)) self.frame_drag.setToolTip(QCoreApplication.translate("MainWindow", u"Drag", None))