-
Notifications
You must be signed in to change notification settings - Fork 1
/
lastGUIapp.py
1009 lines (1001 loc) · 59.1 KB
/
lastGUIapp.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
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(874, 476)
MainWindow.setStyleSheet(
"* {"
"border: 0;\n"
"color: #fff;\n"
"border-radius: 0;\n"
"}")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
self.header_frame = QtWidgets.QFrame(self.centralwidget)
self.header_frame.setStyleSheet("background-color: black;")
self.header_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.header_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.header_frame.setObjectName("header_frame")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.header_frame)
self.horizontalLayout.setContentsMargins(9, 9, 9, 9)
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.header_left_frame = QtWidgets.QFrame(self.header_frame)
self.header_left_frame.setMaximumSize(QtCore.QSize(148, 16777215))
self.header_left_frame.setStyleSheet("")
self.header_left_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.header_left_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.header_left_frame.setObjectName("header_left_frame")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.header_left_frame)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_4.setSpacing(0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.menu_button = QtWidgets.QPushButton(self.header_left_frame)
font = QtGui.QFont()
font.setPointSize(20)
font.setBold(True)
font.setWeight(75)
self.menu_button.setFont(font)
self.menu_button.setStyleSheet("border: none;")
self.menu_button.setStyleSheet("color: #42c3ca;")
self.menu_button.setStyleSheet(
"QPushButton::hover"
"{"
"color : #E0FFFF;"
"border: 1 solid transparent;"
"border-radius: 10;"
"}"
)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/feather/white/align-left.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.menu_button.setIcon(icon)
self.menu_button.setIconSize(QtCore.QSize(32, 32))
self.menu_button.setObjectName("menu_button")
self.horizontalLayout_4.addWidget(self.menu_button, 0, QtCore.Qt.AlignLeft)
self.horizontalLayout.addWidget(self.header_left_frame)
self.header_center_frame = QtWidgets.QFrame(self.header_frame)
self.header_center_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.header_center_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.header_center_frame.setObjectName("header_center_frame")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.header_center_frame)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.logo_label = QtWidgets.QLabel(self.header_center_frame)
self.logo_label.setText("")
self.logo_label.setObjectName("logo_label")
self.horizontalLayout_3.addWidget(self.logo_label, 0, QtCore.Qt.AlignRight)
self.app_name_label = QtWidgets.QLabel(self.header_center_frame)
font = QtGui.QFont()
font.setFamily("MS Shell Dlg 2")
font.setPointSize(17)
font.setBold(True)
font.setItalic(False)
font.setWeight(75)
font.setKerning(True)
self.app_name_label.setFont(font)
self.app_name_label.setObjectName("app_name_label")
self.horizontalLayout_3.addWidget(self.app_name_label)
self.horizontalLayout.addWidget(self.header_center_frame)
self.header_right_frame = QtWidgets.QFrame(self.header_frame)
self.header_right_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.header_right_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.header_right_frame.setObjectName("header_right_frame")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.header_right_frame)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setSpacing(10)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.min_win_button = QtWidgets.QPushButton(self.header_right_frame)
self.min_win_button.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icons/cil-minus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.min_win_button.setIcon(icon1)
self.min_win_button.setObjectName("min_win_button")
self.horizontalLayout_2.addWidget(self.min_win_button)
self.restore_win_button = QtWidgets.QPushButton(self.header_right_frame)
self.restore_win_button.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/icons/cil-window-restore.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.restore_win_button.setIcon(icon2)
self.restore_win_button.setObjectName("restore_win_button")
self.horizontalLayout_2.addWidget(self.restore_win_button)
self.close_win_button = QtWidgets.QPushButton(self.header_right_frame)
self.close_win_button.setMouseTracking(True)
self.close_win_button.setText("")
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/icons/cil-x.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.close_win_button.setIcon(icon3)
self.close_win_button.setIconSize(QtCore.QSize(16, 16))
self.close_win_button.setObjectName("close_win_button")
self.horizontalLayout_2.addWidget(self.close_win_button)
self.horizontalLayout.addWidget(self.header_right_frame, 0, QtCore.Qt.AlignRight)
self.verticalLayout.addWidget(self.header_frame, 0, QtCore.Qt.AlignTop)
self.mainBod_frame = QtWidgets.QFrame(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mainBod_frame.sizePolicy().hasHeightForWidth())
self.mainBod_frame.setSizePolicy(sizePolicy)
self.mainBod_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.mainBod_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.mainBod_frame.setObjectName("mainBod_frame")
#self.mainBod_frame.setStyleSheet("background: rgba(105,120,240,100);")
self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.mainBod_frame)
self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_8.setSpacing(0)
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.left_menu_frame = QtWidgets.QFrame(self.mainBod_frame)
self.left_menu_frame.setMinimumSize(QtCore.QSize(0, 0))
self.left_menu_frame.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.left_menu_frame.setStyleSheet("background-color:black;\n"
"border-right-color: rgb(173, 173, 173);\n"
"border-right: 1 solid rgb(173, 173, 173);\n"
"")
self.left_menu_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.left_menu_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.left_menu_frame.setObjectName("left_menu_frame")
self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.left_menu_frame)
self.horizontalLayout_9.setContentsMargins(0, 5, 6, 0)
self.horizontalLayout_9.setSpacing(0)
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.size_grip_2 = QtWidgets.QFrame(self.left_menu_frame)
self.size_grip_2.setStyleSheet("border: none;")
self.size_grip_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.size_grip_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.size_grip_2.setObjectName("size_grip_2")
self.horizontalLayout_9.addWidget(self.size_grip_2, 0, QtCore.Qt.AlignLeft)
self.menu_frame = QtWidgets.QFrame(self.left_menu_frame)
self.menu_frame.setMinimumSize(QtCore.QSize(0, 0))
self.menu_frame.setMaximumSize(QtCore.QSize(46, 16777215))
self.menu_frame.setStyleSheet("border: none;")
self.menu_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.menu_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.menu_frame.setObjectName("menu_frame")
self.gridLayout = QtWidgets.QGridLayout(self.menu_frame)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setHorizontalSpacing(0)
self.gridLayout.setVerticalSpacing(24)
self.gridLayout.setObjectName("gridLayout")
self.home_icon_button = QtWidgets.QPushButton(self.menu_frame)
self.home_icon_button.setMinimumSize(QtCore.QSize(50, 46))
self.home_icon_button.setStyleSheet("border: 1;")
self.home_icon_button.setStyleSheet("border-radius: 15;")
self.home_icon_button.setStyleSheet("border-left: 2px solid #42c3ca;")
self.home_icon_button.setStyleSheet(
"QPushButton::hover"
"{"
"background-color : #E0FFFF;"
"border: 1 solid transparent;"
"border-radius: 10;"
"}"
)
self.home_icon_button.setText("")
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/icons/feather/mauve/home.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.home_icon_button.setIcon(icon4)
self.home_icon_button.setIconSize(QtCore.QSize(32, 32))
self.home_icon_button.setObjectName("home_icon_button")
self.gridLayout.addWidget(self.home_icon_button, 0, 0, 1, 1, QtCore.Qt.AlignLeft)
self.infos_icon_button = QtWidgets.QPushButton(self.menu_frame)
self.infos_icon_button.setMinimumSize(QtCore.QSize(50, 46))
self.infos_icon_button.setText("")
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/icons/feather/mauve/info.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.infos_icon_button.setIcon(icon5)
self.infos_icon_button.setIconSize(QtCore.QSize(32, 32))
self.infos_icon_button.setObjectName("infos_icon_button")
self.infos_icon_button.setStyleSheet(
"QPushButton::hover"
"{"
"background-color : #E0FFFF;"
"border: 1 solid transparent;"
"border-radius: 10;"
"}"
)
self.gridLayout.addWidget(self.infos_icon_button, 2, 0, 1, 1, QtCore.Qt.AlignLeft)
self.statistic_icon_button = QtWidgets.QPushButton(self.menu_frame)
self.statistic_icon_button.setMinimumSize(QtCore.QSize(50, 46))
self.statistic_icon_button.setText("")
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/icons/feather/mauve/activity.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.statistic_icon_button.setIcon(icon6)
self.statistic_icon_button.setIconSize(QtCore.QSize(32, 32))
self.statistic_icon_button.setObjectName("statistic_icon_button")
self.statistic_icon_button.setStyleSheet(
"QPushButton::hover"
"{"
"background-color : #E0FFFF;"
"border: 1 solid transparent;"
"border-radius: 10;"
"}"
)
self.gridLayout.addWidget(self.statistic_icon_button, 1, 0, 1, 1, QtCore.Qt.AlignLeft)
self.home_label = QtWidgets.QLabel(self.menu_frame)
self.home_label.setMinimumSize(QtCore.QSize(91, 0))
font = QtGui.QFont()
font.setPointSize(11)
font.setBold(True)
font.setWeight(75)
self.home_label.setFont(font)
self.home_label.setStyleSheet("border-right: none;")
self.home_label.setObjectName("home_label")
self.gridLayout.addWidget(self.home_label, 0, 1, 1, 1, QtCore.Qt.AlignLeft)
self.statistic_label = QtWidgets.QLabel(self.menu_frame)
self.statistic_label.setMinimumSize(QtCore.QSize(91, 0))
font = QtGui.QFont()
font.setPointSize(11)
font.setBold(True)
font.setWeight(75)
self.statistic_label.setFont(font)
self.statistic_label.setObjectName("statistic_label")
self.gridLayout.addWidget(self.statistic_label, 1, 1, 1, 1, QtCore.Qt.AlignLeft)
self.infos_label = QtWidgets.QLabel(self.menu_frame)
self.infos_label.setMinimumSize(QtCore.QSize(91, 0))
font = QtGui.QFont()
font.setFamily("MS Shell Dlg 2")
font.setPointSize(11)
font.setBold(True)
font.setWeight(75)
self.infos_label.setFont(font)
self.infos_label.setObjectName("infos_label")
self.gridLayout.addWidget(self.infos_label, 2, 1, 1, 1, QtCore.Qt.AlignLeft)
self.home_label.raise_()
self.statistic_label.raise_()
self.infos_label.raise_()
self.home_icon_button.raise_()
self.statistic_icon_button.raise_()
self.infos_icon_button.raise_()
self.horizontalLayout_9.addWidget(self.menu_frame, 0, QtCore.Qt.AlignVCenter)
self.horizontalLayout_8.addWidget(self.left_menu_frame)
self.main_body_content = QtWidgets.QFrame(self.mainBod_frame)
self.main_body_content.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.main_body_content.setFrameShadow(QtWidgets.QFrame.Raised)
self.main_body_content.setObjectName("main_body_content")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.main_body_content)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.stackedWidget = QtWidgets.QStackedWidget(self.main_body_content)
self.stackedWidget.setObjectName("stackedWidget")
self.home_page = QtWidgets.QWidget()
self.home_page.setObjectName("home_page")
self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.home_page)
self.horizontalLayout_14.setObjectName("horizontalLayout_14")
self.main_container = QtWidgets.QFrame(self.home_page)
self.main_container.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.main_container.setFrameShadow(QtWidgets.QFrame.Raised)
self.main_container.setObjectName("main_container")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.main_container)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.photos_container_1 = QtWidgets.QFrame(self.main_container)
self.photos_container_1.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.photos_container_1.setFrameShadow(QtWidgets.QFrame.Raised)
self.photos_container_1.setObjectName("photos_container_1")
self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.photos_container_1)
self.horizontalLayout_11.setContentsMargins(-1, 0, -1, 0)
self.horizontalLayout_11.setObjectName("horizontalLayout_11")
self.photo_frame_1 = QtWidgets.QFrame(self.photos_container_1)
self.photo_frame_1.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.photo_frame_1.setFrameShadow(QtWidgets.QFrame.Raised)
self.photo_frame_1.setObjectName("photo_frame_1")
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.photo_frame_1)
self.verticalLayout_7.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.photo_1 = QtWidgets.QLabel(self.photo_frame_1)
self.photo_1.setStyleSheet("background-color: rgb(255, 255, 255);")
self.photo_1.setText("")
self.photo_1.setObjectName("photo_1")
self.photo_1.setScaledContents(True)
self.verticalLayout_7.addWidget(self.photo_1)
self.photo_1.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.class_label_1 = QtWidgets.QLabel(self.photo_frame_1)
self.class_label_1.setMaximumSize(QtCore.QSize(16777215, 22))
font = QtGui.QFont()
font.setPointSize(9)
font.setBold(False)
font.setWeight(50)
self.class_label_1.setFont(font)
self.class_label_1.setStyleSheet("background-color: transparent;")
self.class_label_1.setAlignment(QtCore.Qt.AlignCenter)
self.class_label_1.setObjectName("class_label_1")
self.class_label_1.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_7.addWidget(self.class_label_1)
self.horizontalLayout_11.addWidget(self.photo_frame_1)
self.photo_frame_2 = QtWidgets.QFrame(self.photos_container_1)
self.photo_frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.photo_frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.photo_frame_2.setObjectName("photo_frame_2")
self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.photo_frame_2)
self.verticalLayout_8.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.photo_2 = QtWidgets.QLabel(self.photo_frame_2)
self.photo_2.setStyleSheet("background-color: rgb(255, 255, 255);")
self.photo_2.setText("")
self.photo_2.setObjectName("photo_2")
self.photo_2.setScaledContents(True)
self.photo_2.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_8.addWidget(self.photo_2)
self.class_label_2 = QtWidgets.QLabel(self.photo_frame_2)
self.class_label_2.setMaximumSize(QtCore.QSize(16777215, 22))
font = QtGui.QFont()
font.setPointSize(9)
self.class_label_2.setFont(font)
self.class_label_2.setStyleSheet("background-color: transparent;")
self.class_label_2.setAlignment(QtCore.Qt.AlignCenter)
self.class_label_2.setObjectName("class_label_2")
self.class_label_2.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_8.addWidget(self.class_label_2)
self.horizontalLayout_11.addWidget(self.photo_frame_2)
self.photo_frame_3 = QtWidgets.QFrame(self.photos_container_1)
self.photo_frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.photo_frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
self.photo_frame_3.setObjectName("photo_frame_3")
self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.photo_frame_3)
self.verticalLayout_9.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_9.setObjectName("verticalLayout_9")
self.photo_3 = QtWidgets.QLabel(self.photo_frame_3)
self.photo_3.setStyleSheet("background-color: rgb(255, 255, 255);")
self.photo_3.setText("")
self.photo_3.setObjectName("photo_3")
self.photo_3.setScaledContents(True)
self.photo_3.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_9.addWidget(self.photo_3)
self.class_label_3 = QtWidgets.QLabel(self.photo_frame_3)
self.class_label_3.setMaximumSize(QtCore.QSize(16777215, 22))
font = QtGui.QFont()
font.setPointSize(9)
self.class_label_3.setFont(font)
self.class_label_3.setStyleSheet("background-color: transparent;")
self.class_label_3.setAlignment(QtCore.Qt.AlignCenter)
self.class_label_3.setObjectName("class_label_3")
self.class_label_3.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_9.addWidget(self.class_label_3)
self.horizontalLayout_11.addWidget(self.photo_frame_3)
self.verticalLayout_6.addWidget(self.photos_container_1)
self.photos_container_2 = QtWidgets.QFrame(self.main_container)
self.photos_container_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.photos_container_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.photos_container_2.setObjectName("photos_container_2")
self.horizontalLayout_15 = QtWidgets.QHBoxLayout(self.photos_container_2)
self.horizontalLayout_15.setContentsMargins(-1, 9, -1, 0)
self.horizontalLayout_15.setObjectName("horizontalLayout_15")
self.frame_2 = QtWidgets.QFrame(self.photos_container_2)
self.frame_2.setMinimumSize(QtCore.QSize(0, 0))
self.frame_2.setMaximumSize(QtCore.QSize(250, 16777215))
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.horizontalLayout_15.addWidget(self.frame_2)
self.frame = QtWidgets.QFrame(self.photos_container_2)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.verticalLayout_23 = QtWidgets.QVBoxLayout(self.frame)
self.verticalLayout_23.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_23.setObjectName("verticalLayout_23")
self.photo_4 = QtWidgets.QLabel(self.photos_container_2)
self.photo_4.setStyleSheet("background-color: rgb(255, 255, 255);")
self.photo_4.setText("")
self.photo_4.setObjectName("photo_4")
self.photo_4.setScaledContents(True)
self.photo_4.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_23.addWidget(self.photo_4)
self.class_label_4 = QtWidgets.QLabel(self.frame)
self.class_label_4.setMaximumSize(QtCore.QSize(16777215, 22))
font = QtGui.QFont()
font.setPointSize(9)
self.class_label_4.setFont(font)
self.class_label_4.setStyleSheet("background-color: transparent;")
self.class_label_4.setAlignment(QtCore.Qt.AlignCenter)
self.class_label_4.setObjectName("class_label_4")
self.verticalLayout_23.addWidget(self.class_label_4)
self.horizontalLayout_15.addWidget(self.frame)
self.frame_3 = QtWidgets.QFrame(self.photos_container_2)
self.frame_3.setMaximumSize(QtCore.QSize(250, 16777215))
self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_3.setObjectName("frame_3")
self.horizontalLayout_15.addWidget(self.frame_3)
self.verticalLayout_6.addWidget(self.photos_container_2)
self.buttons_container = QtWidgets.QFrame(self.main_container)
self.buttons_container.setMinimumSize(QtCore.QSize(0, 0))
self.buttons_container.setMaximumSize(QtCore.QSize(16777215, 27))
self.buttons_container.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.buttons_container.setFrameShadow(QtWidgets.QFrame.Raised)
self.buttons_container.setObjectName("buttons_container")
self.horizontalLayout_13 = QtWidgets.QHBoxLayout(self.buttons_container)
self.horizontalLayout_13.setContentsMargins(-1, 0, -1, 0)
self.horizontalLayout_13.setObjectName("horizontalLayout_13")
self.openFile_button = QtWidgets.QPushButton(self.buttons_container)
self.openFile_button.setMaximumSize(QtCore.QSize(120, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
self.openFile_button.setFont(font)
self.openFile_button.setStyleSheet("background-color: #4e45ff;")
self.openFile_button.setObjectName("openFile_button")
self.horizontalLayout_13.addWidget(self.openFile_button, 0, QtCore.Qt.AlignVCenter)
self.classify_button = QtWidgets.QPushButton(self.buttons_container)
self.classify_button.setMaximumSize(QtCore.QSize(100, 16777215))
font = QtGui.QFont()
font.setPointSize(10)
self.classify_button.setFont(font)
self.classify_button.setObjectName("classify_button")
self.classify_button.setStyleSheet("background-color: #4e45ff;")
self.horizontalLayout_13.addWidget(self.classify_button, 0, QtCore.Qt.AlignVCenter)
self.verticalLayout_6.addWidget(self.buttons_container)
self.photos_container_3 = QtWidgets.QFrame(self.main_container)
self.photos_container_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.photos_container_3.setFrameShadow(QtWidgets.QFrame.Raised)
self.photos_container_3.setObjectName("photos_container_3")
self.horizontalLayout_12 = QtWidgets.QHBoxLayout(self.photos_container_3)
self.horizontalLayout_12.setContentsMargins(-1, 0, -1, 0)
self.horizontalLayout_12.setObjectName("horizontalLayout_12")
self.photo_frame_4 = QtWidgets.QFrame(self.photos_container_3)
self.photo_frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.photo_frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
self.photo_frame_4.setObjectName("photo_frame_4")
self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.photo_frame_4)
self.verticalLayout_11.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_11.setObjectName("verticalLayout_11")
self.photo_5 = QtWidgets.QLabel(self.photo_frame_4)
self.photo_5.setStyleSheet("background-color: rgb(255, 255, 255);")
self.photo_5.setText("")
self.photo_5.setObjectName("photo_5")
self.photo_5.setScaledContents(True)
self.photo_5.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_11.addWidget(self.photo_5)
self.class_label_5 = QtWidgets.QLabel(self.photo_frame_4)
self.class_label_5.setMaximumSize(QtCore.QSize(16777215, 22))
font = QtGui.QFont()
font.setPointSize(9)
self.class_label_5.setFont(font)
self.class_label_5.setStyleSheet("background-color:transparent;")
self.class_label_5.setAlignment(QtCore.Qt.AlignCenter)
self.class_label_5.setObjectName("class_label_5")
self.class_label_5.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_11.addWidget(self.class_label_5)
self.horizontalLayout_12.addWidget(self.photo_frame_4)
self.photo_frame_5 = QtWidgets.QFrame(self.photos_container_3)
self.photo_frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.photo_frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
self.photo_frame_5.setObjectName("photo_frame_5")
self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.photo_frame_5)
self.verticalLayout_12.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_12.setObjectName("verticalLayout_12")
self.photo_6 = QtWidgets.QLabel(self.photo_frame_5)
self.photo_6.setStyleSheet("background-color: rgb(255, 255, 255);")
self.photo_6.setText("")
self.photo_6.setObjectName("photo_6")
self.photo_6.setScaledContents(True)
self.photo_6.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_12.addWidget(self.photo_6)
self.class_label_6 = QtWidgets.QLabel(self.photo_frame_5)
self.class_label_6.setMaximumSize(QtCore.QSize(16777215, 22))
font = QtGui.QFont()
font.setPointSize(9)
self.class_label_6.setFont(font)
self.class_label_6.setStyleSheet("background-color: transparent;")
self.class_label_6.setAlignment(QtCore.Qt.AlignCenter)
self.class_label_6.setObjectName("class_label_6")
self.class_label_6.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_12.addWidget(self.class_label_6)
self.horizontalLayout_12.addWidget(self.photo_frame_5)
self.photo_frame_6 = QtWidgets.QFrame(self.photos_container_3)
self.photo_frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.photo_frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
self.photo_frame_6.setObjectName("photo_frame_6")
self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.photo_frame_6)
self.verticalLayout_13.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_13.setObjectName("verticalLayout_13")
self.photo_7 = QtWidgets.QLabel(self.photo_frame_6)
self.photo_7.setStyleSheet("background-color: rgb(255, 255, 255);")
self.photo_7.setText("")
self.photo_7.setObjectName("photo_7")
self.photo_7.setScaledContents(True)
self.photo_7.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_13.addWidget(self.photo_7)
self.class_label_7 = QtWidgets.QLabel(self.photo_frame_6)
self.class_label_7.setMaximumSize(QtCore.QSize(16777215, 22))
font = QtGui.QFont()
font.setPointSize(9)
self.class_label_7.setFont(font)
self.class_label_7.setStyleSheet("background-color: transparent;")
self.class_label_7.setAlignment(QtCore.Qt.AlignCenter)
self.class_label_7.setObjectName("class_label_7")
self.class_label_7.setAlignment(
QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter)
self.verticalLayout_13.addWidget(self.class_label_7)
self.horizontalLayout_12.addWidget(self.photo_frame_6)
self.verticalLayout_6.addWidget(self.photos_container_3)
self.horizontalLayout_14.addWidget(self.main_container)
self.stackedWidget.addWidget(self.home_page)
self.statistics_page = QtWidgets.QWidget()
self.statistics_page.setObjectName("statistics_page")
self.verticalLayout_16 = QtWidgets.QVBoxLayout(self.statistics_page)
self.verticalLayout_16.setObjectName("verticalLayout_16")
self.statistics_frame = QtWidgets.QFrame(self.statistics_page)
self.statistics_frame.setMaximumSize(QtCore.QSize(16777215, 172))
self.statistics_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.statistics_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.statistics_frame.setObjectName("statistics_frame")
# self.statistics_frame.setStyleSheet("color: black;")
self.verticalLayout_22 = QtWidgets.QVBoxLayout(self.statistics_frame)
self.verticalLayout_22.setContentsMargins(30, 0, 30, 0)
self.verticalLayout_22.setSpacing(18)
self.verticalLayout_22.setObjectName("verticalLayout_22")
self.statistics_title_label = QtWidgets.QLabel(self.statistics_frame)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.statistics_title_label.setFont(font)
self.statistics_title_label.setObjectName("statistics_title_label")
self.verticalLayout_22.addWidget(self.statistics_title_label)
self.cards_frame = QtWidgets.QFrame(self.statistics_frame)
self.cards_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.cards_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.cards_frame.setObjectName("cards_frame")
self.horizontalLayout_22 = QtWidgets.QHBoxLayout(self.cards_frame)
self.horizontalLayout_22.setSpacing(40)
self.horizontalLayout_22.setObjectName("horizontalLayout_22")
self.defected_card_frame = QtWidgets.QFrame(self.cards_frame)
self.defected_card_frame.setStyleSheet("background-color:#42c3ca;\n"
"border-radius: 10;")
self.defected_card_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.defected_card_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.defected_card_frame.setObjectName("defected_card_frame")
self.horizontalLayout_17 = QtWidgets.QHBoxLayout(self.defected_card_frame)
self.horizontalLayout_17.setContentsMargins(10, -1, 10, -1)
self.horizontalLayout_17.setSpacing(6)
self.horizontalLayout_17.setObjectName("horizontalLayout_17")
self.defected_title_num_frame = QtWidgets.QFrame(self.defected_card_frame)
self.defected_title_num_frame.setStyleSheet("")
self.defected_title_num_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.defected_title_num_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.defected_title_num_frame.setObjectName("defected_title_num_frame")
self.verticalLayout_17 = QtWidgets.QVBoxLayout(self.defected_title_num_frame)
self.verticalLayout_17.setObjectName("verticalLayout_17")
self.defected_title_frame = QtWidgets.QLabel(self.defected_title_num_frame)
font = QtGui.QFont()
font.setFamily("MS Shell Dlg 2")
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.defected_title_frame.setFont(font)
self.defected_title_frame.setObjectName("defected_title_frame")
self.verticalLayout_17.addWidget(self.defected_title_frame)
self.defected_num_frame = QtWidgets.QLabel(self.defected_title_num_frame)
font = QtGui.QFont()
font.setPointSize(10)
self.defected_num_frame.setFont(font)
self.defected_num_frame.setObjectName("defected_num_frame")
self.verticalLayout_17.addWidget(self.defected_num_frame)
self.horizontalLayout_17.addWidget(self.defected_title_num_frame)
self.defected_card_icon_frame = QtWidgets.QLabel(self.defected_card_frame)
self.defected_card_icon_frame.setMinimumSize(QtCore.QSize(0, 0))
self.defected_card_icon_frame.setMaximumSize(QtCore.QSize(80, 80))
self.defected_card_icon_frame.setText("")
self.defected_card_icon_frame.setPixmap(QtGui.QPixmap("./Images/11152_prev_ui.png"))
self.defected_card_icon_frame.setScaledContents(True)
self.defected_card_icon_frame.setObjectName("defected_card_icon_frame")
self.horizontalLayout_17.addWidget(self.defected_card_icon_frame)
self.horizontalLayout_22.addWidget(self.defected_card_frame)
self.good_card_frame = QtWidgets.QFrame(self.cards_frame)
self.good_card_frame.setStyleSheet("background-color:#6978f0;\n"
"border-radius: 10;")
self.good_card_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.good_card_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.good_card_frame.setObjectName("good_card_frame")
self.horizontalLayout_18 = QtWidgets.QHBoxLayout(self.good_card_frame)
self.horizontalLayout_18.setObjectName("horizontalLayout_18")
self.good_title_num_frame = QtWidgets.QFrame(self.good_card_frame)
self.good_title_num_frame.setStyleSheet("")
self.good_title_num_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.good_title_num_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.good_title_num_frame.setObjectName("good_title_num_frame")
self.verticalLayout_18 = QtWidgets.QVBoxLayout(self.good_title_num_frame)
self.verticalLayout_18.setObjectName("verticalLayout_18")
self.good_title_frame = QtWidgets.QLabel(self.good_title_num_frame)
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.good_title_frame.setFont(font)
self.good_title_frame.setObjectName("good_title_frame")
self.verticalLayout_18.addWidget(self.good_title_frame)
self.good_num_frame = QtWidgets.QLabel(self.good_title_num_frame)
font = QtGui.QFont()
font.setPointSize(10)
self.good_num_frame.setFont(font)
self.good_num_frame.setObjectName("good_num_frame")
self.verticalLayout_18.addWidget(self.good_num_frame)
self.horizontalLayout_18.addWidget(self.good_title_num_frame, 0, QtCore.Qt.AlignLeft)
self.good_card_icon_frame = QtWidgets.QLabel(self.good_card_frame)
self.good_card_icon_frame.setMaximumSize(QtCore.QSize(80, 80))
font = QtGui.QFont()
font.setPointSize(6)
self.good_card_icon_frame.setFont(font)
self.good_card_icon_frame.setText("")
self.good_card_icon_frame.setPixmap(QtGui.QPixmap("./Images/slazzer-edit-image (1).png"))
self.good_card_icon_frame.setScaledContents(True)
self.good_card_icon_frame.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.good_card_icon_frame.setWordWrap(False)
self.good_card_icon_frame.setIndent(-1)
self.good_card_icon_frame.setObjectName("good_card_icon_frame")
self.horizontalLayout_18.addWidget(self.good_card_icon_frame, 0, QtCore.Qt.AlignHCenter)
self.horizontalLayout_22.addWidget(self.good_card_frame)
self.verticalLayout_22.addWidget(self.cards_frame)
self.verticalLayout_16.addWidget(self.statistics_frame)
self.plots_frame = QtWidgets.QFrame(self.statistics_page)
self.plots_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.plots_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.plots_frame.setObjectName("plots_frame")
self.plots_frame.setStyleSheet("color: black;")
self.horizontalLayout_16 = QtWidgets.QHBoxLayout(self.plots_frame)
self.horizontalLayout_16.setContentsMargins(37, -1, 37, -1)
self.horizontalLayout_16.setSpacing(40)
self.horizontalLayout_16.setObjectName("horizontalLayout_16")
self.plot_frame_1 = QtWidgets.QFrame(self.plots_frame)
self.plot_frame_1.setStyleSheet("")
self.plot_frame_1.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.plot_frame_1.setFrameShadow(QtWidgets.QFrame.Raised)
self.plot_frame_1.setObjectName("plot_frame_1")
self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.plot_frame_1)
self.verticalLayout_10.setObjectName("verticalLayout_10")
self.chart_frame = QtWidgets.QFrame(self.plot_frame_1)
self.chart_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.chart_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.chart_frame.setObjectName("chart_frame")
self.verticalLayout_10.addWidget(self.chart_frame)
self.horizontalLayout_16.addWidget(self.plot_frame_1)
self.verticalLayout_16.addWidget(self.plots_frame)
self.percentage_bar_chart_cont = QtWidgets.QGridLayout(self.chart_frame)
self.percentage_bar_chart_cont.setObjectName(u"percentage_bar_chart_cont")
self.app_performance_frame = QtWidgets.QFrame(self.statistics_page)
self.app_performance_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.app_performance_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.app_performance_frame.setObjectName("app_performance_frame")
#self.app_performance_frame.setStyleSheet("color: black;")
self.verticalLayout_21 = QtWidgets.QVBoxLayout(self.app_performance_frame)
self.verticalLayout_21.setContentsMargins(30, 0, 30, 0)
self.verticalLayout_21.setSpacing(0)
self.verticalLayout_21.setObjectName("verticalLayout_21")
self.app_performance_label = QtWidgets.QLabel(self.app_performance_frame)
self.app_performance_label.setMaximumSize(QtCore.QSize(16777215, 19))
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.app_performance_label.setFont(font)
self.app_performance_label.setObjectName("app_performance_label")
self.verticalLayout_21.addWidget(self.app_performance_label, 0, QtCore.Qt.AlignBottom)
self.performance_details_frame = QtWidgets.QFrame(self.app_performance_frame)
self.performance_details_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.performance_details_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.performance_details_frame.setObjectName("performance_details_frame")
self.horizontalLayout_21 = QtWidgets.QHBoxLayout(self.performance_details_frame)
self.horizontalLayout_21.setObjectName("horizontalLayout_21")
self.accuracy_speed_frame = QtWidgets.QFrame(self.performance_details_frame)
self.accuracy_speed_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.accuracy_speed_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.accuracy_speed_frame.setObjectName("accuracy_speed_frame")
self.verticalLayout_19 = QtWidgets.QVBoxLayout(self.accuracy_speed_frame)
self.verticalLayout_19.setObjectName("verticalLayout_19")
self.accuracy_label = QtWidgets.QLabel(self.accuracy_speed_frame)
font = QtGui.QFont()
font.setPointSize(11)
self.accuracy_label.setFont(font)
self.accuracy_label.setObjectName("accuracy_label")
self.verticalLayout_19.addWidget(self.accuracy_label)
self.speed_label = QtWidgets.QLabel(self.accuracy_speed_frame)
font = QtGui.QFont()
font.setPointSize(11)
self.speed_label.setFont(font)
self.speed_label.setObjectName("speed_label")
self.verticalLayout_19.addWidget(self.speed_label)
self.horizontalLayout_21.addWidget(self.accuracy_speed_frame)
self.accuracy_speed_bars_frame = QtWidgets.QFrame(self.performance_details_frame)
self.accuracy_speed_bars_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.accuracy_speed_bars_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.accuracy_speed_bars_frame.setObjectName("accuracy_speed_bars_frame")
self.verticalLayout_20 = QtWidgets.QVBoxLayout(self.accuracy_speed_bars_frame)
self.verticalLayout_20.setObjectName("verticalLayout_20")
self.acuuracy_bars_label = QtWidgets.QLabel(self.accuracy_speed_bars_frame)
self.acuuracy_bars_label.setMinimumSize(QtCore.QSize(0, 0))
self.acuuracy_bars_label.setMaximumSize(QtCore.QSize(500, 15))
self.acuuracy_bars_label.setStyleSheet("background-color:#6978f0;")
self.acuuracy_bars_label.setText("")
self.acuuracy_bars_label.setObjectName("acuuracy_bars_label")
self.verticalLayout_20.addWidget(self.acuuracy_bars_label)
self.speed_bars_label = QtWidgets.QLabel(self.accuracy_speed_bars_frame)
self.speed_bars_label.setMaximumSize(QtCore.QSize(360, 15))
self.speed_bars_label.setStyleSheet("background-color:#6978f0;")
self.speed_bars_label.setText("")
self.speed_bars_label.setObjectName("speed_bars_label")
self.verticalLayout_20.addWidget(self.speed_bars_label)
self.horizontalLayout_21.addWidget(self.accuracy_speed_bars_frame)
self.verticalLayout_21.addWidget(self.performance_details_frame)
self.verticalLayout_16.addWidget(self.app_performance_frame)
self.stackedWidget.addWidget(self.statistics_page)
self.infos_page = QtWidgets.QWidget()
self.infos_page.setObjectName("infos_page")
#self.infos_page.setStyleSheet("color: black;")
self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.infos_page)
self.horizontalLayout_10.setObjectName("horizontalLayout_10")
self.infos_frame = QtWidgets.QFrame(self.infos_page)
self.infos_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.infos_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.infos_frame.setObjectName("infos_frame")
self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.infos_frame)
self.verticalLayout_10.setObjectName("verticalLayout_10")
self.welcome_label = QtWidgets.QLabel(self.infos_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.welcome_label.sizePolicy().hasHeightForWidth())
self.welcome_label.setSizePolicy(sizePolicy)
self.welcome_label.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(14)
self.welcome_label.setFont(font)
self.welcome_label.setAlignment(QtCore.Qt.AlignCenter)
self.welcome_label.setWordWrap(True)
self.welcome_label.setObjectName("welcome_label")
self.verticalLayout_10.addWidget(self.welcome_label, 0, QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter)
self.infos_frame_2 = QtWidgets.QFrame(self.infos_frame)
self.infos_frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.infos_frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.infos_frame_2.setObjectName("infos_frame_2")
self.verticalLayout_24 = QtWidgets.QVBoxLayout(self.infos_frame_2)
self.verticalLayout_24.setObjectName("verticalLayout_24")
self.add_label = QtWidgets.QFrame(self.infos_frame_2)
self.add_label.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.add_label.setFrameShadow(QtWidgets.QFrame.Raised)
self.add_label.setObjectName("add_label")
self.horizontalLayout_19 = QtWidgets.QHBoxLayout(self.add_label)
self.horizontalLayout_19.setObjectName("horizontalLayout_19")
self.verticalLayout_24.addWidget(self.add_label)
self.addresse_label = QtWidgets.QLabel(self.infos_frame_2)
font = QtGui.QFont()
font.setPointSize(10)
self.addresse_label.setFont(font)
self.addresse_label.setObjectName("addresse_label")
self.verticalLayout_24.addWidget(self.addresse_label)
self.telephone_label = QtWidgets.QLabel(self.infos_frame_2)
font = QtGui.QFont()
font.setPointSize(10)
self.telephone_label.setFont(font)
self.telephone_label.setObjectName("telephone_label")
self.verticalLayout_24.addWidget(self.telephone_label)
self.mail_label = QtWidgets.QLabel(self.infos_frame_2)
font = QtGui.QFont()
font.setPointSize(10)
self.mail_label.setFont(font)
self.mail_label.setObjectName("mail_label")
self.verticalLayout_24.addWidget(self.mail_label)
self.frame_complement_1 = QtWidgets.QFrame(self.infos_frame_2)
self.frame_complement_1.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_complement_1.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_complement_1.setObjectName("frame_complement_1")
self.horizontalLayout_20 = QtWidgets.QHBoxLayout(self.frame_complement_1)
self.horizontalLayout_20.setObjectName("horizontalLayout_20")
self.verticalLayout_24.addWidget(self.frame_complement_1)
self.frame_complement_2 = QtWidgets.QFrame(self.infos_frame_2)
self.frame_complement_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_complement_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_complement_2.setObjectName("frame_complement_2")
self.horizontalLayout_23 = QtWidgets.QHBoxLayout(self.frame_complement_2)
self.horizontalLayout_23.setObjectName("horizontalLayout_23")
self.verticalLayout_24.addWidget(self.frame_complement_2)
self.verticalLayout_10.addWidget(self.infos_frame_2)
self.horizontalLayout_10.addWidget(self.infos_frame)
self.stackedWidget.addWidget(self.infos_page)
self.verticalLayout_5.addWidget(self.stackedWidget)
self.horizontalLayout_8.addWidget(self.main_body_content)
self.right_menu_frame = QtWidgets.QFrame(self.mainBod_frame)
self.right_menu_frame.setStyleSheet("background-color: black;\n"
"")
self.right_menu_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.right_menu_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.right_menu_frame.setObjectName("right_menu_frame")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.right_menu_frame)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.more_title_frame = QtWidgets.QFrame(self.right_menu_frame)
self.more_title_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.more_title_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.more_title_frame.setObjectName("more_title_frame")
self.verticalLayout_15 = QtWidgets.QVBoxLayout(self.more_title_frame)
self.verticalLayout_15.setObjectName("verticalLayout_15")
self.more_title_label = QtWidgets.QLabel(self.more_title_frame)
font = QtGui.QFont()
font.setFamily("Calibri")
font.setPointSize(20)
font.setBold(True)
font.setWeight(75)
self.more_title_label.setFont(font)
self.more_title_label.setStyleSheet("color: #6978f0;")
self.more_title_label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.more_title_label.setObjectName("more_title_label")
self.verticalLayout_15.addWidget(self.more_title_label)
self.verticalLayout_2.addWidget(self.more_title_frame)
self.instructions_frame = QtWidgets.QFrame(self.right_menu_frame)
self.instructions_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.instructions_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.instructions_frame.setObjectName("instructions_frame")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.instructions_frame)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.instruction_title_label = QtWidgets.QLabel(self.instructions_frame)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.instruction_title_label.setFont(font)
self.instruction_title_label.setStyleSheet("color: #6978f0;")
self.instruction_title_label.setObjectName("instruction_title_label")
self.verticalLayout_3.addWidget(self.instruction_title_label)
self.instruction_label_1 = QtWidgets.QLabel(self.instructions_frame)
font = QtGui.QFont()
font.setPointSize(10)
self.instruction_label_1.setFont(font)
self.instruction_label_1.setObjectName("instruction_label_1")
self.verticalLayout_3.addWidget(self.instruction_label_1)
self.instruction_label_2 = QtWidgets.QLabel(self.instructions_frame)
font = QtGui.QFont()
font.setPointSize(10)
self.instruction_label_2.setFont(font)
self.instruction_label_2.setObjectName("instruction_label_2")
self.verticalLayout_3.addWidget(self.instruction_label_2)
self.instruction_label_3 = QtWidgets.QLabel(self.instructions_frame)
font = QtGui.QFont()
font.setPointSize(10)
self.instruction_label_3.setFont(font)
self.instruction_label_3.setObjectName("instruction_label_3")
self.verticalLayout_3.addWidget(self.instruction_label_3)
self.instruction_label_4 = QtWidgets.QLabel(self.instructions_frame)
font = QtGui.QFont()
font.setPointSize(10)
self.instruction_label_4.setFont(font)
self.instruction_label_4.setObjectName("instruction_label_4")
self.verticalLayout_3.addWidget(self.instruction_label_4)
self.verticalLayout_2.addWidget(self.instructions_frame)
self.options_frame = QtWidgets.QFrame(self.right_menu_frame)
self.options_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.options_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.options_frame.setObjectName("options_frame")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.options_frame)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.options_title_label = QtWidgets.QLabel(self.options_frame)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.options_title_label.setFont(font)
self.options_title_label.setStyleSheet("color: #6978f0;")
self.options_title_label.setObjectName("options_title_label")
self.verticalLayout_4.addWidget(self.options_title_label, 0, QtCore.Qt.AlignBottom)
self.options_checkox_frame = QtWidgets.QFrame(self.options_frame)
self.options_checkox_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.options_checkox_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.options_checkox_frame.setObjectName("options_checkox_frame")
self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.options_checkox_frame)
self.verticalLayout_14.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_14.setSpacing(7)
self.verticalLayout_14.setObjectName("verticalLayout_14")
self.options_checkox_1 = QtWidgets.QCheckBox(self.options_checkox_frame)
font = QtGui.QFont()
font.setPointSize(10)
self.options_checkox_1.setFont(font)
self.options_checkox_1.setObjectName("options_checkox_1")
self.verticalLayout_14.addWidget(self.options_checkox_1)
self.options_checkox_2 = QtWidgets.QCheckBox(self.options_checkox_frame)
font = QtGui.QFont()
font.setPointSize(10)
self.options_checkox_2.setFont(font)
self.options_checkox_2.setObjectName("options_checkox_2")
self.verticalLayout_14.addWidget(self.options_checkox_2)
self.verticalLayout_4.addWidget(self.options_checkox_frame, 0, QtCore.Qt.AlignTop)
self.verticalLayout_2.addWidget(self.options_frame)
self.horizontalLayout_8.addWidget(self.right_menu_frame)
self.verticalLayout.addWidget(self.mainBod_frame)
self.footer_frame = QtWidgets.QFrame(self.centralwidget)
self.footer_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.footer_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.footer_frame.setObjectName("footer_frame")
self.footer_frame.setStyleSheet("color: #fff;")
#self.footer_frame.setStyleSheet("background-color:#1f2029;")
self.footer_frame.setStyleSheet("background-color: black;")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.footer_frame)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.horizontalLayout_5.setContentsMargins(9, 9, 9, 9)
self.footer_left_frame = QtWidgets.QFrame(self.footer_frame)
self.footer_left_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.footer_left_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.footer_left_frame.setObjectName("footer_left_frame")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.footer_left_frame)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.copyright_label = QtWidgets.QLabel(self.footer_left_frame)
self.copyright_label.setWordWrap(False)
self.copyright_label.setObjectName("copyright_label")
self.horizontalLayout_6.addWidget(self.copyright_label, 0, QtCore.Qt.AlignLeft)
self.horizontalLayout_5.addWidget(self.footer_left_frame)
self.footer_right_frame = QtWidgets.QFrame(self.footer_frame)
self.footer_right_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.footer_right_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.footer_right_frame.setObjectName("footer_right_frame")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.footer_right_frame)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.help_button = QtWidgets.QPushButton(self.footer_right_frame)
self.help_button.setText("")
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap(":/icons/feather/white/help-circle.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.help_button.setIcon(icon7)
self.help_button.setObjectName("help_button")
self.horizontalLayout_7.addWidget(self.help_button)
self.horizontalLayout_5.addWidget(self.footer_right_frame, 0, QtCore.Qt.AlignRight)
self.size_grip = QtWidgets.QFrame(self.footer_frame)
self.size_grip.setMinimumSize(QtCore.QSize(10, 10))
self.size_grip.setMaximumSize(QtCore.QSize(10, 10))
self.size_grip.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.size_grip.setFrameShadow(QtWidgets.QFrame.Raised)
self.size_grip.setObjectName("size_grip")
self.horizontalLayout_5.addWidget(self.size_grip, 0, QtCore.Qt.AlignBottom)
self.verticalLayout.addWidget(self.footer_frame, 0, QtCore.Qt.AlignBottom)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.stackedWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.menu_button.setText(_translate("MainWindow", "Menu"))
self.app_name_label.setText(_translate("MainWindow", "Visual Inspection"))
self.home_label.setText(_translate("MainWindow", "Home"))
self.statistic_label.setText(_translate("MainWindow", "Statistics"))
self.infos_label.setText(_translate("MainWindow", "Infos"))
self.openFile_button.setText(_translate("MainWindow", "Open Folder"))
self.classify_button.setText(_translate("MainWindow", "Classify"))
self.statistics_title_label.setText(_translate("MainWindow", "Statistics"))
self.defected_title_frame.setText(_translate("MainWindow", "Defected Cans"))
self.defected_num_frame.setText(_translate("MainWindow", "200"))
self.good_title_frame.setText(_translate("MainWindow", "Good Cans"))
self.good_num_frame.setText(_translate("MainWindow", "100"))
self.app_performance_label.setText(_translate("MainWindow", "App Performance"))
self.accuracy_label.setText(_translate("MainWindow", "Accuracy"))
self.speed_label.setText(_translate("MainWindow", "Speed"))
self.welcome_label.setText(_translate("MainWindow",
"Bienvenue chez Concept Les Frère. Nous sommes engagés auprès de nos clients à toujours livrer des projets et solutions dans le domaine de construction, robotique et de nouveau technologie pour plus d\'informations vous pouvez nous contactez sur :"))
self.addresse_label.setText(_translate("MainWindow", "Addresse: 8PGR+R8J SIDI BOUZID SAFI"))
self.telephone_label.setText(_translate("MainWindow", "Tél: 0697968559"))
self.mail_label.setText(_translate("MainWindow", "Mail: karwawiali@gmail.com"))
self.more_title_label.setText(_translate("MainWindow", ""))
self.instruction_title_label.setText(_translate("MainWindow", "Instructions"))
self.instruction_label_1.setText(_translate("MainWindow", "1. Click Browse file"))
self.instruction_label_2.setText(_translate("MainWindow", "2. Choose options"))
self.instruction_label_3.setText(_translate("MainWindow", "3. Click Classify"))
self.instruction_label_4.setText(_translate("MainWindow", "4. Explore features in the menu bar"))
self.options_title_label.setText(_translate("MainWindow", "Options"))
self.options_checkox_1.setText(_translate("MainWindow", "Heatmap"))
self.options_checkox_2.setText(_translate("MainWindow", "Bounding Box"))
self.copyright_label.setText(_translate("MainWindow", "Version 1.0 | Copyright Concept les freres"))
import resource2_rc
import icons.resources_rc