neurotorchmz.core.events

neurotorchmz.core.events#

Classes

Event()

Base class for all events.

class neurotorchmz.core.events.Event#

Bases: object

Base class for all events. To trigger on an event, add the hook decorator (e.g. @Event.hook) to the function definition

HOOKS: list[Callable[[Self], None]] = []#
classmethod hook(func: Callable[[Self], None]) Callable[[Self], None]#
classmethod register(func: Callable[[Self], None]) None#