wx.lib.agw.piectrl.PiePart¶
This class handles the legend segments properties, such as value, colour and label.
Class Hierarchy¶
Methods Summary¶
Default class constructor. |
|
Returns the segment colour. |
|
Returns the segment label. |
|
Returns the segment absolute value. |
|
Sets the segment colour. |
|
Sets the segment label. |
|
Sets the segment absolute value. |
Class API¶
- class PiePart(object)¶
This class handles the legend segments properties, such as value, colour and label.
Methods¶
- __init__(self, value=0, colour=wx.BLACK, label='')¶
Default class constructor.
- Parameters:
value – the pie part value;
colour – the pie part colour;
label – the pie part text label.
- GetColour(self)¶
Returns the segment colour.
- GetLabel(self)¶
Returns the segment label.
- GetValue(self)¶
Returns the segment absolute value.
- SetLabel(self, label)¶
Sets the segment label.
- Parameters:
label – the pie part text label.