Slider

Sliders allow users to choose values

class kivycupertino.uix.slider.CupertinoSlider(*args: Any, **kwargs: Any)

iOS style slider

../_images/demo14.gif
color_selected = [0, 0.5, 1, 1]

Color of the bar of occurred progress of CupertinoSlider

../_images/color_selected2.gif

Python

CupertinoSlider(color_selected=(1, 0, 0, 1))

KV

CupertinoSlider:
    color_selected: 1, 0, 0, 1
color_unselected = [0.7, 0.7, 0.7, 1]

Color of bar of not yet occurred progress of CupertinoSlider

../_images/color_unselected2.gif

Python

CupertinoSlider(color_unselected=(0.5, 0, 0, 1))

KV

CupertinoSlider:
    color_unselected: 0.5, 0, 0, 1
max = 100

Maximum value of CupertinoSlider

Python

CupertinoSlider(max=50)

KV

CupertinoSlider:
    max: 50
min = 0

Minimum value of CupertinoSlider

Python

CupertinoSlider(min=-50)

KV

CupertinoSlider:
    min: -50
on_touch_move(touch)

Callback when CupertinoSlider is dragged

Parameters

touch – Touch on CupertinoSlider

tap = True

If tapping CupertinoSlider can change its value

../_images/tap1.gif

Python

CupertinoSlider(tap=True)

KV

CupertinoSlider:
    tap: True
thumb_color = [1, 1, 1, 1]

Color of the thumb of CupertinoSlider

../_images/thumb_color.png

Python

CupertinoSlider(thumb_color=(1, 0, 0, 1))

KV

CupertinoSlider:
    thumb_color: 1, 0, 0, 1
value = 0

Value of CupertinoSlider

../_images/value1.png

Python

CupertinoSlider(value=50)

KV

CupertinoSlider:
    value: 50