Skip to content

Commit

Permalink
Documentation fix for Slider.step property: (kivy#7305)
Browse files Browse the repository at this point in the history
fixed wrongly documented default value and added a sentence for zero value behaviour.
  • Loading branch information
AndiEcker authored and hamlet4401 committed Jul 3, 2021
1 parent 4776896 commit d6d4ae8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kivy/uix/slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d6d4ae8

Please sign in to comment.