Slider

class pyto_ui.Slider(value: float = 0.5)

A control used to select a single value from a continuous range of values. The default range is located between 0 and 1. The function passed to action will be called when the slider changes its value.

property maximum_track_color: Color

The color used to tint the default maximum track.

Return type:

pyto_ui.Color

property maximum_value: float

The maximum value of the slider.

Return type:

float

property minimum_track_color: Color

The color used to tint the default minimum track.

Return type:

pyto_ui.Color

property minimum_value: float

The minimum value of the slider.

Return type:

float

set_value_with_animation(value: float)

Sets the value of the slider with an animation.

Parameters:

value – The value of the slider.

property thumb_color: Color

The color used to tint the default thumb.

Return type:

pyto_ui.Color

property value: float

The value of the slider between its range.

Return type:

float