Package wx :: Class Slider
[frames | no frames]

Type Slider

object --+                
         |                
    Object --+            
             |            
    EvtHandler --+        
                 |        
            Window --+    
                     |    
               Control --+
                         |
                        Slider


Proxy of C++ Slider class


Method Summary
Control __init__(self, parent, id, pos, size, style, validator, name)
Create a Control.
  ClearSel(self)
  ClearTicks(self)
bool Create(self, parent, id, pos, size, style, validator, name)
Do the 2nd phase and create the GUI control.
VisualAttributes GetClassDefaultAttributes(variant)
Get the default attributes for this class. (Static method)
int GetLineSize(self)
int GetMax(self)
int GetMin(self)
int GetPageSize(self)
int GetSelEnd(self)
int GetSelStart(self)
int GetThumbLength(self)
int GetTickFreq(self)
int GetValue(self)
  SetLineSize(self, lineSize)
  SetMax(self, maxValue)
  SetMin(self, minValue)
  SetPageSize(self, pageSize)
  SetRange(self, minValue, maxValue)
  SetSelection(self, min, max)
  SetThumbLength(self, lenPixels)
  SetTick(self, tickPos)
  SetTickFreq(self, n, pos)
  SetValue(self, value)

Property Summary
  LineSize: See GetLineSize and SetLineSize
  Max: See GetMax and SetMax
  Min: See GetMin and SetMin
  PageSize: See GetPageSize and SetPageSize
  SelEnd: See GetSelEnd
  SelStart: See GetSelStart
  thisown: The membership flag
  ThumbLength: See GetThumbLength and SetThumbLength
  TickFreq: See GetTickFreq and SetTickFreq
  Value: See GetValue and SetValue

Instance Method Details

__init__(self, parent, id=-1, value=0, minValue=0, maxValue=100, pos=DefaultPosition, size=DefaultSize, style=SL_HORIZONTAL, validator=DefaultValidator, name=SliderNameStr)
(Constructor)

Create a Control. Normally you should only call this from a subclass' __init__ as a plain old wx.Control is not very useful.

Parameters:
parent
           (type=Window)

id
           (type=int)

pos
           (type=Point)

size
           (type=Size)

style
           (type=long)

validator
           (type=Validator)

name
           (type=String)

Returns:
Control
Overrides:
wx.Control.__init__ (inherited documentation)

Create(self, parent, id=-1, value=0, minValue=0, maxValue=100, pos=DefaultPosition, size=DefaultSize, style=SL_HORIZONTAL, validator=DefaultValidator, name=SliderNameStr)

Do the 2nd phase and create the GUI control.

Parameters:
parent
           (type=Window)

id
           (type=int)

pos
           (type=Point)

size
           (type=Size)

style
           (type=long)

validator
           (type=Validator)

name
           (type=String)

Returns:
bool
Overrides:
wx.Control.Create (inherited documentation)

Static Method Details

GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)

Get the default attributes for this class. This is useful if you want to use the same font or colour in your own control as in a standard control -- which is a much better idea than hard coding specific colours or fonts which might look completely out of place on the user's system, especially if it uses themes.

The variant parameter is only relevant under Mac currently and is ignore under other platforms. Under Mac, it will change the size of the returned font. See wx.Window.SetWindowVariant for more about this.

Parameters:
variant
           (type=int)

Returns:
VisualAttributes

Property Details

LineSize

See GetLineSize and SetLineSize

Get Method:
GetLineSize(self)
Set Method:
SetLineSize(self, lineSize)

Max

See GetMax and SetMax

Get Method:
GetMax(self)
Set Method:
SetMax(self, maxValue)

Min

See GetMin and SetMin

Get Method:
GetMin(self)
Set Method:
SetMin(self, minValue)

PageSize

See GetPageSize and SetPageSize

Get Method:
GetPageSize(self)
Set Method:
SetPageSize(self, pageSize)

SelEnd

See GetSelEnd

Get Method:
GetSelEnd(self)

SelStart

See GetSelStart

Get Method:
GetSelStart(self)

thisown

The membership flag

ThumbLength

See GetThumbLength and SetThumbLength

Get Method:
GetThumbLength(self)
Set Method:
SetThumbLength(self, lenPixels)

TickFreq

See GetTickFreq and SetTickFreq

Get Method:
GetTickFreq(self)
Set Method:
SetTickFreq(self, n, pos)

Value

See GetValue and SetValue

Get Method:
GetValue(self)
Set Method:
SetValue(self, value)

Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:08:08 2007 http://epydoc.sf.net