exopy.tasks.utils.saving module¶
Handler for the commands used to save tasks.
-
exopy.tasks.utils.saving.
save_task
(event)[source]¶ Save a task in memory or in an .ini file.
- Parameters
task (BaseTask) – Task to save.
mode ({'config', 'template'}) – Should the task be returned as a dict (ConfigObj) or saved as a, template.
widget (optional) – Optional widget to use as a parent for the dialog when savind as template.
Returns –
------- –
config (dict or None) – A dict is returned if the mode is ‘config’.