-
Notifications
You must be signed in to change notification settings - Fork 0
/
calls.py
218 lines (215 loc) · 12.8 KB
/
calls.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/telephone-call.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setStyleSheet("QMainWindow{\n"
" background:rgb(114, 255, 243);\n"
"}")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_5 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
self.gridLayout_5.setObjectName("gridLayout_5")
self.scrollArea = QtWidgets.QScrollArea(self.centralwidget)
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName("scrollArea")
self.scrollAreaWidgetContents = QtWidgets.QWidget()
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 798, 598))
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
self.gridLayout_6 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents)
self.gridLayout_6.setObjectName("gridLayout_6")
self.ngrok_url = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
self.ngrok_url.setObjectName("ngrok_url")
self.gridLayout_6.addWidget(self.ngrok_url, 0, 0, 1, 2)
self.server_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.server_frame.sizePolicy().hasHeightForWidth())
self.server_frame.setSizePolicy(sizePolicy)
self.server_frame.setStyleSheet("QFrame{\n"
" border:1px solid #ABABAB;\n"
"}")
self.server_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.server_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.server_frame.setObjectName("server_frame")
self.gridLayout_2 = QtWidgets.QGridLayout(self.server_frame)
self.gridLayout_2.setObjectName("gridLayout_2")
self.server_video = QtWidgets.QLabel(self.server_frame)
self.server_video.setStyleSheet("QLabel{border:none;}")
self.server_video.setText("")
self.server_video.setObjectName("server_video")
self.gridLayout_2.addWidget(self.server_video, 0, 0, 1, 1)
self.gridLayout_6.addWidget(self.server_frame, 1, 0, 1, 1)
self.client_1_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.client_1_frame.sizePolicy().hasHeightForWidth())
self.client_1_frame.setSizePolicy(sizePolicy)
self.client_1_frame.setStyleSheet("QFrame{\n"
" border:1px solid #ABABAB;\n"
"}")
self.client_1_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.client_1_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.client_1_frame.setObjectName("client_1_frame")
self.gridLayout = QtWidgets.QGridLayout(self.client_1_frame)
self.gridLayout.setObjectName("gridLayout")
self.client_1_accept = QtWidgets.QPushButton(self.client_1_frame)
self.client_1_accept.setObjectName("client_1_accept")
self.gridLayout.addWidget(self.client_1_accept, 1, 0, 1, 1)
self.client_1_stop = QtWidgets.QPushButton(self.client_1_frame)
self.client_1_stop.setObjectName("client_1_stop")
self.gridLayout.addWidget(self.client_1_stop, 0, 2, 1, 1)
self.client_1_label = QtWidgets.QLabel(self.client_1_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.client_1_label.sizePolicy().hasHeightForWidth())
self.client_1_label.setSizePolicy(sizePolicy)
self.client_1_label.setStyleSheet("QLabel{\n"
" border:none;\n"
"}")
self.client_1_label.setObjectName("client_1_label")
self.gridLayout.addWidget(self.client_1_label, 0, 0, 1, 2)
self.client_1_video = QtWidgets.QLabel(self.client_1_frame)
self.client_1_video.setStyleSheet("QLabel{\n"
" border:none;\n"
"}")
self.client_1_video.setText("")
self.client_1_video.setObjectName("client_1_video")
self.gridLayout.addWidget(self.client_1_video, 3, 0, 1, 3)
self.client_1_reject = QtWidgets.QPushButton(self.client_1_frame)
self.client_1_reject.setObjectName("client_1_reject")
self.gridLayout.addWidget(self.client_1_reject, 1, 1, 1, 1)
self.line = QtWidgets.QFrame(self.client_1_frame)
self.line.setMinimumSize(QtCore.QSize(0, 1))
self.line.setMaximumSize(QtCore.QSize(16777215, 1))
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.gridLayout.addWidget(self.line, 2, 0, 1, 3)
self.gridLayout_6.addWidget(self.client_1_frame, 1, 1, 1, 1)
self.client_2_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.client_2_frame.sizePolicy().hasHeightForWidth())
self.client_2_frame.setSizePolicy(sizePolicy)
self.client_2_frame.setStyleSheet("QFrame{\n"
" border:1px solid #ABABAB;\n"
"}")
self.client_2_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.client_2_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.client_2_frame.setObjectName("client_2_frame")
self.gridLayout_3 = QtWidgets.QGridLayout(self.client_2_frame)
self.gridLayout_3.setObjectName("gridLayout_3")
self.client_2_reject = QtWidgets.QPushButton(self.client_2_frame)
self.client_2_reject.setObjectName("client_2_reject")
self.gridLayout_3.addWidget(self.client_2_reject, 1, 1, 1, 1)
self.client_2_accept = QtWidgets.QPushButton(self.client_2_frame)
self.client_2_accept.setObjectName("client_2_accept")
self.gridLayout_3.addWidget(self.client_2_accept, 1, 0, 1, 1)
self.client_2_stop = QtWidgets.QPushButton(self.client_2_frame)
self.client_2_stop.setObjectName("client_2_stop")
self.gridLayout_3.addWidget(self.client_2_stop, 0, 2, 1, 1)
self.client_2_video = QtWidgets.QLabel(self.client_2_frame)
self.client_2_video.setStyleSheet("QLabel{\n"
" border:none;\n"
"}")
self.client_2_video.setText("")
self.client_2_video.setObjectName("client_2_video")
self.gridLayout_3.addWidget(self.client_2_video, 3, 0, 1, 3)
self.client_2_label = QtWidgets.QLabel(self.client_2_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.client_2_label.sizePolicy().hasHeightForWidth())
self.client_2_label.setSizePolicy(sizePolicy)
self.client_2_label.setStyleSheet("QLabel{\n"
" border:none;\n"
"}")
self.client_2_label.setObjectName("client_2_label")
self.gridLayout_3.addWidget(self.client_2_label, 0, 0, 1, 2)
self.line_2 = QtWidgets.QFrame(self.client_2_frame)
self.line_2.setMinimumSize(QtCore.QSize(0, 1))
self.line_2.setMaximumSize(QtCore.QSize(16777215, 1))
self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.gridLayout_3.addWidget(self.line_2, 2, 0, 1, 3)
self.gridLayout_6.addWidget(self.client_2_frame, 2, 0, 1, 1)
self.client_3_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.client_3_frame.sizePolicy().hasHeightForWidth())
self.client_3_frame.setSizePolicy(sizePolicy)
self.client_3_frame.setStyleSheet("QFrame{\n"
" border:1px solid #ABABAB;\n"
"}")
self.client_3_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.client_3_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.client_3_frame.setObjectName("client_3_frame")
self.gridLayout_4 = QtWidgets.QGridLayout(self.client_3_frame)
self.gridLayout_4.setObjectName("gridLayout_4")
self.client_3_reject = QtWidgets.QPushButton(self.client_3_frame)
self.client_3_reject.setObjectName("client_3_reject")
self.gridLayout_4.addWidget(self.client_3_reject, 1, 1, 1, 1)
self.client_3_accept = QtWidgets.QPushButton(self.client_3_frame)
self.client_3_accept.setObjectName("client_3_accept")
self.gridLayout_4.addWidget(self.client_3_accept, 1, 0, 1, 1)
self.client_3_stop = QtWidgets.QPushButton(self.client_3_frame)
self.client_3_stop.setObjectName("client_3_stop")
self.gridLayout_4.addWidget(self.client_3_stop, 0, 2, 1, 1)
self.client_3_label = QtWidgets.QLabel(self.client_3_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.client_3_label.sizePolicy().hasHeightForWidth())
self.client_3_label.setSizePolicy(sizePolicy)
self.client_3_label.setStyleSheet("QLabel{\n"
" border:none;\n"
"}")
self.client_3_label.setObjectName("client_3_label")
self.gridLayout_4.addWidget(self.client_3_label, 0, 0, 1, 2)
self.client_3_video = QtWidgets.QLabel(self.client_3_frame)
self.client_3_video.setStyleSheet("QLabel{\n"
" border:none;\n"
"}")
self.client_3_video.setText("")
self.client_3_video.setObjectName("client_3_video")
self.gridLayout_4.addWidget(self.client_3_video, 3, 0, 1, 3)
self.line_3 = QtWidgets.QFrame(self.client_3_frame)
self.line_3.setMinimumSize(QtCore.QSize(0, 1))
self.line_3.setMaximumSize(QtCore.QSize(16777215, 1))
self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_3.setObjectName("line_3")
self.gridLayout_4.addWidget(self.line_3, 2, 0, 1, 3)
self.gridLayout_6.addWidget(self.client_3_frame, 2, 1, 1, 1)
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
self.gridLayout_5.addWidget(self.scrollArea, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Διαδικτυακές κλήσεις video"))
self.client_1_accept.setText(_translate("MainWindow", "Απάντηση κλήσης"))
self.client_1_stop.setText(_translate("MainWindow", "Τερματισμός κλήσης"))
self.client_1_label.setText(_translate("MainWindow", "Τηλεφωνική κλήση από: ... ..."))
self.client_1_reject.setText(_translate("MainWindow", "Απόρριψη κλήσης"))
self.client_2_reject.setText(_translate("MainWindow", "Απόρριψη κλήσης"))
self.client_2_accept.setText(_translate("MainWindow", "Απάντηση κλήσης"))
self.client_2_stop.setText(_translate("MainWindow", "Τερματισμός κλήσης"))
self.client_2_label.setText(_translate("MainWindow", "Τηλεφωνική κλήση από: ... ..."))
self.client_3_reject.setText(_translate("MainWindow", "Απόρριψη κλήσης"))
self.client_3_accept.setText(_translate("MainWindow", "Απάντηση κλήσης"))
self.client_3_stop.setText(_translate("MainWindow", "Τερματισμός κλήσης"))
self.client_3_label.setText(_translate("MainWindow", "Τηλεφωνική κλήση από: ... ..."))
import icons_rc