From bde580885a1368b7d644ae905e294e9e0af6e150 Mon Sep 17 00:00:00 2001 From: Pablo Pizarro R Date: Fri, 3 Nov 2023 00:19:26 -0300 Subject: [PATCH] Revert "Update rangeslider width and default parameter 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 4b5c96cb..c11397df 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_value: RangeSliderValueType, + default: 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)), - range_width: int = 150, + 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_value, + default_value=default, range_values=range_values, - range_width=range_width, + range_width=width, increment=increment, onchange=onchange, onreturn=onreturn,