Module PyProgress :: Class ProgressGauge
[hide private]
[frames] | no frames]

Class ProgressGauge

source code

     object --+                
              |                
wx._core.Object --+            
                  |            
wx._core.EvtHandler --+        
                      |        
        wx._core.Window --+    
                          |    
       wx._windows.PyWindow --+
                              |
                             ProgressGauge

This class provides a visual alternative for wx.Gauge.

Instance Methods [hide private]
  __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=(-1,30))
Default class constructor.
  GetFirstGradientColour(self)
Returns the first gradient colour.
  SetFirstGradientColour(self, colour)
Sets the first gradient colour.
  GetSecondGradientColour(self)
Returns the second gradient colour.
  SetSecondGradientColour(self, colour)
Sets the second gradient colour.
  GetGaugeBackground(self)
Returns the gauge background colour.
  SetGaugeBackground(self, colour)
Sets the gauge background colour.
  SetGaugeSteps(self, steps)
Sets the number of steps the gauge performs before switching from forward to backward (or vice-versa) movement.
  GetGaugeSteps(self)
Returns the number of steps the gauge performs before switching from forward to backward (or vice-versa) movement.
  GetGaugeProportion(self)
Returns the relative proportion between the sliding bar and the whole gauge.
  SetGaugeProportion(self, proportion)
Sets the relative proportion between the sliding bar and the whole gauge.
  OnEraseBackground(self, event)
Handles the wx.EVT_ERASE_BACKGROUND event for ProgressGauge.
  OnPaint(self, event)
Handles the wx.EVT_PAINT event for ProgressGauge.
  DrawProgress(self, dc, xsize, ysize, increment)
Actually draws the sliding bar.
  Update(self)
Updates the gauge with a new value.

Inherited from wx._windows.PyWindow: DoEraseBackground, DoGetBestSize, DoGetClientSize, DoGetPosition, DoGetSize, DoGetVirtualSize, DoMoveWindow, DoSetClientSize, DoSetSize, DoSetVirtualSize, GetDefaultAttributes, OnInternalIdle, SetBestSize, __repr__, base_AcceptsFocus, base_AcceptsFocusFromKeyboard, base_AddChild, base_DoGetBestSize, base_DoGetClientSize, base_DoGetPosition, base_DoGetSize, base_DoGetVirtualSize, base_DoMoveWindow, base_DoSetClientSize, base_DoSetSize, base_DoSetVirtualSize, base_GetDefaultAttributes, base_GetMaxSize, base_InitDialog, base_OnInternalIdle, base_RemoveChild, base_ShouldInheritColours, base_TransferDataFromWindow, base_TransferDataToWindow, base_Validate

Inherited from wx._windows.PyWindow (private): _setCallbackInfo

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, Create, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDropTarget, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HitTest, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsShown, IsShownOnScreen, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PrepareDC, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SendSizeEvent, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetLabel, SetLayoutDirection, SetMaxSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, Thaw, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, UpdateWindowUI, UseBgCol, Validate, WarpPointer

Inherited from wx._core.EvtHandler: AddPendingEvent, AllowReentrance, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, IsEventHandlingInProgress, IsReentranceAllowed, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.EvtHandler (private): _setOORInfo

Inherited from wx._core.Object: GetClassName

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Static Methods [hide private]

Inherited from wx._core.Window: FindFocus, GetCapture, GetClassDefaultAttributes, NewControlId, NextControlId, PrevControlId


Properties [hide private]

Inherited from wx._windows.PyWindow: thisown

Inherited from wx._core.Window: AcceleratorTable, AdjustedBestSize, AutoLayout, BackgroundColour, BackgroundStyle, BestFittingSize, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, Handle, HelpText, Id, Label, LayoutDirection, MaxHeight, MaxSize, MaxWidth, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, TopLevel, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from object: __class__


Method Details [hide private]

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

source code 
Default class constructor.
Overrides: wx._windows.PyWindow.__init__

GetFirstGradientColour(self)

source code 
Returns the first gradient colour.

SetFirstGradientColour(self, colour)

source code 
Sets the first gradient colour.

GetSecondGradientColour(self)

source code 
Returns the second gradient colour.

SetSecondGradientColour(self, colour)

source code 
Sets the second gradient colour.

GetGaugeBackground(self)

source code 
Returns the gauge background colour.

SetGaugeBackground(self, colour)

source code 
Sets the gauge background colour.

SetGaugeSteps(self, steps)

source code 
Sets the number of steps the gauge performs before switching from forward to backward (or vice-versa) movement.

GetGaugeSteps(self)

source code 
Returns the number of steps the gauge performs before switching from forward to backward (or vice-versa) movement.

GetGaugeProportion(self)

source code 
Returns the relative proportion between the sliding bar and the whole gauge.

SetGaugeProportion(self, proportion)

source code 
Sets the relative proportion between the sliding bar and the whole gauge.

OnEraseBackground(self, event)

source code 
Handles the wx.EVT_ERASE_BACKGROUND event for ProgressGauge.

OnPaint(self, event)

source code 
Handles the wx.EVT_PAINT event for ProgressGauge.
Overrides: wx._core.Window.OnPaint

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

source code 
Actually draws the sliding bar.

Update(self)

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