wx.ActivityIndicator¶
Small control showing an animation indicating that the program is currently busy performing some background task.
Added in version 4.1/wxWidgets-3.1.0.
Class Hierarchy¶
Control Appearance¶
Methods Summary¶
Default constructor. |
|
Create the control initialized using the default constructor. |
|
Returns |
|
Starts animation of the indicator. |
|
Stops the animation of the indicator. |
Class API¶
- class wx.ActivityIndicator(Control)¶
Possible constructors:
ActivityIndicator() -> None ActivityIndicator(parent, winid=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name="activityindicator") -> None
Small control showing an animation indicating that the program is currently busy performing some background task.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
Default constructor.
Use
Create
to really create the control after using this constructor.- Return type:
None
__init__ (self, parent, winid=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=”activityindicator”)
Constructor fully creating the control.
The arguments have the usual meanings and only parent is typically required.
- Parameters:
- Return type:
None
- Create(self, parent, winid=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name='activityindicator')¶
Create the control initialized using the default constructor.
This method can be used to finish the control creation if it hadn’t been done already by using the non-default constructor.
- static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶
- Parameters:
variant (WindowVariant)
- Return type:
- IsRunning(self)¶
Returns
True
if the control is currently showing activity.Returns
False
initially,True
onceStart
is called andFalse
again after callingStop
.- Return type:
bool
- Start(self)¶
Starts animation of the indicator.
Does nothing if the indicator is already running.
- Return type:
None