__init__(self,
widgets,
property,
duration,
ranges,
interpolator=LinerInterpolator,
stop_callback=None)
(Constructor)
| source code
|
Initialize Animation class.
- Parameters:
widgets - the widgets apply to this animation. the type of this param is an
gtk.Widget or an list of gtk.Widget.
property - the gtk.Widget's property used to do effect or an function to
change the actual effect.
duration - the time of this effect to continued, the unit of time is
millisecond
ranges - the range of the property's value. the type of this param is an
[lower,upper] or ([lower, upper], [lower,upper]), this is decsion
by the parameter of the 'widget' or 'widgets'.
interpolator - this is an function used to calculate the property value by the
current time and value range.
stop_callback - the callback when this animation stop.
|