This class displays a legend window for the classic PieCtrl.
__init__ | Default class constructor. |
GetBackColour | Returns the legend background colour. |
GetHorizontalBorder | Returns the legend’s horizontal border, in pixels. |
GetLabelColour | Returns the legend label colour. |
GetLabelFont | Returns the legend label font. |
GetVerticalBorder | Returns the legend’s vertical border, in pixels. |
IsTransparent | Returns whether the legend background is transparent or not. |
OnPaint | Handles the wx.EVT_PAINT event for PieCtrlLegend. |
RecreateBackground | Recreates the legend background. |
SetBackColour | Sets the legend background colour. |
SetHorizontalBorder | Sets the legend’s horizontal border. |
SetLabelColour | Sets the legend label colour. |
SetLabelFont | Sets the legend label font. |
SetTransparent | Toggles the legend transparency (visibility). |
SetVerticalBorder | Sets the legend’s vertical border. |
This class displays a legend window for the classic PieCtrl.
Default class constructor.
Parameters: |
|
---|
Handles the wx.EVT_PAINT event for PieCtrlLegend.
Parameters: | event – a wx.PaintEvent event to be processed. |
---|
Recreates the legend background.
Parameters: | parentdc – an instance of wx.DC. |
---|
Sets the legend background colour.
Parameters: | colour – a valid wx.Colour object. |
---|
Sets the legend’s horizontal border.
Parameters: | value – the horizontal border thickness, in pixels. |
---|
Sets the legend label colour.
Parameters: | colour – a valid wx.Colour object. |
---|
Toggles the legend transparency (visibility).
Parameters: | value – True to set the legend as transparent, False otherwise. |
---|