Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Module throbber :: Class Throbber |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Panel
--+ |PyPanel
--+ | Throbber
The first argument is either the name of a file that will be split into frames (a composite image) or a list of strings of image names that will be treated as individual frames. If a single (composite) image is given, then additional information must be provided: the number of frames in the image and the width of each frame. The first frame is treated as the "at rest" frame (it is not shown during animation, but only when Throbber.Rest() is called. A second, single image may be optionally specified to overlay on top of the animation. A label may also be specified to show on top of the animation.
Method Summary | |
---|---|
__init__(self,
parent,
id,
bitmap,
pos,
size,
frameDelay,
frames,
frameWidth,
label,
overlay,
reverse,
style,
name,
rest,
current,
direction,
sequence)
| |
Display previous image in sequence | |
DoGetBestSize(self)
| |
Draw(self,
dc)
| |
Display next image in sequence | |
Display next image in sequence according to direction | |
OnDestroyWindow(self,
event)
| |
OnPaint(self,
event)
| |
OnTimer(self,
event)
| |
Display previous image in sequence according to direction | |
Stop the animation and return to frame 0 | |
Change the direction of the animation | |
Returns True if the animation is running | |
Set current image | |
Set the font for the label | |
Delay between each frame | |
Change the text of the label | |
Set rest image | |
Order to display images | |
Start the animation | |
Stop the animation | |
Toggle the label | |
Toggle the overlay image | |
Update(self,
event)
| |
Wrap(self)
|
Property Summary |
---|
Instance Method Details |
---|
Decrement(self)Display previous image in sequence |
Increment(self)Display next image in sequence |
Next(self)Display next image in sequence according to direction |
Previous(self)Display previous image in sequence according to direction |
Rest(self)Stop the animation and return to frame 0 |
Reverse(self)Change the direction of the animation |
Running(self)Returns True if the animation is running |
SetCurrent(self, current)Set current image |
SetFont(self, font)Set the font for the label
|
SetFrameDelay(self, frameDelay=0.050000000000000003)Delay between each frame |
SetLabel(self, label)Change the text of the label
|
SetRest(self, rest)Set rest image |
SetSequence(self, sequence=None)Order to display images |
Start(self)Start the animation |
Stop(self)Stop the animation |
ToggleLabel(self, state=None)Toggle the label |
ToggleOverlay(self, state=None)Toggle the overlay image |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:08:02 2007 | http://epydoc.sf.net |