phoenix_title wx.lib.agw.piectrl.ProgressPie

ProgressPie tries to emulate the behavior of ProgressDialog, but using a pie chart instead of a gauge.


class_hierarchy Class Hierarchy

Inheritance diagram for class ProgressPie:

appearance Control Appearance


wxMSW

wxMSW

wxMAC

wxMAC

wxGTK

wxGTK


super_classes Known Superclasses

wx.lib.agw.piectrl.PieCtrl


method_summary Methods Summary

__init__

Default class constructor.

GetFilledColour

Returns the colour that progressively fills the ProgressPie.

GetMaxValue

Returns the ProgressPie maximum value.

GetUnfilledColour

Returns the colour that is filled.

GetValue

Returns the ProgressPie value.

SetFilledColour

Sets the colour that progressively fills the ProgressPie .

SetMaxValue

Sets the ProgressPie maximum value.

SetUnfilledColour

Sets the colour that is filled.

SetValue

Sets the ProgressPie value.


api Class API

class ProgressPie(PieCtrl)

ProgressPie tries to emulate the behavior of ProgressDialog, 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 be None;

  • 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.