

def register_event(self, event_name, callback):
    "Register a callback function to be called when the event occurs.\n\n        Only one callback can be executed per event.\n\n        The provided ``EVENT_*`` constants should be used\n        for handling system events.\n        Additionally, you can use any string to define your\n        own events and callbacks.\n\n        If more than one handler per event is needed, you can chain them\n        manually, although it's not recommended.\n        "
    self._events[event_name] = callback
    return event_name

dataset/ETHPy150Open spantaleev/sijax-python/sijax/core.py Sijax.register_event/VarMisuse@26/187 `self`->`event_name`