Package horizons :: Module extscheduler :: Class _ExtCallbackObject
[hide private]
[frames] | no frames]

Class _ExtCallbackObject

source code

Class used by the ExtScheduler Class to organize callbacks.

Instance Methods [hide private]
 
__init__(self, callback, class_instance, run_in=1, loops=1)
Creates the CallbackObject instance.
source code
 
__str__(self) source code
Method Details [hide private]

__init__(self, callback, class_instance, run_in=1, loops=1)
(Constructor)

source code 

Creates the CallbackObject instance.

Parameters:
  • callback - lambda function callback, which is called run_in ticks.
  • class_instance - class instance the original function(not the lambda function!) belongs to.
  • run_in - int number of ticks after which the callback is called. Standard is 1, run next tick.
  • loops - How often the callback is called. -1 = infinite times. Standard is 1, run once.