(self, event, callback)
Registers a handler for an event.
Registers a handler for an event.
Registers a handler for an event .
def register_event(self, event, callback):
        """Registers a handler for an event."""
        self.event_callbacks[event].add(callback)
def register_event ( self , event , callback ) : self . event_callbacks [ event ] . add ( callback )