aboutsummaryrefslogtreecommitdiff
path: root/src/gui/window.py
diff options
context:
space:
mode:
authorJoris2020-05-10 20:24:24 +0200
committerJoris2020-05-10 20:24:24 +0200
commit8a6e10d401eea8db0947f8c4b309b8a6256f9748 (patch)
tree6e2dc6956ce7825f0f1b6c3ed6f0b4171fe9c274 /src/gui/window.py
parent3e1415c738facb8b0274adb50ae65f218fd59c9b (diff)
downloadtodo-8a6e10d401eea8db0947f8c4b309b8a6256f9748.tar.gz
todo-8a6e10d401eea8db0947f8c4b309b8a6256f9748.tar.bz2
todo-8a6e10d401eea8db0947f8c4b309b8a6256f9748.zip
Add tags panel
Diffstat (limited to 'src/gui/window.py')
-rw-r--r--src/gui/window.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/window.py b/src/gui/window.py
index aa22f7e..622f65d 100644
--- a/src/gui/window.py
+++ b/src/gui/window.py
@@ -1,13 +1,17 @@
from PyQt5 import QtCore, QtWidgets
import gui.tasks.widget
+import gui.tags.widget
def get(database):
window = QtWidgets.QMainWindow()
window.setWindowTitle("todo-next")
window.setMinimumSize(QtCore.QSize(640, 480))
- centralWidget = QtWidgets.QWidget(window)
- window.setCentralWidget(gui.tasks.widget.widget(database, centralWidget))
+ tabs = QtWidgets.QTabWidget(window)
+ window.setCentralWidget(tabs)
+
+ tabs.addTab(gui.tasks.widget.widget(database, tabs), 'Tasks')
+ tabs.addTab(gui.tags.widget.widget(database, tabs), 'Tags')
return window