-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathusernameWindow.py
More file actions
68 lines (55 loc) · 2.11 KB
/
usernameWindow.py
File metadata and controls
68 lines (55 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'usernameWindow.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(400, 300)
self.label = QtGui.QLabel(Form)
self.label.setGeometry(QtCore.QRect(150, 80, 101, 20))
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setObjectName(_fromUtf8("label"))
self.username = QtGui.QLineEdit(Form)
self.username.setGeometry(QtCore.QRect(120, 140, 161, 24))
self.username.setObjectName(_fromUtf8("username"))
self.ok = QtGui.QPushButton(Form)
self.ok.setGeometry(QtCore.QRect(294, 240, 61, 27))
self.ok.setObjectName(_fromUtf8("ok"))
self.cancel = QtGui.QPushButton(Form)
self.cancel.setGeometry(QtCore.QRect(40, 240, 61, 27))
self.cancel.setObjectName(_fromUtf8("cancel"))
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "ENTER YOUR NAME", None))
self.label.setText(_translate("Form", "Enter your name", None))
self.ok.setText(_translate("Form", "OK", None))
self.cancel.setText(_translate("Form", "CANCEL", None))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
Form = QtGui.QWidget()
ui = Ui_Form()
ui.setupUi(Form)
Form.show()
sys.exit(app.exec_())