diff options
author | Joris | 2020-05-09 13:37:08 +0200 |
---|---|---|
committer | Joris | 2020-05-09 13:37:08 +0200 |
commit | 3c946e02e59a05ea0b04aa6c95ce38d9d1f8ae30 (patch) | |
tree | a044b3d4a47f98722bec170d7519eaef49c10b36 /src/gui/tasks/form/widget.py | |
parent | 6ed4e669ef7cb857c7b0ac774c41e8f9c7758217 (diff) |
Use duration format in form
Diffstat (limited to 'src/gui/tasks/form/widget.py')
-rw-r--r-- | src/gui/tasks/form/widget.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/tasks/form/widget.py b/src/gui/tasks/form/widget.py index 8063d8d..6421747 100644 --- a/src/gui/tasks/form/widget.py +++ b/src/gui/tasks/form/widget.py @@ -6,6 +6,7 @@ from model.task import Task, ValidTaskForm import gui.icons import gui.tasks.form.state +import gui.tasks.duration def widget( parent: QtWidgets.QWidget, @@ -22,7 +23,7 @@ def widget( (name_labelled_input, name_input) = labelled_input(widget, 'Name', init_name) layout.addWidget(name_labelled_input) - init_duration = str(task.duration) if task is not None else '' + init_duration = gui.tasks.duration.format(task.duration) if task is not None else '' (duration_labelled_input, duration_input) = labelled_input(widget, 'Duration', init_duration) layout.addWidget(duration_labelled_input) |