This class handles the legend segments properties, such as value, colour and label.
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. |
PiePart
(object)¶This class handles the legend segments properties, such as value, colour and label.
__init__
(self, value=0, colour=wx.BLACK, label="")¶Default class constructor.
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.
label – the pie part text label.