loginWindow.py 14 KB
Newer Older
曹高翔's avatar
Gui    
曹高翔 committed
1
2
3
4
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'loginWindow.ui'
#
Zheng Yile's avatar
Zheng Yile committed
5
# Created by: PyQt5 UI code generator 5.15.2
曹高翔's avatar
Gui    
曹高翔 committed
6
7
8
9
10
11
12
13
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


14
15
16
17
18
class Ui_windowLogin(object):
    def setupUi(self, windowLogin):
        windowLogin.setObjectName("windowLogin")
        windowLogin.resize(540, 320)
        windowLogin.setMinimumSize(QtCore.QSize(0, 0))
Zheng Yile's avatar
Zheng Yile committed
19
20
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("favicon.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
21
22
23
        windowLogin.setWindowIcon(icon)
        windowLogin.setWindowOpacity(1.0)
        self.centralwidget = QtWidgets.QWidget(windowLogin)
曹高翔's avatar
Gui    
曹高翔 committed
24
        self.centralwidget.setObjectName("centralwidget")
25
26
27
28
29
        self.frameLogin = QtWidgets.QFrame(self.centralwidget)
        self.frameLogin.setGeometry(QtCore.QRect(0, 0, 540, 294))
        self.frameLogin.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frameLogin.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frameLogin.setObjectName("frameLogin")
Zheng Yile's avatar
Zheng Yile committed
30
        self.pushButtonLoginGoReset = NewPushButton(self.frameLogin)
31
        self.pushButtonLoginGoReset.setGeometry(QtCore.QRect(315, 190, 120, 32))
32
        self.pushButtonLoginGoReset.setObjectName("pushButtonLoginGoReset")
33
34
        self.checkBox = QtWidgets.QCheckBox(self.frameLogin)
        self.checkBox.setGeometry(QtCore.QRect(360, 150, 100, 30))
35
        self.checkBox.setObjectName("checkBox")
36
37
        self.label = QtWidgets.QLabel(self.frameLogin)
        self.label.setGeometry(QtCore.QRect(50, 70, 160, 30))
38
39
40
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setIndent(10)
        self.label.setObjectName("label")
41
42
        self.lineEditLoginUsername = QtWidgets.QLineEdit(self.frameLogin)
        self.lineEditLoginUsername.setGeometry(QtCore.QRect(220, 70, 240, 30))
Zheng Yile's avatar
Zheng Yile committed
43
44
        font = QtGui.QFont()
        font.setFamily("Consolas")
45
46
        self.lineEditLoginUsername.setFont(font)
        self.lineEditLoginUsername.setObjectName("lineEditLoginUsername")
47
48
        self.label_2 = QtWidgets.QLabel(self.frameLogin)
        self.label_2.setGeometry(QtCore.QRect(50, 110, 160, 30))
49
50
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setIndent(10)
曹高翔's avatar
Gui    
曹高翔 committed
51
        self.label_2.setObjectName("label_2")
52
53
        self.lineEditLoginPassword = QtWidgets.QLineEdit(self.frameLogin)
        self.lineEditLoginPassword.setGeometry(QtCore.QRect(220, 110, 240, 30))
Zheng Yile's avatar
Zheng Yile committed
54
55
        font = QtGui.QFont()
        font.setFamily("Consolas")
56
57
        self.lineEditLoginPassword.setFont(font)
        self.lineEditLoginPassword.setObjectName("lineEditLoginPassword")
Zheng Yile's avatar
Zheng Yile committed
58
        self.pushButtonLoginGoRegister = NewPushButton(self.frameLogin)
59
        self.pushButtonLoginGoRegister.setGeometry(QtCore.QRect(105, 230, 330, 32))
60
        self.pushButtonLoginGoRegister.setObjectName("pushButtonLoginGoRegister")
Zheng Yile's avatar
Zheng Yile committed
61
        self.pushButtonLogin = NewPushButton(self.frameLogin)
62
        self.pushButtonLogin.setGeometry(QtCore.QRect(105, 190, 120, 32))
曹高翔's avatar
Gui    
曹高翔 committed
63
        self.pushButtonLogin.setObjectName("pushButtonLogin")
Zheng Yile's avatar
Zheng Yile committed
64
        self.progressBarLogin = NewProgressBar(self.frameLogin)
65
        self.progressBarLogin.setGeometry(QtCore.QRect(78, 240, 384, 12))
66
67
68
69
70
71
72
73
74
75
76
77
        self.progressBarLogin.setProperty("value", 0)
        self.progressBarLogin.setTextVisible(False)
        self.progressBarLogin.setObjectName("progressBarLogin")
        self.progressBarLogin.raise_()
        self.pushButtonLoginGoReset.raise_()
        self.checkBox.raise_()
        self.label.raise_()
        self.lineEditLoginUsername.raise_()
        self.label_2.raise_()
        self.lineEditLoginPassword.raise_()
        self.pushButtonLoginGoRegister.raise_()
        self.pushButtonLogin.raise_()
78
79
80
81
82
83
84
        self.frameRegister = QtWidgets.QFrame(self.centralwidget)
        self.frameRegister.setGeometry(QtCore.QRect(0, 0, 540, 294))
        self.frameRegister.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frameRegister.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frameRegister.setObjectName("frameRegister")
        self.lineEditRegisterPassword = QtWidgets.QLineEdit(self.frameRegister)
        self.lineEditRegisterPassword.setGeometry(QtCore.QRect(220, 110, 240, 30))
85
86
        font = QtGui.QFont()
        font.setFamily("Consolas")
87
88
        self.lineEditRegisterPassword.setFont(font)
        self.lineEditRegisterPassword.setObjectName("lineEditRegisterPassword")
Zheng Yile's avatar
Zheng Yile committed
89
        self.pushButtonRegister = NewPushButton(self.frameRegister)
90
        self.pushButtonRegister.setGeometry(QtCore.QRect(105, 190, 120, 32))
曹高翔's avatar
Gui    
曹高翔 committed
91
        self.pushButtonRegister.setObjectName("pushButtonRegister")
92
93
        self.lineEditRegisterCheckPassword = QtWidgets.QLineEdit(self.frameRegister)
        self.lineEditRegisterCheckPassword.setGeometry(QtCore.QRect(220, 150, 240, 30))
94
95
        font = QtGui.QFont()
        font.setFamily("Consolas")
96
97
        self.lineEditRegisterCheckPassword.setFont(font)
        self.lineEditRegisterCheckPassword.setObjectName("lineEditRegisterCheckPassword")
98
99
        self.label_3 = QtWidgets.QLabel(self.frameRegister)
        self.label_3.setGeometry(QtCore.QRect(50, 70, 160, 30))
100
101
102
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setIndent(10)
        self.label_3.setObjectName("label_3")
103
104
        self.label_4 = QtWidgets.QLabel(self.frameRegister)
        self.label_4.setGeometry(QtCore.QRect(50, 110, 160, 30))
105
106
107
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_4.setIndent(10)
        self.label_4.setObjectName("label_4")
108
109
        self.label_5 = QtWidgets.QLabel(self.frameRegister)
        self.label_5.setGeometry(QtCore.QRect(50, 30, 160, 30))
110
111
112
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setIndent(10)
        self.label_5.setObjectName("label_5")
113
114
        self.lineEditRegisterUserphone = QtWidgets.QLineEdit(self.frameRegister)
        self.lineEditRegisterUserphone.setGeometry(QtCore.QRect(220, 30, 240, 30))
115
116
        font = QtGui.QFont()
        font.setFamily("Consolas")
117
118
        self.lineEditRegisterUserphone.setFont(font)
        self.lineEditRegisterUserphone.setObjectName("lineEditRegisterUserphone")
119
120
        self.label_6 = QtWidgets.QLabel(self.frameRegister)
        self.label_6.setGeometry(QtCore.QRect(50, 150, 160, 30))
121
122
123
        self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_6.setIndent(10)
        self.label_6.setObjectName("label_6")
124
125
        self.lineEditRegisterUsername = QtWidgets.QLineEdit(self.frameRegister)
        self.lineEditRegisterUsername.setGeometry(QtCore.QRect(220, 70, 240, 30))
126
127
        font = QtGui.QFont()
        font.setFamily("Consolas")
128
129
        self.lineEditRegisterUsername.setFont(font)
        self.lineEditRegisterUsername.setObjectName("lineEditRegisterUsername")
Zheng Yile's avatar
Zheng Yile committed
130
        self.pushButtonRegisterReturn = NewPushButton(self.frameRegister)
131
        self.pushButtonRegisterReturn.setGeometry(QtCore.QRect(315, 190, 120, 32))
132
        self.pushButtonRegisterReturn.setObjectName("pushButtonRegisterReturn")
133
134
135
136
137
        self.frameReset = QtWidgets.QFrame(self.centralwidget)
        self.frameReset.setGeometry(QtCore.QRect(0, 0, 540, 294))
        self.frameReset.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frameReset.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frameReset.setObjectName("frameReset")
Zheng Yile's avatar
Zheng Yile committed
138
        self.pushButtonReset = NewPushButton(self.frameReset)
139
        self.pushButtonReset.setGeometry(QtCore.QRect(105, 190, 120, 32))
曹高翔's avatar
Gui    
曹高翔 committed
140
        self.pushButtonReset.setObjectName("pushButtonReset")
141
142
        self.label_7 = QtWidgets.QLabel(self.frameReset)
        self.label_7.setGeometry(QtCore.QRect(60, 30, 150, 30))
143
144
145
        self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_7.setIndent(10)
        self.label_7.setObjectName("label_7")
146
147
        self.label_8 = QtWidgets.QLabel(self.frameReset)
        self.label_8.setGeometry(QtCore.QRect(60, 150, 150, 30))
148
149
150
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_8.setIndent(10)
        self.label_8.setObjectName("label_8")
151
152
        self.lineEditResetCheckNewPassword = QtWidgets.QLineEdit(self.frameReset)
        self.lineEditResetCheckNewPassword.setGeometry(QtCore.QRect(220, 150, 240, 30))
153
154
        font = QtGui.QFont()
        font.setFamily("Consolas")
155
156
        self.lineEditResetCheckNewPassword.setFont(font)
        self.lineEditResetCheckNewPassword.setObjectName("lineEditResetCheckNewPassword")
157
158
        self.label_9 = QtWidgets.QLabel(self.frameReset)
        self.label_9.setGeometry(QtCore.QRect(60, 70, 150, 30))
159
160
161
        self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_9.setIndent(10)
        self.label_9.setObjectName("label_9")
162
        self.lineEditResetCheckNum = QtWidgets.QLineEdit(self.frameReset)
163
        self.lineEditResetCheckNum.setGeometry(QtCore.QRect(220, 70, 100, 30))
164
165
        font = QtGui.QFont()
        font.setFamily("Consolas")
166
        self.lineEditResetCheckNum.setFont(font)
167
168
        self.lineEditResetCheckNum.setMaxLength(6)
        self.lineEditResetCheckNum.setAlignment(QtCore.Qt.AlignCenter)
169
        self.lineEditResetCheckNum.setObjectName("lineEditResetCheckNum")
170
171
        self.lineEditResetAccount = QtWidgets.QLineEdit(self.frameReset)
        self.lineEditResetAccount.setGeometry(QtCore.QRect(220, 30, 240, 30))
172
173
        font = QtGui.QFont()
        font.setFamily("Consolas")
174
175
        self.lineEditResetAccount.setFont(font)
        self.lineEditResetAccount.setObjectName("lineEditResetAccount")
176
177
        self.label_10 = QtWidgets.QLabel(self.frameReset)
        self.label_10.setGeometry(QtCore.QRect(60, 110, 150, 30))
178
179
180
        self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_10.setIndent(10)
        self.label_10.setObjectName("label_10")
181
182
        self.lineEditResetNewPassword = QtWidgets.QLineEdit(self.frameReset)
        self.lineEditResetNewPassword.setGeometry(QtCore.QRect(220, 110, 240, 30))
183
184
        font = QtGui.QFont()
        font.setFamily("Consolas")
185
186
        self.lineEditResetNewPassword.setFont(font)
        self.lineEditResetNewPassword.setObjectName("lineEditResetNewPassword")
Zheng Yile's avatar
Zheng Yile committed
187
        self.pushButtonResetAcquire = NewPushButton(self.frameReset)
Zheng Yile's avatar
Zheng Yile committed
188
        self.pushButtonResetAcquire.setGeometry(QtCore.QRect(340, 70, 120, 32))
189
        self.pushButtonResetAcquire.setObjectName("pushButtonResetAcquire")
Zheng Yile's avatar
Zheng Yile committed
190
        self.pushButtonResetReturn = NewPushButton(self.frameReset)
191
        self.pushButtonResetReturn.setGeometry(QtCore.QRect(315, 190, 120, 32))
192
        self.pushButtonResetReturn.setObjectName("pushButtonResetReturn")
193
194
        self.frameReset.raise_()
        self.frameRegister.raise_()
195
        self.frameLogin.raise_()
196
197
198
        windowLogin.setCentralWidget(self.centralwidget)
        self.menuBar = QtWidgets.QMenuBar(windowLogin)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 540, 26))
曹高翔's avatar
Gui    
曹高翔 committed
199
200
        self.menuBar.setObjectName("menuBar")
        self.menu = QtWidgets.QMenu(self.menuBar)
201
        self.menu.setGeometry(QtCore.QRect(270, 156, 137, 78))
曹高翔's avatar
Gui    
曹高翔 committed
202
        self.menu.setObjectName("menu")
203
204
        windowLogin.setMenuBar(self.menuBar)
        self.actions = QtWidgets.QAction(windowLogin)
曹高翔's avatar
Gui    
曹高翔 committed
205
        self.actions.setObjectName("actions")
206
        self.action = QtWidgets.QAction(windowLogin)
曹高翔's avatar
Gui    
曹高翔 committed
207
        self.action.setObjectName("action")
208
        self.actionsd = QtWidgets.QAction(windowLogin)
曹高翔's avatar
Gui    
曹高翔 committed
209
        self.actionsd.setObjectName("actionsd")
210
        self.action_2 = QtWidgets.QAction(windowLogin)
曹高翔's avatar
Gui    
曹高翔 committed
211
212
213
214
        self.action_2.setObjectName("action_2")
        self.menu.addAction(self.action_2)
        self.menuBar.addAction(self.menu.menuAction())

215
216
        self.retranslateUi(windowLogin)
        QtCore.QMetaObject.connectSlotsByName(windowLogin)
曹高翔's avatar
Gui    
曹高翔 committed
217

218
    def retranslateUi(self, windowLogin):
曹高翔's avatar
Gui    
曹高翔 committed
219
        _translate = QtCore.QCoreApplication.translate
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
        windowLogin.setWindowTitle(_translate("windowLogin", "欢迎使用Codia——登录"))
        self.pushButtonLoginGoReset.setText(_translate("windowLogin", "忘记密码"))
        self.checkBox.setText(_translate("windowLogin", "记住密码"))
        self.label.setText(_translate("windowLogin", "用户名/邮箱/手机"))
        self.label_2.setText(_translate("windowLogin", "密码"))
        self.pushButtonLoginGoRegister.setText(_translate("windowLogin", "没有codia账号?点击这里注册"))
        self.pushButtonLogin.setText(_translate("windowLogin", "登陆"))
        self.pushButtonRegister.setText(_translate("windowLogin", "注册"))
        self.label_3.setText(_translate("windowLogin", "用户名"))
        self.label_4.setText(_translate("windowLogin", "设置密码"))
        self.label_5.setText(_translate("windowLogin", "绑定邮箱"))
        self.label_6.setText(_translate("windowLogin", "确认密码"))
        self.pushButtonRegisterReturn.setText(_translate("windowLogin", "返回"))
        self.pushButtonReset.setText(_translate("windowLogin", "重置密码"))
        self.label_7.setText(_translate("windowLogin", "绑定邮箱/手机"))
        self.label_8.setText(_translate("windowLogin", "确认新密码"))
        self.label_9.setText(_translate("windowLogin", "验证码"))
        self.label_10.setText(_translate("windowLogin", "新密码"))
        self.pushButtonResetAcquire.setText(_translate("windowLogin", "发送验证码"))
        self.pushButtonResetReturn.setText(_translate("windowLogin", "返回"))
        self.menu.setTitle(_translate("windowLogin", "帮助"))
        self.actions.setText(_translate("windowLogin", "s"))
        self.action.setText(_translate("windowLogin", "关于"))
        self.actionsd.setText(_translate("windowLogin", "登陆"))
        self.action_2.setText(_translate("windowLogin", "关于"))
Zheng Yile's avatar
Zheng Yile committed
245
from codiaclientgui.utils import NewProgressBar, NewPushButton