diff options
Diffstat (limited to 'src/gui/tasks/widget.py')
-rw-r--r-- | src/gui/tasks/widget.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/tasks/widget.py b/src/gui/tasks/widget.py index 3134124..87b15d3 100644 --- a/src/gui/tasks/widget.py +++ b/src/gui/tasks/widget.py @@ -1,24 +1,30 @@ from PyQt5 import QtWidgets +from model.status import Status import gui.tasks.signal import gui.tasks.table.widget import gui.icon import gui.signal -def widget(parent, on_show: gui.signal.Reload): +def widget(parent, on_show: gui.signal.Reload, status: Status): widget = QtWidgets.QWidget(parent) layout = QtWidgets.QVBoxLayout(widget) widget.setLayout(layout) + layout.addSpacing(15) + add_task_signal = gui.tasks.signal.AddTask() - add_task_button = QtWidgets.QPushButton("Add a task", widget) + add_task_button = QtWidgets.QPushButton(" Add a task", widget) + add_task_button.setFixedHeight(30) add_task_button.setIcon(gui.icon.new_folder(widget.style())) - add_task_button.clicked.connect(lambda: gui.tasks.dialog.add(widget, add_task_signal).exec_()) + add_task_button.clicked.connect(lambda: gui.tasks.dialog.add(widget, status, add_task_signal).exec_()) layout.addWidget(add_task_button) - table = gui.tasks.table.widget.Widget(widget, on_show, add_task_signal) + layout.addSpacing(20) + + table = gui.tasks.table.widget.Widget(widget, on_show, add_task_signal, status) layout.addWidget(table) return widget |