aboutsummaryrefslogtreecommitdiff
path: root/src/gui/tasks/form
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/tasks/form')
-rw-r--r--src/gui/tasks/form/state.py2
-rw-r--r--src/gui/tasks/form/widget.py20
2 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/tasks/form/state.py b/src/gui/tasks/form/state.py
index 5b48cd9..09e658e 100644
--- a/src/gui/tasks/form/state.py
+++ b/src/gui/tasks/form/state.py
@@ -88,7 +88,7 @@ class TaskFormEdition:
return self._signal
class ValidTaskFormSignal(QtCore.QObject):
- _signal = QtCore.pyqtSignal(ValidTaskForm, name = 'validTaskForm')
+ _signal = QtCore.pyqtSignal(ValidTaskForm, name = "validTaskForm")
def __init__(self):
QtCore.QObject.__init__(self)
diff --git a/src/gui/tasks/form/widget.py b/src/gui/tasks/form/widget.py
index 49339e1..9be2589 100644
--- a/src/gui/tasks/form/widget.py
+++ b/src/gui/tasks/form/widget.py
@@ -10,7 +10,7 @@ import gui.tasks.duration
import gui.tags.list
class TextEditSignal(QtCore.QObject):
- _signal = QtCore.pyqtSignal(str, name = 'textEdit')
+ _signal = QtCore.pyqtSignal(str, name = "textEdit")
def __init__(self):
QtCore.QObject.__init__(self)
@@ -38,18 +38,18 @@ def widget(
grid_layout = QtWidgets.QGridLayout(grid)
grid.setLayout(grid_layout)
- init_name = task.name if task is not None else ''
- name_input = line_edit(grid, grid_layout, 0, 'Name', init_name)
+ init_name = task.name if task is not None else ""
+ name_input = line_edit(grid, grid_layout, 0, "Name", init_name)
- init_duration = gui.tasks.duration.format(task.duration) if task is not None else ''
- duration_input = line_edit(grid, grid_layout, 1, 'Duration', init_duration)
+ init_duration = gui.tasks.duration.format(task.duration) if task is not None else ""
+ duration_input = line_edit(grid, grid_layout, 1, "Duration", init_duration)
init_difficulty = task.difficulty if task is not None else difficulty.Difficulty.NORMAL
difficulty_input = combo_box(
grid,
grid_layout,
3,
- 'Difficulty',
+ "Difficulty",
[difficulty.format(d) for d in difficulty.values],
int(init_difficulty))
@@ -58,15 +58,15 @@ def widget(
grid,
grid_layout,
4,
- 'Priority',
+ "Priority",
[priority.format(d) for d in priority.values],
int(init_priority))
(tags_list_widget, tags_signal) = tags_selection(widget, tags)
layout.addWidget(tags_list_widget)
- init_description = task.description if task is not None else ''
- (description_input, description_signal) = text_edit(widget, 'Description', init_description)
+ init_description = task.description if task is not None else ""
+ (description_input, description_signal) = text_edit(widget, "Description", init_description)
layout.addWidget(description_input)
task_form_edition = gui.tasks.form.state.TaskFormEdition(
@@ -176,7 +176,7 @@ def buttons(parent, action_title, task_form_signal, on_validate, on_cancel):
task_form_signal.connect(on_task_form_signal)
- cancel = QtWidgets.QPushButton('cancel', widget)
+ cancel = QtWidgets.QPushButton("cancel", widget)
cancel.setIcon(gui.icon.dialog_cancel(cancel.style()))
cancel.clicked.connect(on_cancel)
layout.addWidget(cancel)