Callback¶
Defined in module: wield.declarative.callbacks.callbacks.Callback
- class Callback(initialcall=None, doc=None)[source][github]¶
Bases:
objectCallable object dispatching its call to registered callbacks
- Parameters:
initialcall – First call for the in the sequence, also provides docstring
doc – (optional) can override the docstring for this object.
This object provides functions transparently as extendable callback hooks.
Methods
__init__([initialcall, doc])register([key, callback, remove, throw])Register a function into the callback
Attributes