-
Notifications
You must be signed in to change notification settings - Fork 1
/
SIM800C_PhoneCallUI.py
170 lines (163 loc) · 8.51 KB
/
SIM800C_PhoneCallUI.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'SIM800C_PhoneCallUI.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_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setEnabled(True)
MainWindow.resize(221, 479)
MainWindow.setStyleSheet("")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setStyleSheet("")
self.centralwidget.setObjectName("centralwidget")
self.pushButton_1 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_1.setGeometry(QtCore.QRect(10, 70, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_1.setFont(font)
self.pushButton_1.setObjectName("pushButton_1")
self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_2.setGeometry(QtCore.QRect(80, 70, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_2.setFont(font)
self.pushButton_2.setObjectName("pushButton_2")
self.pushButton_3 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_3.setGeometry(QtCore.QRect(150, 70, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_3.setFont(font)
self.pushButton_3.setObjectName("pushButton_3")
self.pushButton_4 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_4.setGeometry(QtCore.QRect(10, 140, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_4.setFont(font)
self.pushButton_4.setObjectName("pushButton_4")
self.pushButton_5 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_5.setGeometry(QtCore.QRect(80, 140, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_5.setFont(font)
self.pushButton_5.setObjectName("pushButton_5")
self.pushButton_6 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_6.setGeometry(QtCore.QRect(150, 140, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_6.setFont(font)
self.pushButton_6.setObjectName("pushButton_6")
self.pushButton_7 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_7.setGeometry(QtCore.QRect(10, 210, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_7.setFont(font)
self.pushButton_7.setObjectName("pushButton_7")
self.pushButton_8 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_8.setGeometry(QtCore.QRect(80, 210, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_8.setFont(font)
self.pushButton_8.setObjectName("pushButton_8")
self.pushButton_9 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_9.setGeometry(QtCore.QRect(150, 210, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_9.setFont(font)
self.pushButton_9.setObjectName("pushButton_9")
self.pushButton_10 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_10.setGeometry(QtCore.QRect(10, 280, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_10.setFont(font)
self.pushButton_10.setObjectName("pushButton_10")
self.pushButton_0 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_0.setGeometry(QtCore.QRect(80, 280, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_0.setFont(font)
self.pushButton_0.setObjectName("pushButton_0")
self.pushButton_11 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_11.setGeometry(QtCore.QRect(150, 280, 61, 61))
font = QtGui.QFont()
font.setPointSize(25)
self.pushButton_11.setFont(font)
self.pushButton_11.setObjectName("pushButton_11")
self.pushButton_12 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_12.setGeometry(QtCore.QRect(10, 350, 61, 61))
font = QtGui.QFont()
font.setPointSize(20)
self.pushButton_12.setFont(font)
self.pushButton_12.setStyleSheet("background-color: #ccffcc")
self.pushButton_12.setObjectName("pushButton_12")
self.lineEdit = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit.setGeometry(QtCore.QRect(10, 20, 201, 41))
font = QtGui.QFont()
font.setPointSize(20)
self.lineEdit.setFont(font)
self.lineEdit.setStyleSheet("background-color: #000; color:#fff;")
self.lineEdit.setText("")
self.lineEdit.setObjectName("lineEdit")
self.pushButton_del = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_del.setGeometry(QtCore.QRect(150, 350, 61, 61))
font = QtGui.QFont()
font.setPointSize(20)
self.pushButton_del.setFont(font)
self.pushButton_del.setStyleSheet("")
self.pushButton_del.setObjectName("pushButton_del")
self.pushButton_13 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_13.setGeometry(QtCore.QRect(80, 350, 61, 61))
font = QtGui.QFont()
font.setPointSize(13)
self.pushButton_13.setFont(font)
self.pushButton_13.setStyleSheet("background-color: #ffcccc")
self.pushButton_13.setObjectName("pushButton_13")
self.label_show = QtWidgets.QLabel(self.centralwidget)
self.label_show.setEnabled(True)
self.label_show.setGeometry(QtCore.QRect(10, 0, 141, 16))
self.label_show.setAutoFillBackground(False)
self.label_show.setInputMethodHints(QtCore.Qt.ImhNone)
self.label_show.setObjectName("label_show")
self.pushButton_accept = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_accept.setGeometry(QtCore.QRect(10, 420, 71, 23))
self.pushButton_accept.setStyleSheet("background-color: #ccffcc")
self.pushButton_accept.setObjectName("pushButton_accept")
self.pushButton_deny = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_deny.setGeometry(QtCore.QRect(140, 420, 71, 23))
self.pushButton_deny.setStyleSheet("background-color: #ffcccc")
self.pushButton_deny.setObjectName("pushButton_deny")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 221, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "SIM800C Phone Call"))
self.pushButton_1.setText(_translate("MainWindow", "1"))
self.pushButton_2.setText(_translate("MainWindow", "2"))
self.pushButton_3.setText(_translate("MainWindow", "3"))
self.pushButton_4.setText(_translate("MainWindow", "4"))
self.pushButton_5.setText(_translate("MainWindow", "5"))
self.pushButton_6.setText(_translate("MainWindow", "6"))
self.pushButton_7.setText(_translate("MainWindow", "7"))
self.pushButton_8.setText(_translate("MainWindow", "8"))
self.pushButton_9.setText(_translate("MainWindow", "9"))
self.pushButton_10.setText(_translate("MainWindow", "*"))
self.pushButton_0.setText(_translate("MainWindow", "0"))
self.pushButton_11.setText(_translate("MainWindow", "#"))
self.pushButton_12.setText(_translate("MainWindow", "Call"))
self.pushButton_del.setText(_translate("MainWindow", "Del"))
self.pushButton_13.setText(_translate("MainWindow", "Cut off"))
self.label_show.setText(_translate("MainWindow", "Ready"))
self.pushButton_accept.setText(_translate("MainWindow", "Accept"))
self.pushButton_deny.setText(_translate("MainWindow", "Deny"))