diff options
author | Joris | 2020-05-31 17:47:13 +0200 |
---|---|---|
committer | Joris | 2020-05-31 17:47:14 +0200 |
commit | 74fd6f47b3683bd727a33f3312582485fa062b95 (patch) | |
tree | 87d4a3045e5585dde9e75cf957e755f47de61775 /src/gui/tasks/dialog.py | |
parent | 1bed85a9b107d1b03e71b848829cb7b1f33060f4 (diff) |
Use double quotes instead of simple quotes
Follow advice from:
https://stackoverflow.com/questions/56011/single-quotes-vs-double-quotes-in-python
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) |