-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainWinClient.py
405 lines (398 loc) · 22.2 KB
/
mainWinClient.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainWinClient.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# 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.setWindowModality(QtCore.Qt.NonModal)
MainWindow.resize(938, 530)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("qr-code-icon-scan-icon-e-commerce-icon-Y1e6cXtb.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setLayoutDirection(QtCore.Qt.LeftToRight)
MainWindow.setAutoFillBackground(False)
MainWindow.setStyleSheet("#MainWindow {\n"
"background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #eef, stop: 1 #ccf);\n"
"}\n"
"#tableWidget {\n"
"border: 3px solid gray;\n"
"border-radius: 5px;\n"
"background: white;\n"
"}\n"
"#frame {\n"
"border: 3px solid gray;\n"
"border-radius: 40px;\n"
"background: white;\n"
"}\n"
"QLineEdit {\n"
"padding: 1px;\n"
"border-style: solid;\n"
"border: 2px solid gray;\n"
"border-radius: 8px;\n"
"}\n"
"QPushButton {\n"
"color: white;\n"
"background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #88d, stop: 0.1 #99e, stop: 0.49 #77c, stop: 0.5 #66b, stop: 1 #77c);\n"
"border-width: 1px;\n"
"border-color: #339;\n"
"border-style: solid;\n"
"border-radius: 7;\n"
"}")
MainWindow.setDocumentMode(False)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(290, 30, 341, 31))
font = QtGui.QFont()
font.setFamily("MS Shell Dlg 2")
font.setPointSize(16)
font.setBold(False)
font.setWeight(50)
self.label.setFont(font)
self.label.setObjectName("label")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setEnabled(True)
self.pushButton.setGeometry(QtCore.QRect(320, 90, 261, 81))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 128))
brush.setStyle(QtCore.Qt.NoBrush)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 128))
brush.setStyle(QtCore.Qt.NoBrush)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.PlaceholderText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 128))
brush.setStyle(QtCore.Qt.NoBrush)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush)
self.pushButton.setPalette(palette)
font = QtGui.QFont()
font.setFamily("MS Shell Dlg 2")
font.setPointSize(13)
font.setBold(True)
font.setWeight(75)
self.pushButton.setFont(font)
self.pushButton.setObjectName("pushButton")
self.lineEdit = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit.setGeometry(QtCore.QRect(110, 210, 721, 251))
font = QtGui.QFont()
font.setFamily("Tw Cen MT Condensed Extra Bold")
font.setPointSize(14)
font.setBold(False)
font.setWeight(50)
self.lineEdit.setFont(font)
self.lineEdit.setFocusPolicy(QtCore.Qt.StrongFocus)
self.lineEdit.setLayoutDirection(QtCore.Qt.LeftToRight)
self.lineEdit.setObjectName("lineEdit")
self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_2.setEnabled(True)
self.pushButton_2.setGeometry(QtCore.QRect(610, 120, 121, 31))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 128))
brush.setStyle(QtCore.Qt.NoBrush)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 128))
brush.setStyle(QtCore.Qt.NoBrush)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.PlaceholderText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
gradient = QtGui.QLinearGradient(0.0, 0.0, 0.0, 1.0)
gradient.setSpread(QtGui.QGradient.PadSpread)
gradient.setCoordinateMode(QtGui.QGradient.ObjectBoundingMode)
gradient.setColorAt(0.0, QtGui.QColor(136, 136, 221))
gradient.setColorAt(0.1, QtGui.QColor(153, 153, 238))
gradient.setColorAt(0.49, QtGui.QColor(119, 119, 204))
gradient.setColorAt(0.5, QtGui.QColor(102, 102, 187))
gradient.setColorAt(1.0, QtGui.QColor(119, 119, 204))
brush = QtGui.QBrush(gradient)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 128))
brush.setStyle(QtCore.Qt.NoBrush)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush)
self.pushButton_2.setPalette(palette)
font = QtGui.QFont()
font.setFamily("MS Shell Dlg 2")
font.setPointSize(13)
font.setBold(True)
font.setWeight(75)
self.pushButton_2.setFont(font)
self.pushButton_2.setObjectName("pushButton_2")
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setEnabled(True)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menuBar = QtWidgets.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 938, 21))
self.menuBar.setObjectName("menuBar")
self.menuFile = QtWidgets.QMenu(self.menuBar)
self.menuFile.setObjectName("menuFile")
self.menuYard_m = QtWidgets.QMenu(self.menuBar)
self.menuYard_m.setObjectName("menuYard_m")
MainWindow.setMenuBar(self.menuBar)
self.action_k = QtWidgets.QAction(MainWindow)
self.action_k.setObjectName("action_k")
self.actionA = QtWidgets.QAction(MainWindow)
self.actionA.setObjectName("actionA")
self.actionKaydet = QtWidgets.QAction(MainWindow)
self.actionKaydet.setObjectName("actionKaydet")
self.actionProgram_Hakk_nda = QtWidgets.QAction(MainWindow)
self.actionProgram_Hakk_nda.setObjectName("actionProgram_Hakk_nda")
self.actionKitap_Bilgileri_D_zenle = QtWidgets.QAction(MainWindow)
self.actionKitap_Bilgileri_D_zenle.setObjectName("actionKitap_Bilgileri_D_zenle")
self.actionKitap_Sil = QtWidgets.QAction(MainWindow)
self.actionKitap_Sil.setObjectName("actionKitap_Sil")
self.actionYeni_Kitap_Ekle = QtWidgets.QAction(MainWindow)
self.actionYeni_Kitap_Ekle.setObjectName("actionYeni_Kitap_Ekle")
self.actionK_t_phaneyi_Bo_alt = QtWidgets.QAction(MainWindow)
self.actionK_t_phaneyi_Bo_alt.setObjectName("actionK_t_phaneyi_Bo_alt")
self.actionKullan_m_K_lavuzu = QtWidgets.QAction(MainWindow)
self.actionKullan_m_K_lavuzu.setObjectName("actionKullan_m_K_lavuzu")
self.menuFile.addAction(self.action_k)
self.menuYard_m.addAction(self.actionProgram_Hakk_nda)
self.menuBar.addAction(self.menuFile.menuAction())
self.menuBar.addAction(self.menuYard_m.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "QR Code Detecting & Decoding Project"))
self.label.setText(_translate("MainWindow", "Get QR Code from server as client"))
self.pushButton.setText(_translate("MainWindow", "Qr Kodu Okuyucusu Başlat"))
self.pushButton_2.setText(_translate("MainWindow", "Qr Kodu İste"))
self.menuFile.setTitle(_translate("MainWindow", "File"))
self.menuYard_m.setTitle(_translate("MainWindow", "Help"))
self.action_k.setText(_translate("MainWindow", "Exit"))
self.actionA.setText(_translate("MainWindow", "Aç"))
self.actionKaydet.setText(_translate("MainWindow", "Kaydet"))
self.actionProgram_Hakk_nda.setText(_translate("MainWindow", "About App"))
self.actionKitap_Bilgileri_D_zenle.setText(_translate("MainWindow", "Kitap Bilgileri Düzenle"))
self.actionKitap_Sil.setText(_translate("MainWindow", "Kitap Sil"))
self.actionYeni_Kitap_Ekle.setText(_translate("MainWindow", "Yeni Kitap Ekle"))
self.actionK_t_phaneyi_Bo_alt.setText(_translate("MainWindow", "Kütüphaneyi Boşalt"))
self.actionKullan_m_K_lavuzu.setText(_translate("MainWindow", "Kullanım Kılavuzu"))