171 lines
6.8 KiB
Python
171 lines
6.8 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
################################################################################
|
|
## Form generated from reading UI file 'reset.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(40, 27, 411, 211))
|
|
self.verticalLayout = QVBoxLayout(self.widget)
|
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
|
self.horizontalLayout_5 = QHBoxLayout()
|
|
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
|
|
self.label = QLabel(self.widget)
|
|
self.label.setObjectName(u"label")
|
|
self.label.setFont(font)
|
|
|
|
self.horizontalLayout_5.addWidget(self.label)
|
|
|
|
self.le_username = QLineEdit(self.widget)
|
|
self.le_username.setObjectName(u"le_username")
|
|
self.le_username.setFont(font)
|
|
|
|
self.horizontalLayout_5.addWidget(self.le_username)
|
|
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout_5)
|
|
|
|
self.horizontalLayout_4 = QHBoxLayout()
|
|
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
|
|
self.label_2 = QLabel(self.widget)
|
|
self.label_2.setObjectName(u"label_2")
|
|
self.label_2.setFont(font)
|
|
|
|
self.horizontalLayout_4.addWidget(self.label_2)
|
|
|
|
self.le_old_password = QLineEdit(self.widget)
|
|
self.le_old_password.setObjectName(u"le_old_password")
|
|
self.le_old_password.setFont(font)
|
|
self.le_old_password.setEchoMode(QLineEdit.EchoMode.Password)
|
|
|
|
self.horizontalLayout_4.addWidget(self.le_old_password)
|
|
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout_4)
|
|
|
|
self.horizontalLayout_3 = QHBoxLayout()
|
|
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
|
|
self.label_3 = QLabel(self.widget)
|
|
self.label_3.setObjectName(u"label_3")
|
|
self.label_3.setFont(font)
|
|
|
|
self.horizontalLayout_3.addWidget(self.label_3)
|
|
|
|
self.le_new_password_1 = QLineEdit(self.widget)
|
|
self.le_new_password_1.setObjectName(u"le_new_password_1")
|
|
self.le_new_password_1.setFont(font)
|
|
self.le_new_password_1.setEchoMode(QLineEdit.EchoMode.Password)
|
|
|
|
self.horizontalLayout_3.addWidget(self.le_new_password_1)
|
|
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout_3)
|
|
|
|
self.horizontalLayout_2 = QHBoxLayout()
|
|
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
|
|
self.label_4 = QLabel(self.widget)
|
|
self.label_4.setObjectName(u"label_4")
|
|
self.label_4.setFont(font)
|
|
|
|
self.horizontalLayout_2.addWidget(self.label_4)
|
|
|
|
self.le_new_password_2 = QLineEdit(self.widget)
|
|
self.le_new_password_2.setObjectName(u"le_new_password_2")
|
|
self.le_new_password_2.setFont(font)
|
|
self.le_new_password_2.setEchoMode(QLineEdit.EchoMode.Password)
|
|
|
|
self.horizontalLayout_2.addWidget(self.le_new_password_2)
|
|
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
|
|
|
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.setObjectName(u"horizontalLayout")
|
|
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.btn_cancel = QPushButton(self.widget)
|
|
self.btn_cancel.setObjectName(u"btn_cancel")
|
|
self.btn_cancel.setFont(font)
|
|
|
|
self.horizontalLayout.addWidget(self.btn_cancel)
|
|
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
|
|
|
QWidget.setTabOrder(self.le_username, self.le_old_password)
|
|
QWidget.setTabOrder(self.le_old_password, self.le_new_password_1)
|
|
QWidget.setTabOrder(self.le_new_password_1, self.le_new_password_2)
|
|
|
|
self.retranslateUi(Form)
|
|
self.btn_reset.clicked.connect(Form.reset_password)
|
|
self.btn_cancel.clicked.connect(Form.reset_cancel)
|
|
|
|
QMetaObject.connectSlotsByName(Form)
|
|
# setupUi
|
|
|
|
def retranslateUi(self, Form):
|
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"\u91cd\u7f6e\u5bc6\u7801", None))
|
|
self.label.setText(QCoreApplication.translate("Form", u"\u7528\u6237\u540d", None))
|
|
self.label_2.setText(QCoreApplication.translate("Form", u"\u65e7\u5bc6\u7801", None))
|
|
self.label_3.setText(QCoreApplication.translate("Form", u"\u65b0\u5bc6\u7801", None))
|
|
self.label_4.setText(QCoreApplication.translate("Form", u"\u786e \u8ba4", None))
|
|
self.label_hint.setText("")
|
|
self.btn_reset.setText(QCoreApplication.translate("Form", u"\u786e\u5b9a", None))
|
|
self.btn_cancel.setText(QCoreApplication.translate("Form", u"\u53d6\u6d88", None))
|
|
# retranslateUi
|
|
|