Inheritance diagram for wx.animate.Animation:
This class encapsulates the concept of a platform-dependent animation. An animation is a sequence of frames of the same size.
Sound is not supported by wx.animate.Animation.
See also
Loads an animation from a file.
Parameters:
Returns:
Returns the delay for the i-th frame in milliseconds. If -1 is returned the frame is to be displayed forever.
Parameters:
Returns:
int
Parameters:
Returns:
int
Returns the number of frames for this animation.
Returns:
int
Returns True if animation data is present.
Returns:
bool
Loads an animation from the given stream.
Returns True if the operation succeeded, False otherwise.
Parameters:
stream (wx.InputStream): The stream to use to oad the animation.
type (int): One of the following values:
Animation Type |
Description |
---|---|
wx.animate.ANIMATION_TYPE_GIF |
Load an animated GIF file. |
wx.animate.ANIMATION_TYPE_ANI |
Load an ANI file. |
wx.animate.ANIMATION_TYPE_ANY |
Try to autodetect the filetype. |
Returns:
bool
Loads an animation from a file.
Returns True if the operation succeeded, False otherwise.
Parameters:
name (string): A filename.
type (int): One of the following values:
Animation Type |
Description |
---|---|
wx.animate.ANIMATION_TYPE_GIF |
Load an animated GIF file. |
wx.animate.ANIMATION_TYPE_ANI |
Load an ANI file. |
wx.animate.ANIMATION_TYPE_ANY |
Try to autodetect the filetype. |
Returns:
bool