From 8a6e10d401eea8db0947f8c4b309b8a6256f9748 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 10 May 2020 20:24:24 +0200 Subject: Add tags panel --- src/gui/window.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gui/window.py') 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 -- cgit v1.2.3