Skip to content
Snippets Groups Projects
Commit 26cbaecc authored by Stefano Borini's avatar Stefano Borini
Browse files

UI Hook manager

parent 3fde61c3
No related branches found
No related tags found
1 merge request!93UI Hooks
......@@ -48,3 +48,10 @@ class BaseNotificationListenerFactory(ABCHasStrictTraits):
model_data: dict
Data to use to fill the model.
"""
@abc.abstractmethod
def create_ui_hook_manager(self):
"""Creates an instance of the hook manager
The hook manager contains a set of methods that are applicable in
various moments of the UI application lifetime.
"""
import abc
from traits.api import ABCHasStrictTraits
class BaseUIHookManager(ABCHasStrictTraits):
@abc.abstractmethod
def before_execution(self, application, model):
"""Hook that is called before execution of a given model.
Gives a chance to alter the model before the temporary file is created
with its contents and the calculation invoked.
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment