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

Documentation fixes

parent 5242d692
No related branches found
No related tags found
1 merge request!93UI Hooks
...@@ -8,9 +8,9 @@ from .i_ui_hooks_factory import IUIHooksFactory ...@@ -8,9 +8,9 @@ from .i_ui_hooks_factory import IUIHooksFactory
@provides(IUIHooksFactory) @provides(IUIHooksFactory)
class BaseUIHooksFactory(ABCHasStrictTraits): class BaseUIHooksFactory(ABCHasStrictTraits):
"""Base class for notification listeners. """Base class for UIHooksFactory.
Notification listeners are extensions that receive event notifications UI Hooks are extensions that perform actions associated to specific
from the MCO and perform an associated action. moments of the UI lifetime.
""" """
#: identifier of the factory #: identifier of the factory
id = String() id = String()
...@@ -33,12 +33,12 @@ class BaseUIHooksFactory(ABCHasStrictTraits): ...@@ -33,12 +33,12 @@ class BaseUIHooksFactory(ABCHasStrictTraits):
super(BaseUIHooksFactory, self).__init__(*args, **kwargs) super(BaseUIHooksFactory, self).__init__(*args, **kwargs)
@abc.abstractmethod @abc.abstractmethod
def create_ui_hook_manager(self): def create_ui_hooks_manager(self):
"""Creates an instance of the hook manager """Creates an instance of the hook manager.
The hook manager contains a set of methods that are applicable in The hooks manager contains a set of methods that are applicable in
various moments of the UI application lifetime. various moments of the UI application lifetime.
Returns Returns
------- -------
BaseUIHookManager BaseUIHooksManager
""" """
import abc from traits.api import HasStrictTraits, Instance
from traits.api import ABCHasStrictTraits, Instance
from .i_ui_hooks_factory import IUIHooksFactory from .i_ui_hooks_factory import IUIHooksFactory
class BaseUIHooksManager(ABCHasStrictTraits): class BaseUIHooksManager(HasStrictTraits):
#: A reference to the factory #: A reference to the factory
factory = Instance(IUIHooksFactory) factory = Instance(IUIHooksFactory)
......
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