-
Notifications
You must be signed in to change notification settings - Fork 5
/
resultWindow.py
92 lines (80 loc) · 3.72 KB
/
resultWindow.py
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'resultWindow.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_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.resize(800, 600)
Dialog.setStyleSheet(_fromUtf8("background-color: rgb(85, 170, 127);\n"
""))
self.buttonBox = QtGui.QDialogButtonBox(Dialog)
self.buttonBox.setGeometry(QtCore.QRect(400, 390, 341, 32))
self.buttonBox.setStyleSheet(_fromUtf8("color: rgb(0, 0, 49);"))
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.yourScore = QtGui.QLabel(Dialog)
self.yourScore.setGeometry(QtCore.QRect(340, 160, 171, 20))
font = QtGui.QFont()
font.setPointSize(20)
font.setBold(True)
font.setWeight(75)
self.yourScore.setFont(font)
self.yourScore.setStyleSheet(_fromUtf8("\n"
"color: rgb(0, 0, 49);"))
self.yourScore.setObjectName(_fromUtf8("yourScore"))
self.time = QtGui.QLabel(Dialog)
self.time.setGeometry(QtCore.QRect(400, 220, 91, 21))
self.time.setStyleSheet(_fromUtf8("color: rgb(0, 0, 49);"))
self.time.setObjectName(_fromUtf8("time"))
self.wpm = QtGui.QLabel(Dialog)
self.wpm.setGeometry(QtCore.QRect(600, 220, 161, 20))
self.wpm.setStyleSheet(_fromUtf8("color: rgb(0, 0, 49);"))
self.wpm.setObjectName(_fromUtf8("wpm"))
self.accuracy = QtGui.QLabel(Dialog)
self.accuracy.setGeometry(QtCore.QRect(100, 220, 111, 20))
self.accuracy.setStyleSheet(_fromUtf8("color: rgb(0, 0, 49);"))
self.accuracy.setObjectName(_fromUtf8("accuracy"))
self.userWPM = QtGui.QTextEdit(Dialog)
self.userWPM.setGeometry(QtCore.QRect(620, 260, 104, 31))
self.userWPM.setObjectName(_fromUtf8("userWPM"))
self.typeTime = QtGui.QTextEdit(Dialog)
self.typeTime.setGeometry(QtCore.QRect(400, 260, 104, 31))
self.typeTime.setObjectName(_fromUtf8("typeTime"))
self.userAccuracy = QtGui.QTextEdit(Dialog)
self.userAccuracy.setGeometry(QtCore.QRect(120, 260, 104, 31))
self.userAccuracy.setObjectName(_fromUtf8("userAccuracy"))
self.retranslateUi(Dialog)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(_translate("Dialog", "Dialog", None))
self.yourScore.setText(_translate("Dialog", "YOUR SCORE", None))
self.time.setText(_translate("Dialog", "Time taken", None))
self.wpm.setText(_translate("Dialog", "word per minute speed", None))
self.accuracy.setText(_translate("Dialog", " Accuracy", None))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
Dialog = QtGui.QDialog()
ui = Ui_Dialog()
ui.setupUi(Dialog)
Dialog.show()
sys.exit(app.exec_())