AGW Logo

agw_title PiePart

This class handles the legend segments properties, such as value, colour and label.

hierarchy Inheritance Diagram

Inheritance diagram for: PiePart

Inheritance diagram of PiePart


method_summary Methods Summary

__init__Default class constructor.
GetColourReturns the segment colour.
GetLabelReturns the segment label.
GetValueReturns the segment absolute value.
SetColourSets the segment colour.
SetLabelSets the segment label.
SetValueSets the segment absolute value.

API Class API

class PiePart(object)[source]

This class handles the legend segments properties, such as value, colour and label.



__init__(value=0, colour=wx.BLACK, label="")[source]

Default class constructor.

Parameters:
  • value – the pie part value;
  • colour – the pie part colour;
  • label – the pie part text label.


GetColour()[source]

Returns the segment colour.



GetLabel()[source]

Returns the segment label.



GetValue()[source]

Returns the segment absolute value.



SetColour(colour)[source]

Sets the segment colour.

Parameters:colour – a valid wx.Colour object.


SetLabel(label)[source]

Sets the segment label.

Parameters:label – the pie part text label.


SetValue(value)[source]

Sets the segment absolute value.

Parameters:value – a floating point number representing the PiePart value.
Tree

Table Of Contents

Previous topic

PieCtrlLegend

Next topic

ProgressPie