Package wx :: Package lib :: Package agw :: Module pyprogress :: Class ProgressGauge
[frames | no frames]

Type ProgressGauge

object --+                
         |                
    Object --+            
             |            
    EvtHandler --+        
                 |        
            Window --+    
                     |    
              PyWindow --+
                         |
                        ProgressGauge


This class provides a visual alternative for wx.Gauge.
Method Summary
  __init__(self, parent, id, pos, size)
Default class constructor.
  DrawProgress(self, dc, xsize, ysize, increment)
Actually draws the sliding bar.
  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.
  OnPaint(self, event)
Handles the wx.EVT_PAINT event for ProgressGauge.
  SetFirstGradientColour(self, colour)
Sets the first gradient colour.
  SetGaugeBackground(self, colour)
Sets the gauge background colour.
  SetGaugeProportion(self, proportion)
Sets 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.
  SetSecondGradientColour(self, colour)
Sets the second gradient colour.
  Update(self)
Updates the gauge with a new value.

Property Summary

Instance Method Details

__init__(self, parent, id=-1, pos=wx.Point(-1, -1), size=(-1, 30))
(Constructor)

Default class constructor.
Overrides:
wx.PyWindow.__init__

DrawProgress(self, dc, xsize, ysize, increment)

Actually draws the sliding bar.

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.

OnPaint(self, event)

Handles the wx.EVT_PAINT event for ProgressGauge.

SetFirstGradientColour(self, colour)

Sets the first gradient colour.

SetGaugeBackground(self, colour)

Sets the gauge background colour.

SetGaugeProportion(self, proportion)

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

SetSecondGradientColour(self, colour)

Sets the second gradient colour.

Update(self)

Updates the gauge with a new value.
Overrides:
wx.Window.Update

Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:55:39 2009 http://epydoc.sf.net