From 0e15c78eddf8182d14339189ebe102fc0db12735 Mon Sep 17 00:00:00 2001 From: Joestanky <104093920+Joestanky@users.noreply.github.com> Date: Sat, 19 Aug 2023 15:16:56 -0400 Subject: [PATCH] Update rangeslider width and default parameter names changed the "width" and "default" parameters to "range_width" and "default_value" so they're similar to Doc names --- pygame_menu/widgets/widget/rangeslider.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pygame_menu/widgets/widget/rangeslider.py b/pygame_menu/widgets/widget/rangeslider.py index c11397df..4b5c96cb 100644 --- a/pygame_menu/widgets/widget/rangeslider.py +++ b/pygame_menu/widgets/widget/rangeslider.py @@ -1115,7 +1115,7 @@ class RangeSliderManager(AbstractWidgetManager, ABC): def range_slider( self, title: str, - default: RangeSliderValueType, + default_value: RangeSliderValueType, range_values: RangeSliderRangeValueType, increment: Optional[NumberType] = None, onchange: CallbackType = None, @@ -1123,7 +1123,7 @@ def range_slider( onselect: Optional[Callable[[bool, 'Widget', 'pygame_menu.Menu'], Any]] = None, rangeslider_id: str = '', value_format: RangeSliderValueFormatType = lambda x: str(round(x, 3)), - width: int = 150, + range_width: int = 150, **kwargs ) -> 'pygame_menu.widgets.RangeSlider': """ @@ -1271,9 +1271,9 @@ def range_slider( widget = RangeSlider( title=title, rangeslider_id=rangeslider_id, - default_value=default, + default_value=default_value, range_values=range_values, - range_width=width, + range_width=range_width, increment=increment, onchange=onchange, onreturn=onreturn,