Python API 2.0 Reference
|
Static Public Member Functions | |
def | addConditionCallback () |
def | getConditionNames () |
def | getConditionState () |
Additional Inherited Members |
Class used to register callbacks for condition related messages. Method resolution order: - MConditionMessage - MMessage - builtins.object
|
static |
addConditionCallback(conditionName, function, clientData=None) -> id This method registers a callback for condition changed messages. The callback function will be passed the new state of the condition and any client data that the user wishes to pass in. * conditionName (string) - the condition to register the callback for * function - callable which will be passed a bool indicating the new state of the condition, and the clientData object. * clientData - User defined data passed to the callback function * return: Identifier used for removing the callback.
|
static |
getConditionNames() -> (string, string, ...) This method returns the list of available condition names. * return: tuple of available condition names.
|
static |
getConditionState(name) -> bool This method returns the current state of a condition. * name (string) - the name of the condition. * return: The current state of the condition.