diff options
Diffstat (limited to 'src/gui/window.py')
-rw-r--r-- | src/gui/window.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/gui/window.py b/src/gui/window.py index f2a5910..efacfd4 100644 --- a/src/gui/window.py +++ b/src/gui/window.py @@ -13,13 +13,23 @@ def get(): tabs = QtWidgets.QTabWidget(window) window.setCentralWidget(tabs) - open_tasks = gui.signal.Reload() + show_todo = gui.signal.Reload() + show_waiting = gui.signal.Reload() + show_maybe = gui.signal.Reload() + def on_current_tab_changed(index: int): if index == 0: - open_tasks.emit() + show_todo.emit() + elif index == 1: + show_waiting.emit() + elif index == 2: + show_maybe.emit() + tabs.currentChanged.connect(on_current_tab_changed) - tabs.addTab(gui.tasks.widget.widget(tabs, open_tasks), "Tasks") + tabs.addTab(gui.tasks.widget.widget(tabs, show_todo), "Todo") + tabs.addTab(gui.tasks.widget.widget(tabs, show_waiting), "Waiting") + tabs.addTab(gui.tasks.widget.widget(tabs, show_maybe), "Maybe") tabs.addTab(gui.tags.panel.widget.widget(tabs), "Tags") return window |