-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDayTab.py
More file actions
31 lines (20 loc) · 716 Bytes
/
DayTab.py
File metadata and controls
31 lines (20 loc) · 716 Bytes
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
from CustomControl import CalendarWidget
from TaskViewer import TaskViewer
from PyQt5.QtWidgets import QApplication, QGridLayout, QWidget
class DayTab(QWidget):
'''"Day" tab of the program main window.'''
def __init__(self, parent=None):
super(DayTab, self).__init__(parent)
layout = QGridLayout()
# TODO: create a custom schedule display
self.schedule = CalendarWidget()
layout.addWidget(self.schedule, 0, 0)
self.taskViewer = TaskViewer()
layout.addWidget(self.taskViewer, 0, 1)
self.setLayout(layout)
if __name__ == '__main__':
import sys
app = QApplication(sys.argv)
adder = DayTab()
adder.show()
app.exec_()