 
       wx.lib.agw.pyprogress.ProgressGauge¶
  wx.lib.agw.pyprogress.ProgressGauge¶This class provides a visual alternative for Gauge.
 Methods Summary¶
 Methods Summary¶| __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_BACKGROUNDevent forProgressGauge. | 
| OnPaint | Handles the wx.EVT_PAINTevent forProgressGauge. | 
| SetFirstGradientColour | Sets the first gradient colour. | 
| SetGaugeBackground | Sets the gauge background colour. | 
| SetGaugeProportion | Sets the relative proportion between the sliding bar and the | 
| SetGaugeSteps | Sets the number of steps the gauge performs before switching from | 
| SetSecondGradientColour | Sets the second gradient colour. | 
| Update | Updates the gauge with a new value. | 
 Class API¶
 Class API¶ProgressGauge(wx.Window)¶This class provides a visual alternative for Gauge.
__init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=(-1, 30))¶Default class constructor.
| Parameters: | 
 | 
|---|
DrawProgress(self, dc, xsize, ysize, increment)¶Actually draws the sliding bar.
| Parameters: | 
 | 
|---|
GetFirstGradientColour(self)¶Returns the first gradient colour.
GetGaugeBackground(self)¶Returns the gauge background colour.
GetGaugeProportion(self)¶Returns the relative proportion between the sliding bar and the whole gauge.
GetGaugeSteps(self)¶Returns the number of steps the gauge performs before switching from forward to backward (or vice-versa) movement.
GetSecondGradientColour(self)¶Returns the second gradient colour.
OnEraseBackground(self, event)¶Handles the wx.EVT_ERASE_BACKGROUND event for ProgressGauge.
| Parameters: | event – a EraseEventevent to be processed. | 
|---|
Note
This method is intentionally empty to reduce flicker.
OnPaint(self, event)¶Handles the wx.EVT_PAINT event for ProgressGauge.
| Parameters: | event – a PaintEventevent to be processed. | 
|---|
SetFirstGradientColour(self, colour)¶Sets the first gradient colour.
| Parameters: | colour – a valid wx.Colourobject. | 
|---|
SetGaugeBackground(self, colour)¶Sets the gauge background colour.
| Parameters: | colour – a valid wx.Colourobject. | 
|---|
SetGaugeProportion(self, proportion)¶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. | 
|---|
SetGaugeSteps(self, steps)¶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. | 
|---|
SetSecondGradientColour(self, colour)¶Sets the second gradient colour.
| Parameters: | colour – a valid wx.Colourobject. | 
|---|
Update(self)¶Updates the gauge with a new value.