Package horizons :: Package gui :: Package widgets :: Module stepslider :: Class StepSlider
[hide private]
[frames] | no frames]

Class StepSlider

source code

fife.extensions.pychan.widgets.Slider --+
                                        |
                                       StepSlider

The StepSlider automatically snaps the steps suggested by stepsize.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs) source code
 
_mouse_released_snap(self)
When mouse is released, snap slider marker to discrete value to avoid the marker being displayed in-between steps.
source code
 
capture(self, callback, event_name='action', group_name='default')
Intercept captures for `action` and store the callback in our list.
source code
 
_update(self)
Notify listeners when a different step was selected.
source code
 
_set_steps(self, steps) source code
 
_get_steps(self) source code
 
_get_value(self) source code
 
_set_value(self, value) source code
Class Variables [hide private]
  ATTRIBUTES = Widget.ATTRIBUTES+ [IntAttr('orientation'), IntAt...
  steps = property(_get_steps, _set_steps)
  value = property(_get_value, _set_value)
Method Details [hide private]

capture(self, callback, event_name='action', group_name='default')

source code 

Intercept captures for `action` and store the callback in our list. We'll only call them when a step changed.


Class Variable Details [hide private]

ATTRIBUTES

Value:
Widget.ATTRIBUTES+ [IntAttr('orientation'), IntAttr('marker_length'), \
UnicodeAttr('steps')]