enaml.widgets.dual_slider

Classes

DualSlider

A simple dual slider widget.

class enaml.widgets.dual_slider.DualSlider(parent=None, **kwargs)[source]

Bases: enaml.widgets.control.Control

A simple dual slider widget.

A dual slider can be used to select a range within a larger range of integral values.

minimum

The minimum slider value. If the minimum value is changed such that it becomes greater than the current value or the maximum value, then those values will be adjusted. The default is 0.

maximum

The maximum slider value. If the maximum value is changed such that it becomes smaller than the current value or the minimum value, then those values will be adjusted. The default is 100.

low_value

The low position value of the DualSlider. The value will be clipped to always fall between the minimum and maximum and be smaller than the high value.

high_value

The high position value of the DualSlider. The value will be clipped to always fall between the minimum and maximum and be larger than the low value.

tick_position

A TickPosition enum value indicating how to display the tick marks. Note that the orientation takes precedence over the tick mark position and an incompatible tick position will be adapted according to the current orientation. The default tick position is ‘bottom’.

tick_interval

The interval to place between slider tick marks in value units (as opposed to pixels). The minimum value is 0, which indicates that the choice is left up to the client.

orientation

The orientation of the slider. The default is ‘horizontal’. When the orientation is flipped the tick positions (if set) also adapt to reflect the changes (e.g. the LEFT becomes TOP when the orientation becomes horizontal).

auto_hug

Whether or not to automatically adjust the ‘hug_width’ and ‘hug_height’ values based on the value of ‘orientation’.

proxy

A reference to the ProxyDualSlider object.