Package libavg :: Module avg :: Class StateAnim

Class StateAnim


Animation that executes one of several child animations depending on it's current state. The state can be None, in which case no animation is executed. None is the initial state. Note that changing the state of an animation during a start or stop callback of a child animation is not possible. An attempt to do so is silently ignored.

Instance Methods
 
__init__(...)
Raises an exception This class cannot be instantiated from Python
 
getState(...)
 
setDebug(...)
Setting this to true causes all state changes to be printed on the console.
 
setState(...)

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Inherited from Anim
 
abort(...)
Stops the animation.
 
isRunning(...)
Returns True if the animation is currently executing
 
setStartCallback(...)
Sets a python callable to be invoked when the animation starts.
 
setStopCallback(...)
Sets a python callable to invoke when the animation has finished running.
Properties

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 

Raises an exception This class cannot be instantiated from Python

Parameters:
  • states - A list of AnimState objects.
Overrides: object.__init__