diff options
Diffstat (limited to 'src/gui/tasks/dialog.py')
-rw-r--r-- | src/gui/tasks/dialog.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/tasks/dialog.py b/src/gui/tasks/dialog.py index a28ecb0..1471910 100644 --- a/src/gui/tasks/dialog.py +++ b/src/gui/tasks/dialog.py @@ -15,7 +15,7 @@ def add(parent_widget, add_task_signal): task = service.tasks.create(database.cursor(), task_form) add_task_signal.emit(task, task_form.tags) - return widget(parent_widget, 'Add a task', 'add', None, [], on_add) + return widget(parent_widget, "Add a task", "add", None, [], on_add) def update(parent_widget, update_task_signal, row: int, task: Task, tags: List[int]): @@ -23,13 +23,13 @@ def update(parent_widget, update_task_signal, row: int, task: Task, tags: List[i updated_task = service.tasks.update(database.cursor(), task, task_form) update_task_signal.emit(row, updated_task, task_form.tags) - return widget(parent_widget, 'Modify a task', 'modify', task, tags, on_update) + return widget(parent_widget, "Modify a task", "modify", task, tags, on_update) def show_delete(parent, rows: List[int], on_delete): confirm = QtWidgets.QMessageBox.question( parent, - 'Task deletion', - 'Do you really want to delete the selected tasks ?', + "Task deletion", + "Do you really want to delete the selected tasks ?", QtWidgets.QMessageBox.No | QtWidgets.QMessageBox.Yes, QtWidgets.QMessageBox.Yes) |