(self, event, method)
Register a handler for the event.
Register a handler for the event.
Register a handler for the event .
def register(self, event, method):
        """Register a handler for the event."""
        self.handlers[event] = method
def register ( self , event , method ) : self . handlers [ event ] = method