neurotorchmz.core.events#
Classes
|
Base class for all events. |
- class neurotorchmz.core.events.Event#
Bases:
objectBase 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#