__init__(self,
node,
attrName,
duration,
startValue,
endValue,
useInt=False,
onStop=None,
onStart=None)
(Constructor)
| source code
|
- Parameters:
node - The libavg node object to animate.
attrName - The name of the attribute to change. Must be a numeric attribute.
duration - The length of the animation in milliseconds.
startValue - Initial value of the attribute.
endValue - Value of the attribute after duration has elapsed.
useInt - If True, the attribute is always set to an integer value.
onStop - Python callable to invoke when duration has elapsed and the
animation has finished. This can be used to chain animations
together by using lambda to create a second animation.
- Overrides:
SimpleAnim.__init__
|