(self, event, callback)
Set a function to call for a given event.
        Possible event identifiers are listed in EVENT_CALLBACK_SET.
Set a function to call for a given event.
        Possible event identifiers are listed in EVENT_CALLBACK_SET.
Set a function to call for a given event . Possible event identifiers are listed in EVENT_CALLBACK_SET .
def setEventCallback(self, event, callback):
        """
        Set a function to call for a given event.
        Possible event identifiers are listed in EVENT_CALLBACK_SET.
        """
        if event not in EVENT_CALLBACK_SET:
            raise ValueError('Unknown event %r.' % (event, ))
        self.__event_callback_dict[event] = callback
def setEventCallback ( self , event , callback ) : if event not in EVENT_CALLBACK_SET : raise ValueError ( 'Unknown event %r.' % ( event , ) ) self . __event_callback_dict [ event ] = callback