This class provides a visual alternative for wx.Gauge.
__init__ | Default class constructor. |
DrawProgress | Actually draws the sliding bar. |
GetFirstGradientColour | Returns the first gradient colour. |
GetGaugeBackground | Returns the gauge background colour. |
GetGaugeProportion | Returns the relative proportion between the sliding bar and the |
GetGaugeSteps | Returns the number of steps the gauge performs before switching from |
GetSecondGradientColour | Returns the second gradient colour. |
OnEraseBackground | Handles the wx.EVT_ERASE_BACKGROUND event for ProgressGauge. |
OnPaint | Handles the wx.EVT_PAINT event for ProgressGauge. |
SetFirstGradientColour | Sets the first gradient colour. |
SetGaugeBackground | Sets the gauge background colour. |
SetGaugeProportion | Sets the relative proportion between the sliding bar and the whole gauge. |
SetGaugeSteps | Sets the number of steps the gauge performs before switching from forward to backward (or vice-versa) movement. |
SetSecondGradientColour | Sets the second gradient colour. |
Update | Updates the gauge with a new value. |
This class provides a visual alternative for wx.Gauge.
Default class constructor.
Parameters: |
|
---|
Actually draws the sliding bar.
Parameters: |
|
---|
Returns the relative proportion between the sliding bar and the whole gauge.
Returns the number of steps the gauge performs before switching from forward to backward (or vice-versa) movement.
Handles the wx.EVT_ERASE_BACKGROUND event for ProgressGauge.
Parameters: | event – a wx.EraseEvent event to be processed. |
---|
Note
This method is intentionally empty to reduce flicker.
Handles the wx.EVT_PAINT event for ProgressGauge.
Parameters: | event – a wx.PaintEvent event to be processed. |
---|
Sets the first gradient colour.
Parameters: | colour – a valid wx.Colour object. |
---|
Sets the gauge background colour.
Parameters: | colour – a valid wx.Colour object. |
---|
Sets the relative proportion between the sliding bar and the whole gauge.
Parameters: | proportion – a floating point number representing the relative proportion between the sliding bar and the whole gauge. |
---|
Sets the number of steps the gauge performs before switching from forward to backward (or vice-versa) movement.
Parameters: | steps – the number of steps the gauge performs before switching from forward to backward (or vice-versa) movement. |
---|
Sets the second gradient colour.
Parameters: | colour – a valid wx.Colour object. |
---|