.. default-domain:: py .. highlight:: py .. currentmodule:: UI Slider ====== .. class:: Slider A control for choosing a number by dragging a handle along a track. Added to a :class:`Canvas` or a :class:`Panel`. | Base class: :class:`InputControl` .. container:: inherited-members .. rubric:: Inherited Members * From :class:`InputControl`: :attr:`~InputControl.changed` * From :class:`Control`: :attr:`~Control.interactable`, :attr:`~Control.color`, :attr:`~Control.tooltip` * From :class:`Object`: :attr:`~Object.rect_transform`, :attr:`~Object.layout_element`, :attr:`~Object.visible`, :meth:`~Object.remove` .. attribute:: value The value of the slider, between :attr:`Slider.min` and :attr:`Slider.max`. Setting a value outside the range is refused. :Attribute: Can be read or written :rtype: float .. attribute:: min The value at the low end of the slider, which is its left hand end, or the bottom of a vertical slider. Must not be greater than :attr:`Slider.max`. :Attribute: Can be read or written :rtype: float .. attribute:: max The value at the high end of the slider, which is its right hand end, or the top of a vertical slider. Must not be less than :attr:`Slider.min`. :Attribute: Can be read or written :rtype: float