2
2
3
3
# Form implementation generated from reading ui file 'G:\Workspace\PyQtClient\UiFiles\LoginDialog.ui'
4
4
#
5
- # Created by: PyQt5 UI code generator 5.10.1
5
+ # Created by: PyQt5 UI code generator 5.15.2
6
6
#
7
- # WARNING! All changes made in this file will be lost!
7
+ # WARNING: Any manual changes made to this file will be lost when pyuic5 is
8
+ # run again. Do not edit this file unless you know what you are doing.
9
+
8
10
9
11
from PyQt5 import QtCore , QtGui , QtWidgets
10
12
13
+
11
14
class Ui_FormLoginDialog (object ):
12
15
def setupUi (self , FormLoginDialog ):
13
16
FormLoginDialog .setObjectName ("FormLoginDialog" )
@@ -28,7 +31,7 @@ def setupUi(self, FormLoginDialog):
28
31
self .gridLayout .addItem (spacerItem , 2 , 2 , 1 , 1 )
29
32
spacerItem1 = QtWidgets .QSpacerItem (20 , 20 , QtWidgets .QSizePolicy .Minimum , QtWidgets .QSizePolicy .Fixed )
30
33
self .gridLayout .addItem (spacerItem1 , 1 , 1 , 1 , 1 )
31
- spacerItem2 = QtWidgets .QSpacerItem (20 , 40 , QtWidgets .QSizePolicy .Minimum , QtWidgets .QSizePolicy .Fixed )
34
+ spacerItem2 = QtWidgets .QSpacerItem (20 , 70 , QtWidgets .QSizePolicy .Minimum , QtWidgets .QSizePolicy .Fixed )
32
35
self .gridLayout .addItem (spacerItem2 , 3 , 1 , 1 , 1 )
33
36
spacerItem3 = QtWidgets .QSpacerItem (40 , 20 , QtWidgets .QSizePolicy .Expanding , QtWidgets .QSizePolicy .Minimum )
34
37
self .gridLayout .addItem (spacerItem3 , 2 , 0 , 1 , 1 )
@@ -41,16 +44,10 @@ def setupUi(self, FormLoginDialog):
41
44
self .lineEditAccount = QtWidgets .QLineEdit (self .widgetLoginEdit )
42
45
self .lineEditAccount .setMinimumSize (QtCore .QSize (0 , 30 ))
43
46
self .lineEditAccount .setMaximumSize (QtCore .QSize (16777215 , 30 ))
47
+ self .lineEditAccount .setFocusPolicy (QtCore .Qt .ClickFocus )
44
48
self .lineEditAccount .setAlignment (QtCore .Qt .AlignCenter )
45
49
self .lineEditAccount .setObjectName ("lineEditAccount" )
46
50
self .verticalLayout_2 .addWidget (self .lineEditAccount )
47
- self .lineEditPassword = QtWidgets .QLineEdit (self .widgetLoginEdit )
48
- self .lineEditPassword .setMinimumSize (QtCore .QSize (0 , 30 ))
49
- self .lineEditPassword .setMaximumSize (QtCore .QSize (16777215 , 30 ))
50
- self .lineEditPassword .setEchoMode (QtWidgets .QLineEdit .Password )
51
- self .lineEditPassword .setAlignment (QtCore .Qt .AlignCenter )
52
- self .lineEditPassword .setObjectName ("lineEditPassword" )
53
- self .verticalLayout_2 .addWidget (self .lineEditPassword )
54
51
self .labelNotice = QtWidgets .QLabel (self .widgetLoginEdit )
55
52
self .labelNotice .setMinimumSize (QtCore .QSize (0 , 20 ))
56
53
self .labelNotice .setText ("" )
@@ -104,22 +101,20 @@ def setupUi(self, FormLoginDialog):
104
101
self .verticalLayout .addItem (spacerItem6 )
105
102
106
103
self .retranslateUi (FormLoginDialog )
107
- self .lineEditPassword .returnPressed .connect (self .buttonLogin .click )
108
104
self .buttonClose .clicked .connect (FormLoginDialog .reject )
109
105
QtCore .QMetaObject .connectSlotsByName (FormLoginDialog )
110
106
111
107
def retranslateUi (self , FormLoginDialog ):
112
108
_translate = QtCore .QCoreApplication .translate
113
109
FormLoginDialog .setWindowTitle (_translate ("FormLoginDialog" , "Login" ))
114
- self .lineEditAccount .setPlaceholderText (_translate ("FormLoginDialog" , "Github Account" ))
115
- self .lineEditPassword .setPlaceholderText (_translate ("FormLoginDialog" , "Github Password" ))
110
+ self .lineEditAccount .setPlaceholderText (_translate ("FormLoginDialog" , "Github Username" ))
116
111
self .buttonLogin .setText (_translate ("FormLoginDialog" , "Login" ))
117
112
self .labelRegister .setText (_translate ("FormLoginDialog" , "<html><head/><body><p><a href=\" https://github.com/join?source=login\" ><span style=\" text-decoration: none; color:#ffffff;\" >Register</span></a></p></body></html>" ))
118
113
self .labelForgot .setText (_translate ("FormLoginDialog" , "<html><head/><body><p><a href=\" https://github.com/password_reset\" ><span style=\" text-decoration: none; color:#e6e6e6;\" >Forgot?</span></a></p></body></html>" ))
119
-
120
114
from Widgets .Buttons .ProgressButton import ProgressButton
121
115
from Widgets .Buttons .RotateButton import RotateButton
122
116
117
+
123
118
if __name__ == "__main__" :
124
119
import sys
125
120
app = QtWidgets .QApplication (sys .argv )
@@ -128,4 +123,3 @@ def retranslateUi(self, FormLoginDialog):
128
123
ui .setupUi (FormLoginDialog )
129
124
FormLoginDialog .show ()
130
125
sys .exit (app .exec_ ())
131
-
0 commit comments