Package libavg :: Module avg :: Class SimpleAnim

Class SimpleAnim


Base class for animations that change libavg node attributes by interpolating over a set amount of time. Constructing an animation object starts the animation. If abort() isn't needed, there is no need to hold on to the object - it will exist exactly as long as the animation lasts and then disappear.

The animation framework makes sure that only one animation per attribute of a node runs at any given time. If a second one is started, the first one is aborted.

Instance Methods

Inherited from unreachable.instance: __new__

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

    Inherited from AttrAnim
 
start(...)
Starts the animation.
    Inherited from Anim
 
__init__(...)
Raises an exception This class cannot be instantiated from Python
 
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__