From d6d4ae84c774f65e796d27ff42bf7be562e23587 Mon Sep 17 00:00:00 2001 From: Andreas Ecker Date: Sun, 3 Jan 2021 02:02:22 +0000 Subject: [PATCH] Documentation fix for Slider.step property: (#7305) fixed wrongly documented default value and added a sentence for zero value behaviour. --- kivy/uix/slider.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kivy/uix/slider.py b/kivy/uix/slider.py index 0d7e080acd..740a8044c1 100755 --- a/kivy/uix/slider.py +++ b/kivy/uix/slider.py @@ -112,11 +112,13 @@ class Slider(Widget): .. versionadded:: 1.4.0 Determines the size of each interval or step the slider takes between - min and max. If the value range can't be evenly divisible by step the - last step will be capped by slider.max + :attr:`min` and :attr:`max`. If the value range can't be evenly + divisible by step the last step will be capped by slider.max. + A zero value will result in the smallest possible intervals/steps, + calculated from the (pixel) position of the slider. :attr:`step` is a :class:`~kivy.properties.NumericProperty` and defaults - to 1.''' + to 0.''' background_horizontal = StringProperty( 'atlas://data/images/defaulttheme/sliderh_background')