blob: 622f65d11d9feaacc8ad7a036e7d492e38196e49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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))
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
|