colour.utilities.Delegate#
- class colour.utilities.Delegate[source]#
Bases:
objectDefine a delegate allowing listeners to register and be notified of events.
Methods
- add_listener(listener: Callable) None[source]#
Add the given listener to the delegate.
- Parameters:
listener (Callable) – Callable listening to the delegate notifications.
- Return type:
None
- remove_listener(listener: Callable) None[source]#
Remove the given listener from the delegate.
- Parameters:
listener (Callable) – Callable listening to the delegate notifications.
- Return type:
None
- __weakref__#
list of weak references to the object