eventhook.py

Events implemetation for signal handling.

class clay.eventhook.EventHook[source]

Event that can have handlers attached.

__iadd__(handler)[source]

Add event handler.

__init__()[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__isub__(handler)[source]

Remove event handler.

__weakref__

list of weak references to the object (if defined)

fire(*args, **kwargs)[source]

Execute all handlers.