Slider

class Slider

A Slider can be used where a number is expected, for example as a coordinate for a Point, or in a calculation with a Number.

Slider(min_value, max_value, **kwargs)

Create a new Slider allowing values between the given min_value and the given max_value. Keyword args can be:

  • increment — number, default 0.1

  • speed — number, default 1.0

  • width — number, default 100

  • isAngle — bool, default false

  • isHorizontal — bool, default true

  • isAnimating — bool, default false

  • isRandom — bool, default false

property value

(Get/set) The current value of the Slider. Getting value gives a Python float. If you try to set value outside the range given when constructing the Slider, the value is clamped to the appropriate end of the range.

A Slider also has the following common properties: