Python API 2.0 Reference
|
Static Public Member Functions | |
def | addEventCallback () |
def | getEventNames () |
Additional Inherited Members |
Class used to register callbacks for event related messages. Method resolution order: - MEventMessage - MMessage - __builtin__.object
|
static |
addEventCallback(eventName, function, clientData=None) -> id This method registers a callback for event occurred messages. The callback function will be passed the any client data that was provided when the callback was registered. * eventName (string) - the event to register the callback for * function - callable which will be passed the clientData object * clientData - User defined data passed to the callback function * return: Identifier used for removing the callback.
|
static |
getEventNames() -> (string, string, ...) This method returns the list of available event names. * return: tuple of available event names.