wx.lib.agw.piectrl.ProgressPie¶
ProgressPie
tries to emulate the behavior of ProgressDialog
, but
using a pie chart instead of a gauge.
Class Hierarchy¶
Control Appearance¶
Known Superclasses¶
Methods Summary¶
Default class constructor. |
|
Returns the colour that progressively fills the |
|
Returns the |
|
Returns the colour that is filled. |
|
Returns the |
|
Sets the colour that progressively fills the |
|
Sets the |
|
Sets the colour that is filled. |
|
Sets the |
Class API¶
- class ProgressPie(PieCtrl)¶
ProgressPie
tries to emulate the behavior ofProgressDialog
, but using a pie chart instead of a gauge.
Methods¶
- __init__(self, parent, maxvalue, value, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0)¶
Default class constructor.
- Parameters:
parent – the
PieCtrl
parent. Must not beNone
;id – window identifier. A value of -1 indicates a default value;
pos – the control position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxPython, depending on platform;
size – the control size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxPython, depending on platform;
style – the window style (unused);
name – the window name.
- GetFilledColour(self)¶
Returns the colour that progressively fills the
ProgressPie
.
- GetMaxValue(self)¶
Returns the
ProgressPie
maximum value.
- GetUnfilledColour(self)¶
Returns the colour that is filled.
- GetValue(self)¶
Returns the
ProgressPie
value.
- SetFilledColour(self, colour)¶
Sets the colour that progressively fills the
ProgressPie
.- Parameters:
colour – a valid
wx.Colour
object.
- SetMaxValue(self, value)¶
Sets the
ProgressPie
maximum value.- Parameters:
value – a floating point number representing the maximum value.
- SetUnfilledColour(self, colour)¶
Sets the colour that is filled.
- Parameters:
colour – a valid
wx.Colour
object.
- SetValue(self, value)¶
Sets the
ProgressPie
value.- Parameters:
value – a floating point number representing the new value.