-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface.py
1013 lines (1004 loc) · 52 KB
/
interface.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
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\User\Documents\Python\interface.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.resize(1800, 960)
MainWindow.setStyleSheet("*{\n"
"border: none;\n"
"background-color: transparent;\n"
"background:transparent;\n"
"padding:0;\n"
"margin:0;\n"
"color:#03071E;\n"
"}\n"
"#centralwidget{\n"
"background-color: #1D3557\n"
"}\n"
"\n"
"#LeftSubMenu{\n"
"background-color: rgb(69, 123, 157);\n"
"}\n"
"\n"
"#LeftSubMenu QPushButton{\n"
"text-align:left;\n"
"padding:5px 10px;\n"
"border-top-left-radius:10px;\n"
"}\n"
"\n"
"#CenterMenuSub{\n"
"background-color:#219EBC;\n"
"}\n"
"\n"
"#frame_4{\n"
"background-color: rgb(69, 123, 157);\n"
"border-radius:10px;\n"
"}\n"
"\n"
"#RightMenuSub{\n"
"background-color: rgb(69, 123, 157);\n"
"}")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.LeftMenu = QtWidgets.QWidget(self.centralwidget)
self.LeftMenu.setObjectName("LeftMenu")
self.verticalLayout = QtWidgets.QVBoxLayout(self.LeftMenu)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
self.LeftSubMenu = QtWidgets.QWidget(self.LeftMenu)
self.LeftSubMenu.setObjectName("LeftSubMenu")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.LeftSubMenu)
self.verticalLayout_2.setContentsMargins(5, 0, 0, 0)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.frame = QtWidgets.QFrame(self.LeftSubMenu)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.MenuBtn = QtWidgets.QPushButton(self.frame)
self.MenuBtn.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.MenuBtn.setFocusPolicy(QtCore.Qt.NoFocus)
self.MenuBtn.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/icons/align-justify.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.MenuBtn.setIcon(icon)
self.MenuBtn.setIconSize(QtCore.QSize(24, 24))
self.MenuBtn.setObjectName("MenuBtn")
self.horizontalLayout_2.addWidget(self.MenuBtn)
self.verticalLayout_2.addWidget(self.frame, 0, QtCore.Qt.AlignTop)
self.frame_2 = QtWidgets.QFrame(self.LeftSubMenu)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
self.frame_2.setSizePolicy(sizePolicy)
self.frame_2.setStyleSheet("#button_sign:hover, #button_shop:hover{\n"
" background-color: rgb(59, 113, 147);\n"
"}")
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame_2)
self.verticalLayout_3.setContentsMargins(0, 10, 0, 10)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.button_home = QtWidgets.QPushButton(self.frame_2)
font = QtGui.QFont()
font.setPointSize(10)
self.button_home.setFont(font)
self.button_home.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
self.button_home.setFocusPolicy(QtCore.Qt.NoFocus)
self.button_home.setToolTip("")
self.button_home.setStyleSheet("background-color: rgb(168, 218, 220);")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icons/icons/home.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_home.setIcon(icon1)
self.button_home.setIconSize(QtCore.QSize(24, 24))
self.button_home.setObjectName("button_home")
self.verticalLayout_3.addWidget(self.button_home)
self.button_sign = QtWidgets.QPushButton(self.frame_2)
self.button_sign.setEnabled(True)
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setWeight(50)
self.button_sign.setFont(font)
self.button_sign.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_sign.setFocusPolicy(QtCore.Qt.NoFocus)
self.button_sign.setToolTip("")
self.button_sign.setStyleSheet("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/icons/icons/smile.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_sign.setIcon(icon2)
self.button_sign.setIconSize(QtCore.QSize(24, 24))
self.button_sign.setObjectName("button_sign")
self.verticalLayout_3.addWidget(self.button_sign)
self.button_shop = QtWidgets.QPushButton(self.frame_2)
font = QtGui.QFont()
font.setPointSize(10)
self.button_shop.setFont(font)
self.button_shop.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_shop.setFocusPolicy(QtCore.Qt.NoFocus)
self.button_shop.setToolTip("")
self.button_shop.setStyleSheet("")
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/icons/icons/shopping-cart.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_shop.setIcon(icon3)
self.button_shop.setIconSize(QtCore.QSize(24, 24))
self.button_shop.setObjectName("button_shop")
self.verticalLayout_3.addWidget(self.button_shop)
self.verticalLayout_2.addWidget(self.frame_2, 0, QtCore.Qt.AlignTop)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem)
self.frame_3 = QtWidgets.QFrame(self.LeftSubMenu)
self.frame_3.setStyleSheet("QPushButton:hover{\n"
" background-color: rgb(59, 113, 147);\n"
"}")
self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_3.setObjectName("frame_3")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame_3)
self.verticalLayout_4.setContentsMargins(0, 10, 0, 10)
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.button_pref = QtWidgets.QPushButton(self.frame_3)
font = QtGui.QFont()
font.setPointSize(10)
self.button_pref.setFont(font)
self.button_pref.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_pref.setFocusPolicy(QtCore.Qt.NoFocus)
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/icons/icons/settings.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_pref.setIcon(icon4)
self.button_pref.setIconSize(QtCore.QSize(24, 24))
self.button_pref.setObjectName("button_pref")
self.verticalLayout_4.addWidget(self.button_pref)
self.button_info = QtWidgets.QPushButton(self.frame_3)
font = QtGui.QFont()
font.setPointSize(10)
self.button_info.setFont(font)
self.button_info.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_info.setFocusPolicy(QtCore.Qt.NoFocus)
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/icons/icons/info.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_info.setIcon(icon5)
self.button_info.setIconSize(QtCore.QSize(24, 24))
self.button_info.setObjectName("button_info")
self.verticalLayout_4.addWidget(self.button_info)
self.button_help = QtWidgets.QPushButton(self.frame_3)
font = QtGui.QFont()
font.setPointSize(10)
self.button_help.setFont(font)
self.button_help.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_help.setFocusPolicy(QtCore.Qt.NoFocus)
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/icons/icons/help-circle.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_help.setIcon(icon6)
self.button_help.setIconSize(QtCore.QSize(24, 24))
self.button_help.setObjectName("button_help")
self.verticalLayout_4.addWidget(self.button_help)
self.verticalLayout_2.addWidget(self.frame_3, 0, QtCore.Qt.AlignBottom)
self.verticalLayout.addWidget(self.LeftSubMenu)
self.horizontalLayout.addWidget(self.LeftMenu)
self.center_menu = QtWidgets.QWidget(self.centralwidget)
self.center_menu.setMinimumSize(QtCore.QSize(200, 0))
self.center_menu.setObjectName("center_menu")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.center_menu)
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_5.setSpacing(0)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.CenterMenuSub = QtWidgets.QWidget(self.center_menu)
self.CenterMenuSub.setMinimumSize(QtCore.QSize(200, 0))
self.CenterMenuSub.setObjectName("CenterMenuSub")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.CenterMenuSub)
self.verticalLayout_6.setContentsMargins(11, -1, 11, -1)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.frame_4 = QtWidgets.QFrame(self.CenterMenuSub)
self.frame_4.setStyleSheet("")
self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_4.setObjectName("frame_4")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame_4)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label = QtWidgets.QLabel(self.frame_4)
font = QtGui.QFont()
font.setPointSize(10)
self.label.setFont(font)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.horizontalLayout_3.addWidget(self.label)
self.button_center_close = QtWidgets.QPushButton(self.frame_4)
self.button_center_close.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_center_close.setText("")
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap(":/icons/icons/x-circle.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_center_close.setIcon(icon7)
self.button_center_close.setIconSize(QtCore.QSize(24, 24))
self.button_center_close.setObjectName("button_center_close")
self.horizontalLayout_3.addWidget(self.button_center_close, 0, QtCore.Qt.AlignRight)
self.verticalLayout_6.addWidget(self.frame_4, 0, QtCore.Qt.AlignTop)
self.stackedWidget_side = QtWidgets.QStackedWidget(self.CenterMenuSub)
self.stackedWidget_side.setEnabled(True)
self.stackedWidget_side.setMinimumSize(QtCore.QSize(0, 0))
self.stackedWidget_side.setObjectName("stackedWidget_side")
self.page_pref = QtWidgets.QWidget()
self.page_pref.setObjectName("page_pref")
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.page_pref)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.label_2 = QtWidgets.QLabel(self.page_pref)
font = QtGui.QFont()
font.setPointSize(13)
self.label_2.setFont(font)
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_2.setObjectName("label_2")
self.verticalLayout_7.addWidget(self.label_2)
self.stackedWidget_side.addWidget(self.page_pref)
self.page_help = QtWidgets.QWidget()
self.page_help.setObjectName("page_help")
self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.page_help)
self.verticalLayout_9.setObjectName("verticalLayout_9")
self.label_4 = QtWidgets.QLabel(self.page_help)
font = QtGui.QFont()
font.setPointSize(13)
font.setBold(False)
font.setWeight(50)
self.label_4.setFont(font)
self.label_4.setAlignment(QtCore.Qt.AlignCenter)
self.label_4.setObjectName("label_4")
self.verticalLayout_9.addWidget(self.label_4)
self.stackedWidget_side.addWidget(self.page_help)
self.page_info = QtWidgets.QWidget()
self.page_info.setObjectName("page_info")
self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.page_info)
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.label_3 = QtWidgets.QLabel(self.page_info)
font = QtGui.QFont()
font.setPointSize(13)
font.setBold(False)
font.setWeight(50)
self.label_3.setFont(font)
self.label_3.setAlignment(QtCore.Qt.AlignCenter)
self.label_3.setObjectName("label_3")
self.verticalLayout_8.addWidget(self.label_3)
self.stackedWidget_side.addWidget(self.page_info)
self.verticalLayout_6.addWidget(self.stackedWidget_side)
self.verticalLayout_5.addWidget(self.CenterMenuSub, 0, QtCore.Qt.AlignLeft)
self.horizontalLayout.addWidget(self.center_menu)
self.main_body = QtWidgets.QWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.main_body.sizePolicy().hasHeightForWidth())
self.main_body.setSizePolicy(sizePolicy)
self.main_body.setStyleSheet("background-color: rgb(241, 250, 238);")
self.main_body.setObjectName("main_body")
self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.main_body)
self.verticalLayout_10.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_10.setSpacing(0)
self.verticalLayout_10.setObjectName("verticalLayout_10")
self.header_container = QtWidgets.QWidget(self.main_body)
self.header_container.setStyleSheet("background-color: rgb(33, 158, 188);\n"
"border-radius:15px")
self.header_container.setObjectName("header_container")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.header_container)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.frame_6 = QtWidgets.QFrame(self.header_container)
self.frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_6.setObjectName("frame_6")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.frame_6)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.button_account = QtWidgets.QPushButton(self.frame_6)
self.button_account.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_account.setFocusPolicy(QtCore.Qt.NoFocus)
self.button_account.setText("")
icon8 = QtGui.QIcon()
icon8.addPixmap(QtGui.QPixmap(":/icons/icons/user.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_account.setIcon(icon8)
self.button_account.setIconSize(QtCore.QSize(24, 24))
self.button_account.setObjectName("button_account")
self.horizontalLayout_6.addWidget(self.button_account)
self.button_more = QtWidgets.QPushButton(self.frame_6)
self.button_more.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_more.setFocusPolicy(QtCore.Qt.NoFocus)
self.button_more.setText("")
icon9 = QtGui.QIcon()
icon9.addPixmap(QtGui.QPixmap(":/icons/icons/more-horizontal.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_more.setIcon(icon9)
self.button_more.setIconSize(QtCore.QSize(24, 24))
self.button_more.setObjectName("button_more")
self.horizontalLayout_6.addWidget(self.button_more)
self.button_notification = QtWidgets.QPushButton(self.frame_6)
self.button_notification.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_notification.setText("")
icon10 = QtGui.QIcon()
icon10.addPixmap(QtGui.QPixmap(":/icons/icons/bell.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_notification.setIcon(icon10)
self.button_notification.setIconSize(QtCore.QSize(24, 24))
self.button_notification.setObjectName("button_notification")
self.horizontalLayout_6.addWidget(self.button_notification)
self.horizontalLayout_5.addWidget(self.frame_6, 0, QtCore.Qt.AlignHCenter)
self.verticalLayout_10.addWidget(self.header_container, 0, QtCore.Qt.AlignTop)
self.main_body_content = QtWidgets.QWidget(self.main_body)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.main_body_content.sizePolicy().hasHeightForWidth())
self.main_body_content.setSizePolicy(sizePolicy)
self.main_body_content.setStyleSheet("")
self.main_body_content.setObjectName("main_body_content")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.main_body_content)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.mainContents = QtWidgets.QWidget(self.main_body_content)
self.mainContents.setObjectName("mainContents")
self.verticalLayout_15 = QtWidgets.QVBoxLayout(self.mainContents)
self.verticalLayout_15.setObjectName("verticalLayout_15")
self.stackedWidget_main = QtWidgets.QStackedWidget(self.mainContents)
self.stackedWidget_main.setObjectName("stackedWidget_main")
self.page_home = QtWidgets.QWidget()
self.page_home.setObjectName("page_home")
self.verticalLayout_16 = QtWidgets.QVBoxLayout(self.page_home)
self.verticalLayout_16.setObjectName("verticalLayout_16")
self.label_home = QtWidgets.QLabel(self.page_home)
self.label_home.setMinimumSize(QtCore.QSize(270, 270))
self.label_home.setMaximumSize(QtCore.QSize(270, 270))
font = QtGui.QFont()
font.setPointSize(13)
font.setBold(False)
font.setWeight(50)
self.label_home.setFont(font)
self.label_home.setText("")
self.label_home.setPixmap(QtGui.QPixmap(":/images/Poster.png"))
self.label_home.setScaledContents(True)
self.label_home.setAlignment(QtCore.Qt.AlignCenter)
self.label_home.setWordWrap(True)
self.label_home.setObjectName("label_home")
self.verticalLayout_16.addWidget(self.label_home, 0, QtCore.Qt.AlignHCenter)
self.label_8 = QtWidgets.QLabel(self.page_home)
self.label_8.setMinimumSize(QtCore.QSize(270, 270))
self.label_8.setMaximumSize(QtCore.QSize(270, 270))
self.label_8.setText("")
self.label_8.setPixmap(QtGui.QPixmap(":/images/Poster (2).png"))
self.label_8.setScaledContents(True)
self.label_8.setObjectName("label_8")
self.verticalLayout_16.addWidget(self.label_8, 0, QtCore.Qt.AlignHCenter)
self.stackedWidget_main.addWidget(self.page_home)
self.page_sign = QtWidgets.QWidget()
self.page_sign.setObjectName("page_sign")
self.gridLayout_2 = QtWidgets.QGridLayout(self.page_sign)
self.gridLayout_2.setObjectName("gridLayout_2")
self.Camera = QtWidgets.QWidget(self.page_sign)
self.Camera.setMinimumSize(QtCore.QSize(648, 432))
self.Camera.setMaximumSize(QtCore.QSize(640, 360))
self.Camera.setObjectName("Camera")
self.verticalLayout_17 = QtWidgets.QVBoxLayout(self.Camera)
self.verticalLayout_17.setObjectName("verticalLayout_17")
self.label_11 = QtWidgets.QLabel(self.Camera)
font = QtGui.QFont()
font.setPointSize(10)
self.label_11.setFont(font)
self.label_11.setObjectName("label_11")
self.verticalLayout_17.addWidget(self.label_11)
self.label_sign = QtWidgets.QLabel(self.Camera)
self.label_sign.setMinimumSize(QtCore.QSize(648, 432))
self.label_sign.setMaximumSize(QtCore.QSize(640, 360))
font = QtGui.QFont()
font.setPointSize(13)
font.setBold(False)
font.setWeight(50)
self.label_sign.setFont(font)
self.label_sign.setAlignment(QtCore.Qt.AlignCenter)
self.label_sign.setWordWrap(True)
self.label_sign.setObjectName("label_sign")
self.verticalLayout_17.addWidget(self.label_sign, 0, QtCore.Qt.AlignTop)
self.gridLayout_2.addWidget(self.Camera, 0, 0, 1, 1, QtCore.Qt.AlignTop)
self.recognizeBox = QtWidgets.QGroupBox(self.page_sign)
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.recognizeBox.setFont(font)
self.recognizeBox.setObjectName("recognizeBox")
self.gridLayout_3 = QtWidgets.QGridLayout(self.recognizeBox)
self.gridLayout_3.setObjectName("gridLayout_3")
self.filleFound = QtWidgets.QLabel(self.recognizeBox)
font = QtGui.QFont()
font.setPointSize(10)
self.filleFound.setFont(font)
self.filleFound.setAlignment(QtCore.Qt.AlignCenter)
self.filleFound.setObjectName("filleFound")
self.gridLayout_3.addWidget(self.filleFound, 2, 1, 1, 1)
self.fileName_line = QtWidgets.QLineEdit(self.recognizeBox)
font = QtGui.QFont()
font.setPointSize(10)
self.fileName_line.setFont(font)
self.fileName_line.setStyleSheet("background-color: rgb(69, 123, 157);\n"
"border-radius: 5px;\n"
"color: rgb(240, 240, 240);")
self.fileName_line.setAlignment(QtCore.Qt.AlignCenter)
self.fileName_line.setObjectName("fileName_line")
self.gridLayout_3.addWidget(self.fileName_line, 1, 1, 1, 1, QtCore.Qt.AlignTop)
self.training_label = QtWidgets.QLabel(self.recognizeBox)
font = QtGui.QFont()
font.setPointSize(10)
self.training_label.setFont(font)
self.training_label.setObjectName("training_label")
self.gridLayout_3.addWidget(self.training_label, 1, 0, 1, 1, QtCore.Qt.AlignTop)
self.pushButton_9 = QtWidgets.QPushButton(self.recognizeBox)
self.pushButton_9.setText("")
self.pushButton_9.setObjectName("pushButton_9")
self.gridLayout_3.addWidget(self.pushButton_9, 2, 2, 1, 1)
self.refresh_button = QtWidgets.QPushButton(self.recognizeBox)
self.refresh_button.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.refresh_button.setText("")
icon11 = QtGui.QIcon()
icon11.addPixmap(QtGui.QPixmap(":/icons/icons/refresh-ccw.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.refresh_button.setIcon(icon11)
self.refresh_button.setIconSize(QtCore.QSize(24, 24))
self.refresh_button.setObjectName("refresh_button")
self.gridLayout_3.addWidget(self.refresh_button, 3, 2, 1, 1)
self.search_button = QtWidgets.QPushButton(self.recognizeBox)
self.search_button.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.search_button.setText("")
icon12 = QtGui.QIcon()
icon12.addPixmap(QtGui.QPixmap(":/icons/icons/search.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.search_button.setIcon(icon12)
self.search_button.setIconSize(QtCore.QSize(24, 24))
self.search_button.setObjectName("search_button")
self.gridLayout_3.addWidget(self.search_button, 1, 2, 1, 1)
self.detected_label = QtWidgets.QLabel(self.recognizeBox)
font = QtGui.QFont()
font.setPointSize(10)
self.detected_label.setFont(font)
self.detected_label.setStyleSheet("background-color: rgb(69, 123, 157);\n"
"border-radius: 5px;\n"
"color: rgb(240, 240, 240);")
self.detected_label.setAlignment(QtCore.Qt.AlignCenter)
self.detected_label.setObjectName("detected_label")
self.gridLayout_3.addWidget(self.detected_label, 3, 1, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_3.addItem(spacerItem1, 0, 0, 1, 1)
self.label_19 = QtWidgets.QLabel(self.recognizeBox)
font = QtGui.QFont()
font.setPointSize(10)
self.label_19.setFont(font)
self.label_19.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.label_19.setObjectName("label_19")
self.gridLayout_3.addWidget(self.label_19, 3, 0, 1, 1)
self.resetTextBoxRecog_Button = QtWidgets.QPushButton(self.recognizeBox)
font = QtGui.QFont()
font.setPointSize(10)
self.resetTextBoxRecog_Button.setFont(font)
self.resetTextBoxRecog_Button.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.resetTextBoxRecog_Button.setObjectName("resetTextBoxRecog_Button")
self.gridLayout_3.addWidget(self.resetTextBoxRecog_Button, 4, 2, 1, 1)
self.label_21 = QtWidgets.QLabel(self.recognizeBox)
font = QtGui.QFont()
font.setPointSize(10)
self.label_21.setFont(font)
self.label_21.setObjectName("label_21")
self.gridLayout_3.addWidget(self.label_21, 4, 0, 1, 1)
self.textBoxRecog_label = QtWidgets.QLabel(self.recognizeBox)
font = QtGui.QFont()
font.setPointSize(10)
self.textBoxRecog_label.setFont(font)
self.textBoxRecog_label.setObjectName("textBoxRecog_label")
self.gridLayout_3.addWidget(self.textBoxRecog_label, 4, 1, 1, 1)
self.gridLayout_2.addWidget(self.recognizeBox, 2, 1, 3, 1)
self.sign_start = QtWidgets.QPushButton(self.page_sign)
font = QtGui.QFont()
font.setPointSize(10)
self.sign_start.setFont(font)
self.sign_start.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.sign_start.setStyleSheet("QPushButton {\n"
" background-color: rgb(168, 218, 220);\n"
" padding: 5px 10px;\n"
" border-radius: 10px;\n"
"}\n"
"\n"
"QPushButton:hover{\n"
" background-color: rgb(158, 208, 210);\n"
"}")
icon13 = QtGui.QIcon()
icon13.addPixmap(QtGui.QPixmap(":/icons/icons/video.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.sign_start.setIcon(icon13)
self.sign_start.setIconSize(QtCore.QSize(24, 24))
self.sign_start.setObjectName("sign_start")
self.gridLayout_2.addWidget(self.sign_start, 2, 0, 1, 1)
self.sign_stop = QtWidgets.QPushButton(self.page_sign)
font = QtGui.QFont()
font.setPointSize(10)
self.sign_stop.setFont(font)
self.sign_stop.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.sign_stop.setStyleSheet("QPushButton {\n"
" background-color: rgb(168, 218, 220);\n"
" padding: 5px 10px;\n"
" border-radius: 10px;\n"
"}\n"
"\n"
"QPushButton:hover{\n"
" background-color: rgb(158, 208, 210);\n"
"}")
icon14 = QtGui.QIcon()
icon14.addPixmap(QtGui.QPixmap(":/icons/icons/video-off.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.sign_stop.setIcon(icon14)
self.sign_stop.setIconSize(QtCore.QSize(24, 24))
self.sign_stop.setObjectName("sign_stop")
self.gridLayout_2.addWidget(self.sign_stop, 3, 0, 1, 1)
self.groupBox_train = QtWidgets.QGroupBox(self.page_sign)
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.groupBox_train.setFont(font)
self.groupBox_train.setObjectName("groupBox_train")
self.gridLayout = QtWidgets.QGridLayout(self.groupBox_train)
self.gridLayout.setObjectName("gridLayout")
self.label_9 = QtWidgets.QLabel(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.label_9.setFont(font)
self.label_9.setObjectName("label_9")
self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1)
self.lineEdit_2 = QtWidgets.QLineEdit(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.lineEdit_2.setFont(font)
self.lineEdit_2.setStyleSheet("background-color: rgb(69, 123, 157);\n"
"border-radius: 5px;\n"
"color: rgb(240, 240, 240);")
self.lineEdit_2.setAlignment(QtCore.Qt.AlignCenter)
self.lineEdit_2.setObjectName("lineEdit_2")
self.gridLayout.addWidget(self.lineEdit_2, 6, 1, 1, 1)
self.pushButton_3 = QtWidgets.QPushButton(self.groupBox_train)
self.pushButton_3.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_3.setText("")
icon15 = QtGui.QIcon()
icon15.addPixmap(QtGui.QPixmap(":/icons/icons/folder-plus.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_3.setIcon(icon15)
self.pushButton_3.setIconSize(QtCore.QSize(24, 24))
self.pushButton_3.setObjectName("pushButton_3")
self.gridLayout.addWidget(self.pushButton_3, 6, 3, 1, 1)
self.pushButton = QtWidgets.QPushButton(self.groupBox_train)
self.pushButton.setMinimumSize(QtCore.QSize(40, 0))
self.pushButton.setMaximumSize(QtCore.QSize(40, 16777215))
self.pushButton.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton.setText("")
icon16 = QtGui.QIcon()
icon16.addPixmap(QtGui.QPixmap(":/icons/icons/send.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton.setIcon(icon16)
self.pushButton.setIconSize(QtCore.QSize(24, 24))
self.pushButton.setObjectName("pushButton")
self.gridLayout.addWidget(self.pushButton, 4, 3, 1, 1)
self.label_18 = QtWidgets.QLabel(self.groupBox_train)
self.label_18.setText("")
self.label_18.setObjectName("label_18")
self.gridLayout.addWidget(self.label_18, 6, 2, 1, 1)
self.pushButton_5 = QtWidgets.QPushButton(self.groupBox_train)
self.pushButton_5.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_5.setText("")
self.pushButton_5.setIcon(icon11)
self.pushButton_5.setIconSize(QtCore.QSize(24, 24))
self.pushButton_5.setObjectName("pushButton_5")
self.gridLayout.addWidget(self.pushButton_5, 8, 3, 1, 1)
self.lineEdit = QtWidgets.QLineEdit(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.lineEdit.setFont(font)
self.lineEdit.setStyleSheet("background-color: rgb(69, 123, 157);\n"
"border-radius : 5px;\n"
"color: rgb(240, 240, 240);")
self.lineEdit.setAlignment(QtCore.Qt.AlignCenter)
self.lineEdit.setObjectName("lineEdit")
self.gridLayout.addWidget(self.lineEdit, 4, 1, 1, 1)
self.pushButton_2 = QtWidgets.QPushButton(self.groupBox_train)
self.pushButton_2.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_2.setText("")
icon17 = QtGui.QIcon()
icon17.addPixmap(QtGui.QPixmap(":/icons/icons/save.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_2.setIcon(icon17)
self.pushButton_2.setIconSize(QtCore.QSize(24, 24))
self.pushButton_2.setObjectName("pushButton_2")
self.gridLayout.addWidget(self.pushButton_2, 5, 3, 1, 1)
self.label_10 = QtWidgets.QLabel(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.label_10.setFont(font)
self.label_10.setObjectName("label_10")
self.gridLayout.addWidget(self.label_10, 4, 0, 1, 1)
self.pushButton_4 = QtWidgets.QPushButton(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.pushButton_4.setFont(font)
self.pushButton_4.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
icon18 = QtGui.QIcon()
icon18.addPixmap(QtGui.QPixmap(":/icons/icons/upload.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_4.setIcon(icon18)
self.pushButton_4.setObjectName("pushButton_4")
self.gridLayout.addWidget(self.pushButton_4, 7, 1, 1, 3)
self.label_15 = QtWidgets.QLabel(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.label_15.setFont(font)
self.label_15.setObjectName("label_15")
self.gridLayout.addWidget(self.label_15, 7, 0, 1, 1)
self.label_16 = QtWidgets.QLabel(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.label_16.setFont(font)
self.label_16.setObjectName("label_16")
self.gridLayout.addWidget(self.label_16, 8, 0, 1, 1)
self.label_13 = QtWidgets.QLabel(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.label_13.setFont(font)
self.label_13.setObjectName("label_13")
self.gridLayout.addWidget(self.label_13, 6, 0, 1, 1)
spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Maximum)
self.gridLayout.addItem(spacerItem2, 1, 0, 1, 1)
self.label_14 = QtWidgets.QLabel(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.label_14.setFont(font)
self.label_14.setStyleSheet("background-color: rgb(69, 123, 157);\n"
"border-radius: 5px;\n"
"color: rgb(240, 240, 240);")
self.label_14.setAlignment(QtCore.Qt.AlignCenter)
self.label_14.setObjectName("label_14")
self.gridLayout.addWidget(self.label_14, 2, 1, 1, 1)
self.listWidget = QtWidgets.QListWidget(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.listWidget.setFont(font)
self.listWidget.setStyleSheet("background-color:rgb(69, 123, 157);\n"
"border-radius: 10px;\n"
"color: rgb(240, 240, 240);")
self.listWidget.setObjectName("listWidget")
self.gridLayout.addWidget(self.listWidget, 5, 1, 1, 1)
self.label_17 = QtWidgets.QLabel(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.label_17.setFont(font)
self.label_17.setStyleSheet("background-color: rgb(69, 123, 157);\n"
"border-radius: 5px;\n"
"color: rgb(240, 240, 240);")
self.label_17.setAlignment(QtCore.Qt.AlignCenter)
self.label_17.setObjectName("label_17")
self.gridLayout.addWidget(self.label_17, 8, 1, 1, 1)
self.label_20 = QtWidgets.QLabel(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.label_20.setFont(font)
self.label_20.setObjectName("label_20")
self.gridLayout.addWidget(self.label_20, 9, 0, 1, 1)
self.textBox_label = QtWidgets.QLabel(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.textBox_label.setFont(font)
self.textBox_label.setObjectName("textBox_label")
self.gridLayout.addWidget(self.textBox_label, 9, 1, 1, 1)
self.resetTextBox_Button = QtWidgets.QPushButton(self.groupBox_train)
font = QtGui.QFont()
font.setPointSize(10)
self.resetTextBox_Button.setFont(font)
self.resetTextBox_Button.setObjectName("resetTextBox_Button")
self.gridLayout.addWidget(self.resetTextBox_Button, 9, 3, 1, 1)
self.gridLayout_2.addWidget(self.groupBox_train, 0, 1, 2, 1)
self.trainingBtn = QtWidgets.QPushButton(self.page_sign)
font = QtGui.QFont()
font.setPointSize(10)
self.trainingBtn.setFont(font)
self.trainingBtn.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.trainingBtn.setStyleSheet("QPushButton {\n"
" background-color: rgb(168, 218, 220);\n"
" padding: 5px 10px;\n"
" border-radius: 10px;\n"
"}\n"
"\n"
"QPushButton:hover{\n"
" background-color: rgb(158, 208, 210);\n"
"}")
icon19 = QtGui.QIcon()
icon19.addPixmap(QtGui.QPixmap(":/icons/icons/rotate-cw.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.trainingBtn.setIcon(icon19)
self.trainingBtn.setIconSize(QtCore.QSize(24, 24))
self.trainingBtn.setObjectName("trainingBtn")
self.gridLayout_2.addWidget(self.trainingBtn, 5, 0, 1, 1)
self.recognizeBtn = QtWidgets.QPushButton(self.page_sign)
font = QtGui.QFont()
font.setPointSize(10)
self.recognizeBtn.setFont(font)
self.recognizeBtn.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.recognizeBtn.setStyleSheet("QPushButton {\n"
" background-color: rgb(168, 218, 220);\n"
" padding: 5px 10px;\n"
" border-radius: 10px;\n"
"}\n"
"\n"
"QPushButton:hover{\n"
" background-color: rgb(158, 208, 210);\n"
"}")
icon20 = QtGui.QIcon()
icon20.addPixmap(QtGui.QPixmap(":/icons/icons/loader.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.recognizeBtn.setIcon(icon20)
self.recognizeBtn.setIconSize(QtCore.QSize(24, 24))
self.recognizeBtn.setObjectName("recognizeBtn")
self.gridLayout_2.addWidget(self.recognizeBtn, 5, 1, 1, 1)
self.stackedWidget_main.addWidget(self.page_sign)
self.page_shop = QtWidgets.QWidget()
self.page_shop.setObjectName("page_shop")
self.verticalLayout_18 = QtWidgets.QVBoxLayout(self.page_shop)
self.verticalLayout_18.setObjectName("verticalLayout_18")
self.graph_shop = QtWidgets.QVBoxLayout()
self.graph_shop.setObjectName("graph_shop")
self.verticalLayout_18.addLayout(self.graph_shop)
self.horizontalWidget = QtWidgets.QWidget(self.page_shop)
self.horizontalWidget.setObjectName("horizontalWidget")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.horizontalWidget)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem3)
self.shop_start = QtWidgets.QPushButton(self.horizontalWidget)
font = QtGui.QFont()
font.setPointSize(10)
self.shop_start.setFont(font)
self.shop_start.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.shop_start.setStyleSheet("QPushButton {\n"
" background-color: rgb(168, 218, 220);\n"
" padding: 5px 10px;\n"
" border-radius: 10px;\n"
"}\n"
"\n"
"QPushButton:hover{\n"
" background-color: rgb(158, 208, 210);\n"
"}")
icon21 = QtGui.QIcon()
icon21.addPixmap(QtGui.QPixmap(":/icons/icons/play.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.shop_start.setIcon(icon21)
self.shop_start.setIconSize(QtCore.QSize(24, 24))
self.shop_start.setCheckable(False)
self.shop_start.setObjectName("shop_start")
self.horizontalLayout_4.addWidget(self.shop_start)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem4)
self.verticalLayout_18.addWidget(self.horizontalWidget)
self.stackedWidget_main.addWidget(self.page_shop)
self.verticalLayout_15.addWidget(self.stackedWidget_main)
self.horizontalLayout_7.addWidget(self.mainContents)
self.right_menu = QtWidgets.QWidget(self.main_body_content)
self.right_menu.setMinimumSize(QtCore.QSize(200, 0))
self.right_menu.setObjectName("right_menu")
self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.right_menu)
self.verticalLayout_11.setObjectName("verticalLayout_11")
self.rightMenuSub = QtWidgets.QWidget(self.right_menu)
self.rightMenuSub.setMinimumSize(QtCore.QSize(200, 0))
self.rightMenuSub.setStyleSheet("background-color:#219EBC;\n"
"")
self.rightMenuSub.setObjectName("rightMenuSub")
self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.rightMenuSub)
self.verticalLayout_12.setObjectName("verticalLayout_12")
self.frame_7 = QtWidgets.QFrame(self.rightMenuSub)
self.frame_7.setStyleSheet("background-color: rgb(69, 123, 157);\n"
"border-radius:10px;")
self.frame_7.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_7.setObjectName("frame_7")
self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.frame_7)
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.label_5 = QtWidgets.QLabel(self.frame_7)
font = QtGui.QFont()
font.setPointSize(10)
self.label_5.setFont(font)
self.label_5.setAlignment(QtCore.Qt.AlignCenter)
self.label_5.setObjectName("label_5")
self.horizontalLayout_8.addWidget(self.label_5)
self.button_right_close = QtWidgets.QPushButton(self.frame_7)
self.button_right_close.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_right_close.setText("")
self.button_right_close.setIcon(icon7)
self.button_right_close.setIconSize(QtCore.QSize(24, 24))
self.button_right_close.setObjectName("button_right_close")
self.horizontalLayout_8.addWidget(self.button_right_close, 0, QtCore.Qt.AlignRight)
self.verticalLayout_12.addWidget(self.frame_7)
self.stackedWidget_right = QtWidgets.QStackedWidget(self.rightMenuSub)
self.stackedWidget_right.setObjectName("stackedWidget_right")
self.page_profile = QtWidgets.QWidget()
self.page_profile.setObjectName("page_profile")
self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.page_profile)
self.verticalLayout_13.setObjectName("verticalLayout_13")
self.label_6 = QtWidgets.QLabel(self.page_profile)
font = QtGui.QFont()
font.setPointSize(13)
font.setBold(False)
font.setWeight(50)
self.label_6.setFont(font)
self.label_6.setAlignment(QtCore.Qt.AlignCenter)
self.label_6.setObjectName("label_6")
self.verticalLayout_13.addWidget(self.label_6)
self.signed_in_as = QtWidgets.QLabel(self.page_profile)
self.signed_in_as.setWordWrap(True)
self.signed_in_as.setObjectName("signed_in_as")
self.verticalLayout_13.addWidget(self.signed_in_as)
self.no_of_usage = QtWidgets.QLabel(self.page_profile)
self.no_of_usage.setWordWrap(True)
self.no_of_usage.setObjectName("no_of_usage")
self.verticalLayout_13.addWidget(self.no_of_usage)
spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_13.addItem(spacerItem5)
self.stackedWidget_right.addWidget(self.page_profile)
self.page_more = QtWidgets.QWidget()
self.page_more.setObjectName("page_more")
self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.page_more)
self.verticalLayout_14.setObjectName("verticalLayout_14")
self.label_7 = QtWidgets.QLabel(self.page_more)
font = QtGui.QFont()
font.setPointSize(13)
font.setBold(False)
font.setWeight(50)
self.label_7.setFont(font)
self.label_7.setAlignment(QtCore.Qt.AlignCenter)
self.label_7.setObjectName("label_7")
self.verticalLayout_14.addWidget(self.label_7)
self.button_signout = QtWidgets.QPushButton(self.page_more)
font = QtGui.QFont()
font.setBold(False)
font.setUnderline(False)
font.setWeight(50)
self.button_signout.setFont(font)
self.button_signout.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_signout.setStyleSheet("QPushButton{\n"
" padding: 5px 10px;\n"
" background-color: rgb(43, 168, 198);\n"
"}\n"
"\n"
"QPushButton:hover{\n"
" background-color: rgb(23, 148, 178);\n"
"}")
self.button_signout.setObjectName("button_signout")
self.verticalLayout_14.addWidget(self.button_signout)
spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_14.addItem(spacerItem6)
self.stackedWidget_right.addWidget(self.page_more)
self.verticalLayout_12.addWidget(self.stackedWidget_right)
self.verticalLayout_11.addWidget(self.rightMenuSub)
self.horizontalLayout_7.addWidget(self.right_menu, 0, QtCore.Qt.AlignRight)
self.verticalLayout_10.addWidget(self.main_body_content)
self.popup_container = QtWidgets.QWidget(self.main_body)
self.popup_container.setObjectName("popup_container")
self.verticalLayout_19 = QtWidgets.QVBoxLayout(self.popup_container)
self.verticalLayout_19.setObjectName("verticalLayout_19")
self.popupMessageSub = QtWidgets.QWidget(self.popup_container)
self.popupMessageSub.setStyleSheet("background-color: rgb(69, 123, 157);\n"
"border-radius:10px;")
self.popupMessageSub.setObjectName("popupMessageSub")
self.verticalLayout_20 = QtWidgets.QVBoxLayout(self.popupMessageSub)
self.verticalLayout_20.setObjectName("verticalLayout_20")
self.label_12 = QtWidgets.QLabel(self.popupMessageSub)
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.label_12.setFont(font)
self.label_12.setObjectName("label_12")
self.verticalLayout_20.addWidget(self.label_12)
self.frame_8 = QtWidgets.QFrame(self.popupMessageSub)
self.frame_8.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_8.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_8.setObjectName("frame_8")
self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.frame_8)
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.label_notification = QtWidgets.QLabel(self.frame_8)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_notification.sizePolicy().hasHeightForWidth())
self.label_notification.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.label_notification.setFont(font)
self.label_notification.setAlignment(QtCore.Qt.AlignCenter)
self.label_notification.setObjectName("label_notification")
self.horizontalLayout_9.addWidget(self.label_notification)
self.button_notification_close = QtWidgets.QPushButton(self.frame_8)
self.button_notification_close.setEnabled(True)
self.button_notification_close.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_notification_close.setText("")
icon22 = QtGui.QIcon()
icon22.addPixmap(QtGui.QPixmap(":/icons/icons/x-octagon.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_notification_close.setIcon(icon22)
self.button_notification_close.setIconSize(QtCore.QSize(24, 24))
self.button_notification_close.setObjectName("button_notification_close")
self.horizontalLayout_9.addWidget(self.button_notification_close, 0, QtCore.Qt.AlignRight)
self.verticalLayout_20.addWidget(self.frame_8)
self.verticalLayout_19.addWidget(self.popupMessageSub)
self.verticalLayout_10.addWidget(self.popup_container)
self.horizontalLayout.addWidget(self.main_body)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.stackedWidget_side.setCurrentIndex(2)
self.stackedWidget_main.setCurrentIndex(1)
self.stackedWidget_right.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "GUI"))
self.MenuBtn.setToolTip(_translate("MainWindow", "Menu"))
self.button_home.setText(_translate("MainWindow", "Home"))
self.button_sign.setText(_translate("MainWindow", "Sign Language"))
self.button_shop.setText(_translate("MainWindow", "Shop Analyzer"))
self.button_pref.setToolTip(_translate("MainWindow", "Go to Settings"))
self.button_pref.setText(_translate("MainWindow", "Preferences"))
self.button_info.setToolTip(_translate("MainWindow", "Information About The App"))
self.button_info.setText(_translate("MainWindow", "Information"))
self.button_help.setToolTip(_translate("MainWindow", "Get More Help"))
self.button_help.setText(_translate("MainWindow", "Help"))
self.label.setText(_translate("MainWindow", "More..."))
self.label_2.setText(_translate("MainWindow", "Preferences"))
self.label_4.setText(_translate("MainWindow", "Help"))
self.label_3.setText(_translate("MainWindow", "Information"))
self.button_account.setToolTip(_translate("MainWindow", "Profile"))
self.button_more.setToolTip(_translate("MainWindow", "More"))
self.label_11.setText(_translate("MainWindow", "Gesture List :"))
self.label_sign.setText(_translate("MainWindow", "Sign Language"))
self.recognizeBox.setTitle(_translate("MainWindow", "Recognize"))
self.filleFound.setText(_translate("MainWindow", "-"))
self.fileName_line.setPlaceholderText(_translate("MainWindow", "Pickle File Name"))
self.training_label.setText(_translate("MainWindow", "Training File :"))
self.detected_label.setText(_translate("MainWindow", "-"))
self.label_19.setText(_translate("MainWindow", "Sign Detected :"))
self.resetTextBoxRecog_Button.setText(_translate("MainWindow", "Reset"))
self.label_21.setText(_translate("MainWindow", "Text Box :"))
self.textBoxRecog_label.setText(_translate("MainWindow", "-"))
self.sign_start.setText(_translate("MainWindow", "Start"))
self.sign_stop.setText(_translate("MainWindow", "Stop"))
self.groupBox_train.setTitle(_translate("MainWindow", "Train"))
self.label_9.setText(_translate("MainWindow", "Number of Gestures :"))
self.lineEdit_2.setPlaceholderText(_translate("MainWindow", "Pickle File Name"))
self.lineEdit.setPlaceholderText(_translate("MainWindow", "Gesture Name"))
self.label_10.setText(_translate("MainWindow", "Gesture Name :"))
self.pushButton_4.setText(_translate("MainWindow", "Start Train"))
self.label_15.setText(_translate("MainWindow", "Gesture No. "))
self.label_16.setText(_translate("MainWindow", "Word Detected :"))
self.label_13.setText(_translate("MainWindow", "File Name :"))
self.label_14.setText(_translate("MainWindow", "-"))
self.label_17.setText(_translate("MainWindow", "-"))
self.label_20.setText(_translate("MainWindow", "Text Box :"))
self.textBox_label.setText(_translate("MainWindow", "-"))
self.resetTextBox_Button.setText(_translate("MainWindow", "Reset"))
self.trainingBtn.setText(_translate("MainWindow", "Start Training"))
self.recognizeBtn.setText(_translate("MainWindow", "Start Recognize"))
self.shop_start.setText(_translate("MainWindow", "Start"))
self.label_5.setText(_translate("MainWindow", "More..."))
self.button_right_close.setToolTip(_translate("MainWindow", "Close Menu"))
self.label_6.setText(_translate("MainWindow", "Profile"))
self.signed_in_as.setText(_translate("MainWindow", "Signed in as:"))
self.no_of_usage.setText(_translate("MainWindow", "No. of usage before:"))
self.label_7.setText(_translate("MainWindow", "Sign out"))
self.button_signout.setText(_translate("MainWindow", "Sign out"))
self.label_12.setText(_translate("MainWindow", "Notification"))