(self, event, method)
Connect an event to a callback method.
Connect an event to a callback method.
Connect an event to a callback method .
def event(self, event, method):
        """Connect an event to a callback method."""
        # self.add_handler(event, method)
        self.handlers[event] = method
def event ( self , event , method ) : # self.add_handler(event, method) self . handlers [ event ] = method