15
15
QFont , QFontDatabase , QGradient , QIcon ,
16
16
QImage , QKeySequence , QLinearGradient , QPainter ,
17
17
QPalette , QPixmap , QRadialGradient , QTransform )
18
- from PySide6 .QtWidgets import (QApplication , QButtonGroup , QGridLayout , QHBoxLayout ,
19
- QLabel , QLineEdit , QRadioButton , QSizePolicy ,
20
- QWidget )
18
+ from PySide6 .QtWidgets import (QApplication , QButtonGroup , QCommandLinkButton , QGridLayout ,
19
+ QHBoxLayout , QLabel , QLineEdit , QRadioButton ,
20
+ QSizePolicy , QWidget )
21
21
22
22
class Ui_RegisterWidget (object ):
23
23
def setupUi (self , RegisterWidget ):
24
24
if not RegisterWidget .objectName ():
25
25
RegisterWidget .setObjectName (u"RegisterWidget" )
26
- RegisterWidget .resize (393 , 216 )
26
+ RegisterWidget .resize (444 , 376 )
27
27
self .gridLayout_2 = QGridLayout (RegisterWidget )
28
28
self .gridLayout_2 .setObjectName (u"gridLayout_2" )
29
29
self .gridLayout = QGridLayout ()
30
30
self .gridLayout .setObjectName (u"gridLayout" )
31
- self .horizontalLayout_3 = QHBoxLayout ()
32
- self .horizontalLayout_3 .setObjectName (u"horizontalLayout_3" )
33
- self .user = QLabel (RegisterWidget )
34
- self .user .setObjectName (u"user" )
35
- self .user .setMinimumSize (QSize (80 , 0 ))
36
- self .user .setMaximumSize (QSize (60 , 16777215 ))
37
- self .user .setLayoutDirection (Qt .LeftToRight )
38
- self .user .setAlignment (Qt .AlignLeading | Qt .AlignLeft | Qt .AlignVCenter )
39
-
40
- self .horizontalLayout_3 .addWidget (self .user )
41
-
42
- self .userEdit = QLineEdit (RegisterWidget )
43
- self .userEdit .setObjectName (u"userEdit" )
44
- self .userEdit .setMinimumSize (QSize (200 , 0 ))
31
+ self .horizontalLayout_2 = QHBoxLayout ()
32
+ self .horizontalLayout_2 .setObjectName (u"horizontalLayout_2" )
33
+ self .verLabel = QLabel (RegisterWidget )
34
+ self .verLabel .setObjectName (u"verLabel" )
35
+ self .verLabel .setMinimumSize (QSize (80 , 0 ))
45
36
46
- self .horizontalLayout_3 .addWidget (self .userEdit )
37
+ self .horizontalLayout_2 .addWidget (self .verLabel )
47
38
39
+ self .verEdit = QLineEdit (RegisterWidget )
40
+ self .verEdit .setObjectName (u"verEdit" )
48
41
49
- self .gridLayout . addLayout (self .horizontalLayout_3 , 10 , 1 , 1 , 1 )
42
+ self .horizontalLayout_2 . addWidget (self .verEdit )
50
43
51
- self .horizontalLayout = QHBoxLayout ()
52
- self .horizontalLayout .setObjectName (u"horizontalLayout" )
53
- self .name = QLabel (RegisterWidget )
54
- self .name .setObjectName (u"name" )
55
- self .name .setMinimumSize (QSize (80 , 0 ))
56
- self .name .setMaximumSize (QSize (60 , 16777215 ))
57
- self .name .setAlignment (Qt .AlignLeading | Qt .AlignLeft | Qt .AlignVCenter )
58
44
59
- self .horizontalLayout . addWidget (self .name )
45
+ self .gridLayout . addLayout (self .horizontalLayout_2 , 16 , 1 , 1 , 1 )
60
46
61
- self .nameEdit = QLineEdit (RegisterWidget )
62
- self .nameEdit .setObjectName (u"nameEdit" )
47
+ self .horizontalLayout_19 = QHBoxLayout ()
48
+ self .horizontalLayout_19 .setObjectName (u"horizontalLayout_19" )
49
+ self .passwd = QLabel (RegisterWidget )
50
+ self .passwd .setObjectName (u"passwd" )
51
+ self .passwd .setMinimumSize (QSize (80 , 0 ))
52
+ self .passwd .setMaximumSize (QSize (60 , 16777215 ))
53
+ self .passwd .setAlignment (Qt .AlignLeading | Qt .AlignLeft | Qt .AlignVCenter )
63
54
64
- self .horizontalLayout .addWidget (self .nameEdit )
55
+ self .horizontalLayout_19 .addWidget (self .passwd )
65
56
57
+ self .passwdEdit = QLineEdit (RegisterWidget )
58
+ self .passwdEdit .setObjectName (u"passwdEdit" )
66
59
67
- self .gridLayout . addLayout (self .horizontalLayout , 11 , 1 , 1 , 1 )
60
+ self .horizontalLayout_19 . addWidget (self .passwdEdit )
68
61
69
- self .verPicture = QLabel (RegisterWidget )
70
- self .verPicture .setObjectName (u"verPicture" )
71
- self .verPicture .setMinimumSize (QSize (0 , 0 ))
72
- self .verPicture .setMaximumSize (QSize (16777215 , 100 ))
73
62
74
- self .gridLayout .addWidget (self .verPicture , 13 , 1 , 1 , 1 , Qt . AlignHCenter )
63
+ self .gridLayout .addLayout (self .horizontalLayout_19 , 14 , 1 , 1 , 1 )
75
64
76
65
self .horizontalLayout_10 = QHBoxLayout ()
77
66
self .horizontalLayout_10 .setObjectName (u"horizontalLayout_10" )
@@ -91,41 +80,67 @@ def setupUi(self, RegisterWidget):
91
80
self .horizontalLayout_10 .addWidget (self .gender_Female )
92
81
93
82
94
- self .gridLayout .addLayout (self .horizontalLayout_10 , 15 , 1 , 1 , 1 )
83
+ self .gridLayout .addLayout (self .horizontalLayout_10 , 17 , 1 , 1 , 1 )
95
84
96
- self .horizontalLayout_19 = QHBoxLayout ()
97
- self .horizontalLayout_19 .setObjectName (u"horizontalLayout_19" )
98
- self .passwd = QLabel (RegisterWidget )
99
- self .passwd .setObjectName (u"passwd" )
100
- self .passwd .setMinimumSize (QSize (80 , 0 ))
101
- self .passwd .setMaximumSize (QSize (60 , 16777215 ))
102
- self .passwd .setAlignment (Qt .AlignLeading | Qt .AlignLeft | Qt .AlignVCenter )
85
+ self .label = QLabel (RegisterWidget )
86
+ self .label .setObjectName (u"label" )
103
87
104
- self .horizontalLayout_19 .addWidget (self .passwd )
88
+ self .gridLayout .addWidget (self .label , 0 , 1 , 1 , 1 )
105
89
106
- self .passwdEdit = QLineEdit (RegisterWidget )
107
- self .passwdEdit .setObjectName (u"passwdEdit " )
90
+ self .commandLinkButton = QCommandLinkButton (RegisterWidget )
91
+ self .commandLinkButton .setObjectName (u"commandLinkButton " )
108
92
109
- self .horizontalLayout_19 .addWidget (self .passwdEdit )
93
+ self .gridLayout .addWidget (self .commandLinkButton , 1 , 1 , 1 , 1 )
110
94
95
+ self .horizontalLayout_3 = QHBoxLayout ()
96
+ self .horizontalLayout_3 .setObjectName (u"horizontalLayout_3" )
97
+ self .user = QLabel (RegisterWidget )
98
+ self .user .setObjectName (u"user" )
99
+ self .user .setMinimumSize (QSize (80 , 0 ))
100
+ self .user .setMaximumSize (QSize (60 , 16777215 ))
101
+ self .user .setLayoutDirection (Qt .LeftToRight )
102
+ self .user .setAlignment (Qt .AlignLeading | Qt .AlignLeft | Qt .AlignVCenter )
111
103
112
- self .gridLayout . addLayout (self .horizontalLayout_19 , 12 , 1 , 1 , 1 )
104
+ self .horizontalLayout_3 . addWidget (self .user )
113
105
114
- self .horizontalLayout_2 = QHBoxLayout ()
115
- self .horizontalLayout_2 .setObjectName (u"horizontalLayout_2" )
116
- self .verLabel = QLabel (RegisterWidget )
117
- self .verLabel .setObjectName (u"verLabel" )
118
- self .verLabel .setMinimumSize (QSize (80 , 0 ))
106
+ self .userEdit = QLineEdit (RegisterWidget )
107
+ self .userEdit .setObjectName (u"userEdit" )
108
+ self .userEdit .setMinimumSize (QSize (200 , 0 ))
119
109
120
- self .horizontalLayout_2 .addWidget (self .verLabel )
110
+ self .horizontalLayout_3 .addWidget (self .userEdit )
121
111
122
- self .verEdit = QLineEdit (RegisterWidget )
123
- self .verEdit .setObjectName (u"verEdit" )
124
112
125
- self .horizontalLayout_2 .addWidget (self .verEdit )
113
+ self .gridLayout .addLayout (self .horizontalLayout_3 , 12 , 1 , 1 , 1 )
114
+
115
+ self .verPicture = QLabel (RegisterWidget )
116
+ self .verPicture .setObjectName (u"verPicture" )
117
+ self .verPicture .setMinimumSize (QSize (0 , 0 ))
118
+ self .verPicture .setMaximumSize (QSize (16777215 , 100 ))
126
119
120
+ self .gridLayout .addWidget (self .verPicture , 15 , 1 , 1 , 1 , Qt .AlignHCenter )
127
121
128
- self .gridLayout .addLayout (self .horizontalLayout_2 , 14 , 1 , 1 , 1 )
122
+ self .horizontalLayout = QHBoxLayout ()
123
+ self .horizontalLayout .setObjectName (u"horizontalLayout" )
124
+ self .name = QLabel (RegisterWidget )
125
+ self .name .setObjectName (u"name" )
126
+ self .name .setMinimumSize (QSize (80 , 0 ))
127
+ self .name .setMaximumSize (QSize (60 , 16777215 ))
128
+ self .name .setAlignment (Qt .AlignLeading | Qt .AlignLeft | Qt .AlignVCenter )
129
+
130
+ self .horizontalLayout .addWidget (self .name )
131
+
132
+ self .nameEdit = QLineEdit (RegisterWidget )
133
+ self .nameEdit .setObjectName (u"nameEdit" )
134
+
135
+ self .horizontalLayout .addWidget (self .nameEdit )
136
+
137
+
138
+ self .gridLayout .addLayout (self .horizontalLayout , 13 , 1 , 1 , 1 )
139
+
140
+ self .commandLinkButton_2 = QCommandLinkButton (RegisterWidget )
141
+ self .commandLinkButton_2 .setObjectName (u"commandLinkButton_2" )
142
+
143
+ self .gridLayout .addWidget (self .commandLinkButton_2 , 2 , 1 , 1 , 1 )
129
144
130
145
131
146
self .gridLayout_2 .addLayout (self .gridLayout , 0 , 0 , 1 , 1 )
@@ -142,12 +157,15 @@ def setupUi(self, RegisterWidget):
142
157
143
158
def retranslateUi (self , RegisterWidget ):
144
159
RegisterWidget .setWindowTitle (QCoreApplication .translate ("RegisterWidget" , u"\u65b0 \u7528 \u6237 \u6ce8 \u518c " , None ))
145
- self .user .setText (QCoreApplication .translate ("RegisterWidget" , u"\u90ae \u7bb1 \uff1a " , None ))
146
- self .name .setText (QCoreApplication .translate ("RegisterWidget" , u"\u7528 \u6237 \u540d \uff1a " , None ))
147
- self .verPicture .setText (QCoreApplication .translate ("RegisterWidget" , u"\u9a8c \u8bc1 \u7801 \u3002 \u3002 \u3002 " , None ))
160
+ self .verLabel .setText (QCoreApplication .translate ("RegisterWidget" , u"\u9a8c \u8bc1 \u7801 " , None ))
161
+ self .passwd .setText (QCoreApplication .translate ("RegisterWidget" , u"\u5bc6 \u7801 \uff1a " , None ))
148
162
self .gender_Male .setText (QCoreApplication .translate ("RegisterWidget" , u"\u7537 " , None ))
149
163
self .gender_Female .setText (QCoreApplication .translate ("RegisterWidget" , u"\u5973 " , None ))
150
- self .passwd .setText (QCoreApplication .translate ("RegisterWidget" , u"\u5bc6 \u7801 \uff1a " , None ))
151
- self .verLabel .setText (QCoreApplication .translate ("RegisterWidget" , u"\u9a8c \u8bc1 \u7801 " , None ))
164
+ self .label .setText (QCoreApplication .translate ("RegisterWidget" , u"\u8bf7 \u81ea \u884c \u7f51 \u9875 \u6ce8 \u518c " , None ))
165
+ self .commandLinkButton .setText (QCoreApplication .translate ("RegisterWidget" , u"https://18comic.vip/signup" , None ))
166
+ self .user .setText (QCoreApplication .translate ("RegisterWidget" , u"\u90ae \u7bb1 \uff1a " , None ))
167
+ self .verPicture .setText (QCoreApplication .translate ("RegisterWidget" , u"\u9a8c \u8bc1 \u7801 \u3002 \u3002 \u3002 " , None ))
168
+ self .name .setText (QCoreApplication .translate ("RegisterWidget" , u"\u7528 \u6237 \u540d \uff1a " , None ))
169
+ self .commandLinkButton_2 .setText (QCoreApplication .translate ("RegisterWidget" , u"https://18comic.org/signup" , None ))
152
170
# retranslateUi
153
171
0 commit comments