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