# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'login.ui' ## ## Created by: Qt User Interface Compiler version 6.8.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, QMetaObject, QObject, QPoint, QRect, QSize, QTime, QUrl, Qt) from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QFont, QFontDatabase, QGradient, QIcon, QImage, QKeySequence, QLinearGradient, QPainter, QPalette, QPixmap, QRadialGradient, QTransform) from PySide6.QtWidgets import (QApplication, QHBoxLayout, QLabel, QLineEdit, QPushButton, QSizePolicy, QVBoxLayout, QWidget) class Ui_Form(QWidget): def setupUi(self, Form): if not Form.objectName(): Form.setObjectName(u"Form") Form.setWindowModality(Qt.WindowModality.WindowModal) Form.resize(500, 270) sizePolicy = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth()) Form.setSizePolicy(sizePolicy) Form.setMinimumSize(QSize(500, 270)) Form.setMaximumSize(QSize(500, 270)) font = QFont() font.setFamilies([u"Consolas"]) font.setPointSize(14) Form.setFont(font) icon = QIcon() icon.addFile(u"../assets/media/icon.ico", QSize(), QIcon.Mode.Normal, QIcon.State.Off) Form.setWindowIcon(icon) self.widget = QWidget(Form) self.widget.setObjectName(u"widget") self.widget.setGeometry(QRect(41, 41, 411, 211)) self.verticalLayout = QVBoxLayout(self.widget) self.verticalLayout.setSpacing(2) self.verticalLayout.setObjectName(u"verticalLayout") self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_2 = QHBoxLayout() self.horizontalLayout_2.setSpacing(2) self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.label = QLabel(self.widget) self.label.setObjectName(u"label") self.label.setFont(font) self.horizontalLayout_2.addWidget(self.label) self.le_username = QLineEdit(self.widget) self.le_username.setObjectName(u"le_username") self.le_username.setFont(font) self.horizontalLayout_2.addWidget(self.le_username) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QHBoxLayout() self.horizontalLayout_3.setSpacing(2) self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") self.label_2 = QLabel(self.widget) self.label_2.setObjectName(u"label_2") self.label_2.setFont(font) self.horizontalLayout_3.addWidget(self.label_2) self.le_password = QLineEdit(self.widget) self.le_password.setObjectName(u"le_password") self.le_password.setFont(font) self.le_password.setEchoMode(QLineEdit.EchoMode.Password) self.horizontalLayout_3.addWidget(self.le_password) self.verticalLayout.addLayout(self.horizontalLayout_3) self.label_hint = QLabel(self.widget) self.label_hint.setObjectName(u"label_hint") sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed) sizePolicy1.setHorizontalStretch(0) sizePolicy1.setVerticalStretch(0) sizePolicy1.setHeightForWidth(self.label_hint.sizePolicy().hasHeightForWidth()) self.label_hint.setSizePolicy(sizePolicy1) font1 = QFont() font1.setFamilies([u"Consolas"]) font1.setPointSize(12) self.label_hint.setFont(font1) self.verticalLayout.addWidget(self.label_hint) self.horizontalLayout = QHBoxLayout() self.horizontalLayout.setSpacing(2) self.horizontalLayout.setObjectName(u"horizontalLayout") self.btn_login = QPushButton(self.widget) self.btn_login.setObjectName(u"btn_login") self.btn_login.setFont(font) self.horizontalLayout.addWidget(self.btn_login) self.btn_reset = QPushButton(self.widget) self.btn_reset.setObjectName(u"btn_reset") self.btn_reset.setFont(font) self.horizontalLayout.addWidget(self.btn_reset) self.verticalLayout.addLayout(self.horizontalLayout) self.retranslateUi(Form) self.btn_login.clicked.connect(Form.user_login) self.le_password.returnPressed.connect(Form.user_login) self.le_username.returnPressed.connect(Form.user_login) self.btn_reset.clicked.connect(Form.reset_password) QMetaObject.connectSlotsByName(Form) # setupUi def retranslateUi(self, Form): Form.setWindowTitle(QCoreApplication.translate("Form", u"\u767b\u5f55", None)) self.label.setText(QCoreApplication.translate("Form", u"\u7528\u6237\u540d", None)) self.label_2.setText(QCoreApplication.translate("Form", u"\u5bc6 \u7801", None)) self.label_hint.setText("") self.btn_login.setText(QCoreApplication.translate("Form", u"\u767b\u5f55", None)) self.btn_reset.setText(QCoreApplication.translate("Form", u"\u91cd\u7f6e", None)) # retranslateUi