-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_gui.py
936 lines (929 loc) · 52.1 KB
/
main_gui.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main_gui.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(856, 593)
MainWindow.setStyleSheet("background-color: rgb(194, 194, 194);")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setMinimumSize(QtCore.QSize(600, 500))
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.Content = QtWidgets.QFrame(self.centralwidget)
self.Content.setFrameShape(QtWidgets.QFrame.NoFrame)
self.Content.setFrameShadow(QtWidgets.QFrame.Raised)
self.Content.setObjectName("Content")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.Content)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.frame_left_menu = QtWidgets.QFrame(self.Content)
self.frame_left_menu.setMinimumSize(QtCore.QSize(75, 0))
self.frame_left_menu.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.frame_left_menu.setAutoFillBackground(False)
self.frame_left_menu.setStyleSheet("background-color: rgb(246, 249, 255);\n"
"padding: 0 0 0 0px;\n"
"margin: 0 0 0 0px;")
self.frame_left_menu.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_left_menu.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_left_menu.setObjectName("frame_left_menu")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame_left_menu)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.widget_left_menu = QtWidgets.QWidget(self.frame_left_menu)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget_left_menu.sizePolicy().hasHeightForWidth())
self.widget_left_menu.setSizePolicy(sizePolicy)
self.widget_left_menu.setStyleSheet("background-color: rgb(246, 249, 255);")
self.widget_left_menu.setObjectName("widget_left_menu")
self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.widget_left_menu)
self.verticalLayout_9.setContentsMargins(0, 0, 5, 0)
self.verticalLayout_9.setObjectName("verticalLayout_9")
self.effect_test_2 = QtWidgets.QWidget(self.widget_left_menu)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.effect_test_2.sizePolicy().hasHeightForWidth())
self.effect_test_2.setSizePolicy(sizePolicy)
self.effect_test_2.setLayoutDirection(QtCore.Qt.LeftToRight)
self.effect_test_2.setStyleSheet("background: #ffffff;")
self.effect_test_2.setObjectName("effect_test_2")
self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.effect_test_2)
self.verticalLayout_11.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_11.setObjectName("verticalLayout_11")
self.Btn_Menu_1 = QtWidgets.QPushButton(self.effect_test_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Btn_Menu_1.sizePolicy().hasHeightForWidth())
self.Btn_Menu_1.setSizePolicy(sizePolicy)
self.Btn_Menu_1.setMinimumSize(QtCore.QSize(58, 60))
self.Btn_Menu_1.setLayoutDirection(QtCore.Qt.LeftToRight)
self.Btn_Menu_1.setAutoFillBackground(False)
self.Btn_Menu_1.setStyleSheet("QPushButton {\n"
" color: rgb(255, 255, 255);\n"
" background-color: #fff;\n"
" border: 0px solid;\n"
"}\n"
"QPushButton:hover {\n"
"background-color: #e26457;\n"
"}")
self.Btn_Menu_1.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icons/tasks.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Btn_Menu_1.setIcon(icon)
self.Btn_Menu_1.setIconSize(QtCore.QSize(29, 34))
self.Btn_Menu_1.setShortcut("")
self.Btn_Menu_1.setCheckable(False)
self.Btn_Menu_1.setFlat(False)
self.Btn_Menu_1.setObjectName("Btn_Menu_1")
self.verticalLayout_11.addWidget(self.Btn_Menu_1)
self.Btn_Menu_2 = QtWidgets.QPushButton(self.effect_test_2)
self.Btn_Menu_2.setMinimumSize(QtCore.QSize(0, 60))
self.Btn_Menu_2.setStyleSheet("QPushButton {\n"
" color: rgb(255, 255, 255);\n"
" background-color: #fff;\n"
" border: 0px solid;\n"
"}\n"
"QPushButton:hover {\n"
"background-color: #42ab59;\n"
"}rgb(66, 171, 89)")
self.Btn_Menu_2.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap("icons/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Btn_Menu_2.setIcon(icon1)
self.Btn_Menu_2.setIconSize(QtCore.QSize(27, 30))
self.Btn_Menu_2.setObjectName("Btn_Menu_2")
self.verticalLayout_11.addWidget(self.Btn_Menu_2)
self.Btn_Menu_3 = QtWidgets.QPushButton(self.effect_test_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Btn_Menu_3.sizePolicy().hasHeightForWidth())
self.Btn_Menu_3.setSizePolicy(sizePolicy)
self.Btn_Menu_3.setMinimumSize(QtCore.QSize(58, 60))
self.Btn_Menu_3.setStyleSheet("QPushButton {\n"
" color: rgb(255, 255, 255);\n"
" background-color: #fff;\n"
" border: 0px solid;\n"
"}\n"
"QPushButton:hover {\n"
"background-color: #e2b757;\n"
"}")
self.Btn_Menu_3.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap("icons/history_2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.Btn_Menu_3.setIcon(icon2)
self.Btn_Menu_3.setIconSize(QtCore.QSize(31, 34))
self.Btn_Menu_3.setObjectName("Btn_Menu_3")
self.verticalLayout_11.addWidget(self.Btn_Menu_3)
spacerItem = QtWidgets.QSpacerItem(20, 16777215, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_11.addItem(spacerItem)
self.verticalLayout_9.addWidget(self.effect_test_2)
self.verticalLayout_3.addWidget(self.widget_left_menu, 0, QtCore.Qt.AlignTop)
self.horizontalLayout_2.addWidget(self.frame_left_menu)
self.frame_pages = QtWidgets.QFrame(self.Content)
self.frame_pages.setMinimumSize(QtCore.QSize(0, 40))
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setBold(False)
font.setWeight(50)
self.frame_pages.setFont(font)
self.frame_pages.setStyleSheet("background-color: rgb(246, 249, 255);")
self.frame_pages.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_pages.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_pages.setObjectName("frame_pages")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame_pages)
self.verticalLayout_5.setSpacing(6)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.Pages_Widget = QtWidgets.QStackedWidget(self.frame_pages)
self.Pages_Widget.setObjectName("Pages_Widget")
self.page_show_tasks = QtWidgets.QWidget()
self.page_show_tasks.setObjectName("page_show_tasks")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.page_show_tasks)
self.verticalLayout_6.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.verticalLayout_6.setSpacing(12)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.tasks_todo = QtWidgets.QFrame(self.page_show_tasks)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tasks_todo.sizePolicy().hasHeightForWidth())
self.tasks_todo.setSizePolicy(sizePolicy)
self.tasks_todo.setMinimumSize(QtCore.QSize(500, 0))
self.tasks_todo.setStyleSheet("background: #fff;\n"
"border-radius: 10px;")
self.tasks_todo.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.tasks_todo.setFrameShadow(QtWidgets.QFrame.Raised)
self.tasks_todo.setObjectName("tasks_todo")
self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.tasks_todo)
self.verticalLayout_10.setSizeConstraint(QtWidgets.QLayout.SetNoConstraint)
self.verticalLayout_10.setContentsMargins(12, 12, 12, 12)
self.verticalLayout_10.setSpacing(15)
self.verticalLayout_10.setObjectName("verticalLayout_10")
self.label = QtWidgets.QLabel(self.tasks_todo)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
self.label.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(37, 58, 98))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(37, 58, 98))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.label.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(13)
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setObjectName("label")
self.verticalLayout_10.addWidget(self.label)
self.tasks_todo_widget = QtWidgets.QWidget(self.tasks_todo)
self.tasks_todo_widget.setObjectName("tasks_todo_widget")
self.verticalLayout_10.addWidget(self.tasks_todo_widget)
self.frame_tasks_today = QtWidgets.QFrame(self.tasks_todo)
self.frame_tasks_today.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_tasks_today.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_tasks_today.setObjectName("frame_tasks_today")
self.verticalLayout_10.addWidget(self.frame_tasks_today)
self.verticalLayout_6.addWidget(self.tasks_todo)
self.task_overview = QtWidgets.QWidget(self.page_show_tasks)
self.task_overview.setStyleSheet("background: #ffffff;\n"
"border-radius: 10px;")
self.task_overview.setObjectName("task_overview")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.task_overview)
self.verticalLayout_4.setContentsMargins(12, 12, 12, 12)
self.verticalLayout_4.setSpacing(15)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.task_overview_label = QtWidgets.QLabel(self.task_overview)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.task_overview_label.sizePolicy().hasHeightForWidth())
self.task_overview_label.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.task_overview_label.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(13)
font.setBold(True)
font.setWeight(75)
self.task_overview_label.setFont(font)
self.task_overview_label.setObjectName("task_overview_label")
self.horizontalLayout_5.addWidget(self.task_overview_label)
self.widget_5 = QtWidgets.QWidget(self.task_overview)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget_5.sizePolicy().hasHeightForWidth())
self.widget_5.setSizePolicy(sizePolicy)
self.widget_5.setObjectName("widget_5")
self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.widget_5)
self.horizontalLayout_9.setContentsMargins(-1, 0, -1, 0)
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_9.addItem(spacerItem1)
self.button_last_month = QtWidgets.QToolButton(self.widget_5)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.button_last_month.setFont(font)
self.button_last_month.setObjectName("button_last_month")
self.horizontalLayout_9.addWidget(self.button_last_month)
self.month_label = QtWidgets.QLabel(self.widget_5)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.month_label.sizePolicy().hasHeightForWidth())
self.month_label.setSizePolicy(sizePolicy)
self.month_label.setMinimumSize(QtCore.QSize(60, 0))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(37, 58, 98))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(37, 58, 98))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.month_label.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.month_label.setFont(font)
self.month_label.setScaledContents(False)
self.month_label.setAlignment(QtCore.Qt.AlignCenter)
self.month_label.setObjectName("month_label")
self.horizontalLayout_9.addWidget(self.month_label)
self.button_next_month = QtWidgets.QToolButton(self.widget_5)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.button_next_month.setFont(font)
self.button_next_month.setObjectName("button_next_month")
self.horizontalLayout_9.addWidget(self.button_next_month)
self.horizontalLayout_5.addWidget(self.widget_5)
self.verticalLayout_4.addLayout(self.horizontalLayout_5)
self.verticalLayout_6.addWidget(self.task_overview)
self.Pages_Widget.addWidget(self.page_show_tasks)
self.page_add_task = QtWidgets.QWidget()
self.page_add_task.setObjectName("page_add_task")
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.page_add_task)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.add_task_widget = QtWidgets.QWidget(self.page_add_task)
self.add_task_widget.setStyleSheet("background: #fff;\n"
"border-radius: 10px;")
self.add_task_widget.setObjectName("add_task_widget")
self.verticalLayout_18 = QtWidgets.QVBoxLayout(self.add_task_widget)
self.verticalLayout_18.setContentsMargins(12, 12, 12, 12)
self.verticalLayout_18.setSpacing(15)
self.verticalLayout_18.setObjectName("verticalLayout_18")
self.label_5 = QtWidgets.QLabel(self.add_task_widget)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.label_5.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(13)
font.setBold(True)
font.setWeight(75)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.verticalLayout_18.addWidget(self.label_5)
self.formLayout = QtWidgets.QFormLayout()
self.formLayout.setContentsMargins(5, 5, 5, 5)
self.formLayout.setObjectName("formLayout")
self.label_2 = QtWidgets.QLabel(self.add_task_widget)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_2)
self.task_field = QtWidgets.QLineEdit(self.add_task_widget)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
self.task_field.setFont(font)
self.task_field.setStyleSheet("background:#f6f9ff;\n"
"color: #253a7f;\n"
"border-radius: 5px;\n"
"padding-left: 3px;")
self.task_field.setText("")
self.task_field.setObjectName("task_field")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.task_field)
self.label_3 = QtWidgets.QLabel(self.add_task_widget)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_3)
self.day_field = QtWidgets.QLineEdit(self.add_task_widget)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
self.day_field.setFont(font)
self.day_field.setStyleSheet("background:#f6f9ff;\n"
"color: #253a7f;\n"
"border-radius: 5px;\n"
"padding-left: 3px;")
self.day_field.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
self.day_field.setText("")
self.day_field.setObjectName("day_field")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.day_field)
self.label_4 = QtWidgets.QLabel(self.add_task_widget)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_4)
self.time_field = QtWidgets.QTimeEdit(self.add_task_widget)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
self.time_field.setFont(font)
self.time_field.setStyleSheet("background:#f6f9ff;\n"
"color: #253a7f;\n"
"border-radius: 5px;\n"
"padding-left: 3px;")
self.time_field.setObjectName("time_field")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.time_field)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem2)
self.Button_AddTask = QtWidgets.QPushButton(self.add_task_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Button_AddTask.sizePolicy().hasHeightForWidth())
self.Button_AddTask.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
self.Button_AddTask.setFont(font)
self.Button_AddTask.setStyleSheet("background: #dde6f6;\n"
"border-radius: 5px;\n"
"padding: 3 5 3 5px;")
self.Button_AddTask.setObjectName("Button_AddTask")
self.horizontalLayout_4.addWidget(self.Button_AddTask)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem3)
self.formLayout.setLayout(3, QtWidgets.QFormLayout.SpanningRole, self.horizontalLayout_4)
self.verticalLayout_18.addLayout(self.formLayout)
self.verticalLayout_7.addWidget(self.add_task_widget)
spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_7.addItem(spacerItem4)
self.Pages_Widget.addWidget(self.page_add_task)
self.page_statistics = QtWidgets.QWidget()
self.page_statistics.setObjectName("page_statistics")
self.gridLayout = QtWidgets.QGridLayout(self.page_statistics)
self.gridLayout.setSpacing(12)
self.gridLayout.setObjectName("gridLayout")
self.widget_2 = QtWidgets.QWidget(self.page_statistics)
self.widget_2.setStyleSheet("background: #fff;\n"
"border-radius: 10px;")
self.widget_2.setObjectName("widget_2")
self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.widget_2)
self.verticalLayout_12.setContentsMargins(12, 12, 12, 12)
self.verticalLayout_12.setSpacing(15)
self.verticalLayout_12.setObjectName("verticalLayout_12")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.history_label_3 = QtWidgets.QLabel(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.history_label_3.sizePolicy().hasHeightForWidth())
self.history_label_3.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.history_label_3.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(13)
font.setBold(True)
font.setWeight(75)
self.history_label_3.setFont(font)
self.history_label_3.setObjectName("history_label_3")
self.horizontalLayout_6.addWidget(self.history_label_3)
self.widget_6 = QtWidgets.QWidget(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget_6.sizePolicy().hasHeightForWidth())
self.widget_6.setSizePolicy(sizePolicy)
self.widget_6.setObjectName("widget_6")
self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.widget_6)
self.horizontalLayout_10.setContentsMargins(-1, 0, -1, 0)
self.horizontalLayout_10.setObjectName("horizontalLayout_10")
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_10.addItem(spacerItem5)
self.button_last_month_2 = QtWidgets.QToolButton(self.widget_6)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.button_last_month_2.setFont(font)
self.button_last_month_2.setObjectName("button_last_month_2")
self.horizontalLayout_10.addWidget(self.button_last_month_2)
self.month_label_2 = QtWidgets.QLabel(self.widget_6)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.month_label_2.sizePolicy().hasHeightForWidth())
self.month_label_2.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.month_label_2.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.month_label_2.setFont(font)
self.month_label_2.setScaledContents(False)
self.month_label_2.setObjectName("month_label_2")
self.horizontalLayout_10.addWidget(self.month_label_2)
self.button_next_month_2 = QtWidgets.QToolButton(self.widget_6)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.button_next_month_2.setFont(font)
self.button_next_month_2.setObjectName("button_next_month_2")
self.horizontalLayout_10.addWidget(self.button_next_month_2)
self.horizontalLayout_6.addWidget(self.widget_6)
self.verticalLayout_12.addLayout(self.horizontalLayout_6)
self.monthsplot = QtWidgets.QWidget(self.widget_2)
self.monthsplot.setStyleSheet("background: #fff;\n"
"border-radius: 10px;")
self.monthsplot.setObjectName("monthsplot")
self.verticalLayout_15 = QtWidgets.QVBoxLayout(self.monthsplot)
self.verticalLayout_15.setObjectName("verticalLayout_15")
self.widget_3 = QtWidgets.QWidget(self.monthsplot)
self.widget_3.setObjectName("widget_3")
self.verticalLayout_15.addWidget(self.widget_3)
self.verticalLayout_12.addWidget(self.monthsplot)
self.gridLayout.addWidget(self.widget_2, 1, 0, 1, 1, QtCore.Qt.AlignTop)
self.history = QtWidgets.QWidget(self.page_statistics)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.history.sizePolicy().hasHeightForWidth())
self.history.setSizePolicy(sizePolicy)
self.history.setMinimumSize(QtCore.QSize(0, 0))
self.history.setStyleSheet("background: #fff;\n"
"border-radius: 10px;")
self.history.setObjectName("history")
self.verticalLayout_17 = QtWidgets.QVBoxLayout(self.history)
self.verticalLayout_17.setContentsMargins(12, 12, 12, 12)
self.verticalLayout_17.setSpacing(15)
self.verticalLayout_17.setObjectName("verticalLayout_17")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.history_label = QtWidgets.QLabel(self.history)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.history_label.sizePolicy().hasHeightForWidth())
self.history_label.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.history_label.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(13)
font.setBold(True)
font.setWeight(75)
self.history_label.setFont(font)
self.history_label.setObjectName("history_label")
self.horizontalLayout_3.addWidget(self.history_label)
self.widget_4 = QtWidgets.QWidget(self.history)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget_4.sizePolicy().hasHeightForWidth())
self.widget_4.setSizePolicy(sizePolicy)
self.widget_4.setObjectName("widget_4")
self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.widget_4)
self.horizontalLayout_8.setContentsMargins(-1, 0, -1, 0)
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_8.addItem(spacerItem6)
self.button_last_year = QtWidgets.QToolButton(self.widget_4)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.button_last_year.setFont(font)
self.button_last_year.setObjectName("button_last_year")
self.horizontalLayout_8.addWidget(self.button_last_year)
self.year_label = QtWidgets.QLabel(self.widget_4)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.year_label.sizePolicy().hasHeightForWidth())
self.year_label.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.year_label.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.year_label.setFont(font)
self.year_label.setScaledContents(False)
self.year_label.setObjectName("year_label")
self.horizontalLayout_8.addWidget(self.year_label)
self.button_next_year = QtWidgets.QToolButton(self.widget_4)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.button_next_year.setFont(font)
self.button_next_year.setObjectName("button_next_year")
self.horizontalLayout_8.addWidget(self.button_next_year)
self.horizontalLayout_3.addWidget(self.widget_4)
self.verticalLayout_17.addLayout(self.horizontalLayout_3)
self.widget = QtWidgets.QWidget(self.history)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
self.widget.setSizePolicy(sizePolicy)
self.widget.setObjectName("widget")
self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.widget)
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.calendar = QtWidgets.QGridLayout()
self.calendar.setObjectName("calendar")
self.verticalLayout_8.addLayout(self.calendar)
self.verticalLayout_17.addWidget(self.widget)
self.gridLayout.addWidget(self.history, 0, 0, 1, 2)
self.highlights_widget = QtWidgets.QWidget(self.page_statistics)
self.highlights_widget.setMinimumSize(QtCore.QSize(350, 0))
self.highlights_widget.setStyleSheet("background: #fff;\n"
"border-radius: 10px;")
self.highlights_widget.setObjectName("highlights_widget")
self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.highlights_widget)
self.verticalLayout_13.setContentsMargins(12, 12, 12, 13)
self.verticalLayout_13.setSpacing(15)
self.verticalLayout_13.setObjectName("verticalLayout_13")
self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
self.horizontalLayout_11.setObjectName("horizontalLayout_11")
self.history_label_2 = QtWidgets.QLabel(self.highlights_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.history_label_2.sizePolicy().hasHeightForWidth())
self.history_label_2.setSizePolicy(sizePolicy)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
self.history_label_2.setPalette(palette)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(13)
font.setBold(True)
font.setWeight(75)
self.history_label_2.setFont(font)
self.history_label_2.setObjectName("history_label_2")
self.horizontalLayout_11.addWidget(self.history_label_2)
self.widget_7 = QtWidgets.QWidget(self.highlights_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget_7.sizePolicy().hasHeightForWidth())
self.widget_7.setSizePolicy(sizePolicy)
self.widget_7.setObjectName("widget_7")
self.horizontalLayout_12 = QtWidgets.QHBoxLayout(self.widget_7)
self.horizontalLayout_12.setContentsMargins(-1, 0, -1, 0)
self.horizontalLayout_12.setObjectName("horizontalLayout_12")
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_12.addItem(spacerItem7)
self.horizontalLayout_11.addWidget(self.widget_7)
self.verticalLayout_13.addLayout(self.horizontalLayout_11)
self.widget_8 = QtWidgets.QWidget(self.highlights_widget)
self.widget_8.setMinimumSize(QtCore.QSize(300, 0))
self.widget_8.setObjectName("widget_8")
self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.widget_8)
self.verticalLayout_14.setObjectName("verticalLayout_14")
self.textBrowser = QtWidgets.QTextBrowser(self.widget_8)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textBrowser.sizePolicy().hasHeightForWidth())
self.textBrowser.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Nirmala UI")
font.setPointSize(10)
self.textBrowser.setFont(font)
self.textBrowser.setObjectName("textBrowser")
self.verticalLayout_14.addWidget(self.textBrowser)
self.verticalLayout_13.addWidget(self.widget_8)
self.gridLayout.addWidget(self.highlights_widget, 1, 1, 1, 1, QtCore.Qt.AlignTop)
self.Pages_Widget.addWidget(self.page_statistics)
self.verticalLayout_5.addWidget(self.Pages_Widget)
self.horizontalLayout_2.addWidget(self.frame_pages)
self.verticalLayout.addWidget(self.Content)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.Pages_Widget.setCurrentIndex(2)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label.setText(_translate("MainWindow", "TASKS FOR TODAY"))
self.task_overview_label.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a62;\">TASK OVERVIEW</span></p></body></html>"))
self.button_last_month.setText(_translate("MainWindow", "<"))
self.month_label.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a62;\">Nov 21</span></p></body></html>"))
self.button_next_month.setText(_translate("MainWindow", ">"))
self.label_5.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a62;\">ADD A TASK</span></p></body></html>"))
self.label_2.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a7f;\">Name</span></p></body></html>"))
self.label_3.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a7f;\">Number of days</span></p></body></html>"))
self.label_4.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a7f;\">Time per day</span></p></body></html>"))
self.Button_AddTask.setText(_translate("MainWindow", "Okay"))
self.history_label_3.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a62;\">TASKS PER MONTH</span></p></body></html>"))
self.button_last_month_2.setText(_translate("MainWindow", "<"))
self.month_label_2.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a62;\">Nov 21</span></p></body></html>"))
self.button_next_month_2.setText(_translate("MainWindow", ">"))
self.history_label.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a62;\">HISTORY</span></p></body></html>"))
self.button_last_year.setText(_translate("MainWindow", "<"))
self.year_label.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a62;\">2021</span></p></body></html>"))
self.button_next_year.setText(_translate("MainWindow", ">"))
self.history_label_2.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#253a62;\">HIGHLIGHTS</span></p></body></html>"))
self.textBrowser.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Nirmala UI\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Text</p></body></html>"))