Phoenix Logo

phoenix_title wx.lib.agw.piectrl.PiePart

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


class_hierarchy Class Hierarchy

Inheritance diagram for class PiePart:


method_summary Methods Summary

__init__ Default class constructor.
GetColour Returns the segment colour.
GetLabel Returns the segment label.
GetValue Returns the segment absolute value.
SetColour Sets the segment colour.
SetLabel Sets the segment label.
SetValue Sets the segment absolute value.

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



SetColour(self, colour)

Sets the segment colour.

Parameters:colour – a valid wx.Colour object.


SetLabel(self, label)

Sets the segment label.

Parameters:label – the pie part text label.


SetValue(self, value)

Sets the segment absolute value.

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