-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
148 lines (139 loc) · 8.19 KB
/
test.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(512, 377)
Dialog.setMouseTracking(True)
self.lineEdit = QtWidgets.QLineEdit(Dialog)
self.lineEdit.setGeometry(QtCore.QRect(20, 10, 461, 31))
self.lineEdit.setObjectName("lineEdit")
self.pushButton = QtWidgets.QPushButton(Dialog)
self.pushButton.setGeometry(QtCore.QRect(20, 50, 113, 32))
self.pushButton.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton.setObjectName("pushButton")
self.lineEdit_2 = QtWidgets.QLineEdit(Dialog)
self.lineEdit_2.setGeometry(QtCore.QRect(20, 210, 461, 41))
self.lineEdit_2.setObjectName("lineEdit_2")
self.pushButton_2 = QtWidgets.QPushButton(Dialog)
self.pushButton_2.setGeometry(QtCore.QRect(20, 80, 113, 32))
self.pushButton_2.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_2.setObjectName("pushButton_2")
self.pushButton_3 = QtWidgets.QPushButton(Dialog)
self.pushButton_3.setGeometry(QtCore.QRect(20, 110, 113, 32))
self.pushButton_3.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_3.setObjectName("pushButton_3")
self.pushButton_4 = QtWidgets.QPushButton(Dialog)
self.pushButton_4.setGeometry(QtCore.QRect(20, 140, 113, 32))
self.pushButton_4.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_4.setObjectName("pushButton_4")
self.pushButton_5 = QtWidgets.QPushButton(Dialog)
self.pushButton_5.setGeometry(QtCore.QRect(20, 170, 113, 32))
self.pushButton_5.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_5.setObjectName("pushButton_5")
self.pushButton_6 = QtWidgets.QPushButton(Dialog)
self.pushButton_6.setGeometry(QtCore.QRect(130, 110, 113, 32))
self.pushButton_6.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_6.setObjectName("pushButton_6")
self.pushButton_7 = QtWidgets.QPushButton(Dialog)
self.pushButton_7.setGeometry(QtCore.QRect(130, 80, 113, 32))
self.pushButton_7.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_7.setObjectName("pushButton_7")
self.pushButton_8 = QtWidgets.QPushButton(Dialog)
self.pushButton_8.setGeometry(QtCore.QRect(130, 140, 113, 32))
self.pushButton_8.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_8.setObjectName("pushButton_8")
self.pushButton_9 = QtWidgets.QPushButton(Dialog)
self.pushButton_9.setGeometry(QtCore.QRect(130, 170, 113, 32))
self.pushButton_9.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_9.setObjectName("pushButton_9")
self.pushButton_10 = QtWidgets.QPushButton(Dialog)
self.pushButton_10.setGeometry(QtCore.QRect(130, 50, 113, 32))
self.pushButton_10.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_10.setObjectName("pushButton_10")
self.pushButton_11 = QtWidgets.QPushButton(Dialog)
self.pushButton_11.setGeometry(QtCore.QRect(240, 110, 113, 32))
self.pushButton_11.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_11.setObjectName("pushButton_11")
self.pushButton_12 = QtWidgets.QPushButton(Dialog)
self.pushButton_12.setGeometry(QtCore.QRect(240, 80, 113, 32))
self.pushButton_12.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_12.setObjectName("pushButton_12")
self.pushButton_13 = QtWidgets.QPushButton(Dialog)
self.pushButton_13.setGeometry(QtCore.QRect(240, 140, 113, 32))
self.pushButton_13.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_13.setObjectName("pushButton_13")
self.pushButton_14 = QtWidgets.QPushButton(Dialog)
self.pushButton_14.setGeometry(QtCore.QRect(240, 170, 113, 32))
self.pushButton_14.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_14.setObjectName("pushButton_14")
self.pushButton_15 = QtWidgets.QPushButton(Dialog)
self.pushButton_15.setGeometry(QtCore.QRect(240, 50, 113, 32))
self.pushButton_15.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_15.setObjectName("pushButton_15")
self.pushButton_16 = QtWidgets.QPushButton(Dialog)
self.pushButton_16.setGeometry(QtCore.QRect(350, 110, 113, 32))
self.pushButton_16.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_16.setObjectName("pushButton_16")
self.pushButton_17 = QtWidgets.QPushButton(Dialog)
self.pushButton_17.setGeometry(QtCore.QRect(350, 80, 113, 32))
self.pushButton_17.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_17.setObjectName("pushButton_17")
self.pushButton_18 = QtWidgets.QPushButton(Dialog)
self.pushButton_18.setGeometry(QtCore.QRect(350, 140, 113, 32))
self.pushButton_18.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_18.setObjectName("pushButton_18")
self.pushButton_19 = QtWidgets.QPushButton(Dialog)
self.pushButton_19.setGeometry(QtCore.QRect(350, 170, 113, 32))
self.pushButton_19.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_19.setObjectName("pushButton_19")
self.pushButton_20 = QtWidgets.QPushButton(Dialog)
self.pushButton_20.setGeometry(QtCore.QRect(350, 50, 113, 32))
self.pushButton_20.setMaximumSize(QtCore.QSize(113, 16777215))
self.pushButton_20.setObjectName("pushButton_20")
self.pushButton_21 = QtWidgets.QPushButton(Dialog)
self.pushButton_21.setGeometry(QtCore.QRect(180, 270, 113, 32))
self.pushButton_21.setObjectName("pushButton_21")
self.retranslateUi(Dialog)
self.lineEdit.returnPressed.connect(Dialog.open)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.lineEdit.setText(_translate("Dialog", "Enter your text string here: "))
self.pushButton.setText(_translate("Dialog", "1st Prediction"))
self.lineEdit_2.setText(_translate("Dialog", "Text String: "))
self.pushButton_2.setText(_translate("Dialog", "2nd Prediction"))
self.pushButton_3.setText(_translate("Dialog", "3rd Prediction"))
self.pushButton_4.setText(_translate("Dialog", "4th Prediction"))
self.pushButton_5.setText(_translate("Dialog", "5th Prediction"))
self.pushButton_6.setText(_translate("Dialog", "3rd Prediction"))
self.pushButton_7.setText(_translate("Dialog", "2nd Prediction"))
self.pushButton_8.setText(_translate("Dialog", "4th Prediction"))
self.pushButton_9.setText(_translate("Dialog", "5th Prediction"))
self.pushButton_10.setText(_translate("Dialog", "1st Prediction"))
self.pushButton_11.setText(_translate("Dialog", "3rd Prediction"))
self.pushButton_12.setText(_translate("Dialog", "2nd Prediction"))
self.pushButton_13.setText(_translate("Dialog", "4th Prediction"))
self.pushButton_14.setText(_translate("Dialog", "5th Prediction"))
self.pushButton_15.setText(_translate("Dialog", "1st Prediction"))
self.pushButton_16.setText(_translate("Dialog", "3rd Prediction"))
self.pushButton_17.setText(_translate("Dialog", "2nd Prediction"))
self.pushButton_18.setText(_translate("Dialog", "4th Prediction"))
self.pushButton_19.setText(_translate("Dialog", "5th Prediction"))
self.pushButton_20.setText(_translate("Dialog", "1st Prediction"))
self.pushButton_21.setText(_translate("Dialog", "EXIT Program"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Dialog = QtWidgets.QDialog()
ui = Ui_Dialog()
ui.setupUi(Dialog)
Dialog.show()
sys.exit(app.exec_())