Package horizons :: Package util :: Package python :: Module callback :: Class Callback
[hide private]
[frames] | no frames]

Class Callback

source code

This class basically provides just callbacks with arguments. The same can be achieved via 'lambda: f(arg1, arg2)', but this class has more flexibility; e.g. you can compare callbacks, which can't be done with lambda functions.

Instance Methods [hide private]
 
__init__(self, callback_function, *args, **kwargs) source code
 
__call__(self) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__hash__(self) source code
 
__str__(self) source code
Static Methods [hide private]
 
ChainedCallbacks(*args)
Named constructor for callbacks executed in a row.
source code
Method Details [hide private]

ChainedCallbacks(*args)
Static Method

source code 

Named constructor for callbacks executed in a row. Use Callback objects to pass arguments to the callbacks. It is guaranteed that the callbacks are executed in order.

Parameters:
  • args - callables