diff options
author | Joris | 2020-05-31 13:59:35 +0200 |
---|---|---|
committer | Joris | 2020-05-31 13:59:35 +0200 |
commit | 0f1610333324d58acafee8c0fa9d9c9bc293b219 (patch) | |
tree | 302c37dd3751e9fe2e50ab656d56253bfd2d55fc /src/gui/tasks/widget.py | |
parent | 8a6e10d401eea8db0947f8c4b309b8a6256f9748 (diff) |
Use defined tags for tasks
Diffstat (limited to 'src/gui/tasks/widget.py')
-rw-r--r-- | src/gui/tasks/widget.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/tasks/widget.py b/src/gui/tasks/widget.py index ea4acb9..36fb743 100644 --- a/src/gui/tasks/widget.py +++ b/src/gui/tasks/widget.py @@ -3,8 +3,9 @@ from PyQt5 import QtWidgets import gui.tasks.signal import gui.tasks.table.widget import gui.icon +import gui.signal -def widget(database, parent): +def widget(parent, on_show: gui.signal.Reload): widget = QtWidgets.QWidget(parent) layout = QtWidgets.QVBoxLayout(widget) @@ -14,11 +15,10 @@ def widget(database, parent): add_task_button = QtWidgets.QPushButton('Add a task', widget) add_task_button.setIcon(gui.icon.new_folder(widget.style())) - add_task_button.clicked.connect(lambda: gui.tasks.dialog.add( - database, widget, add_task_signal).exec_()) + add_task_button.clicked.connect(lambda: gui.tasks.dialog.add(widget, add_task_signal).exec_()) layout.addWidget(add_task_button) - table = gui.tasks.table.widget.Widget(database, widget, add_task_signal) + table = gui.tasks.table.widget.Widget(widget, on_show, add_task_signal) layout.addWidget(table) return widget |