Package libavg :: Module anim :: Class SimpleAnim

Class SimpleAnim

source code


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 silently aborted.

Instance Methods
 
__init__(self, node, attrName, duration, useInt, onStop, onStart) source code
 
setHandler(self, onStop, onAbort) source code
 
start(self, keepAttr=False) source code
 
abort(self)
Stops the animation.
source code
 
isDone(self)
Returns True if the animation has run its course.
source code
Method Details

abort(self)

source code 

Stops the animation. Does not call onStop()