From df828c4b141f84f731afffbe17c80618cacf9480 Mon Sep 17 00:00:00 2001 From: Joris Date: Fri, 8 May 2020 14:12:47 +0200 Subject: Bootstrap todo-next --- src/gui/window.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/gui/window.py (limited to 'src/gui/window.py') diff --git a/src/gui/window.py b/src/gui/window.py new file mode 100644 index 0000000..67d1dea --- /dev/null +++ b/src/gui/window.py @@ -0,0 +1,13 @@ +from PyQt5 import QtCore, QtWidgets + +import gui.tasks.main + +def get(database): + window = QtWidgets.QMainWindow() + window.setWindowTitle("todo-next") + window.setMinimumSize(QtCore.QSize(640, 480)) + + centralWidget = QtWidgets.QWidget(window) + window.setCentralWidget(gui.tasks.main.widget(database, centralWidget)) + + return window -- cgit v1.2.3