diff options
author | Joris | 2020-06-06 17:44:26 +0200 |
---|---|---|
committer | Joris | 2020-06-06 19:54:03 +0200 |
commit | 1595e0de940a86a7810df0e02e43838d97c0d846 (patch) | |
tree | 9701eeec0d98baa9f6044b1911df68e4c8539819 /src/gui/window.py | |
parent | 6b9195000eb5404c247288b384d7ca2bacc1ab23 (diff) |
Provide nix build
Diffstat (limited to 'src/gui/window.py')
-rw-r--r-- | src/gui/window.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/gui/window.py b/src/gui/window.py deleted file mode 100644 index 584fda6..0000000 --- a/src/gui/window.py +++ /dev/null @@ -1,36 +0,0 @@ -from PyQt5 import QtCore, QtWidgets - -import gui.tasks.widget -import gui.tasks.widget -import gui.tags.panel.widget -import gui.signal -from model.status import Status - -def get(): - window = QtWidgets.QMainWindow() - window.setWindowTitle("todo-next") - window.setMinimumSize(QtCore.QSize(640, 480)) - - tabs = QtWidgets.QTabWidget(window) - window.setCentralWidget(tabs) - - show_ready = gui.signal.Reload() - show_waiting = gui.signal.Reload() - show_maybe = gui.signal.Reload() - - def on_current_tab_changed(index: int): - if index == 0: - show_ready.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, show_ready, Status.READY), "Ready") - tabs.addTab(gui.tasks.widget.widget(tabs, show_waiting, Status.WAITING), "Waiting") - tabs.addTab(gui.tasks.widget.widget(tabs, show_maybe, Status.MAYBE), "Maybe") - tabs.addTab(gui.tags.panel.widget.widget(tabs), "Tags") - - return window |