From 76510d9cdc6316f3389bf000738b7d09d60671e9 Mon Sep 17 00:00:00 2001 From: Grimmys <funkyzermmy@gmail.com> Date: Thu, 4 Apr 2024 23:22:09 +0200 Subject: [PATCH] Fix argument issue for DynamicButton init --- src/pygamepopup/components/dynamic_button.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pygamepopup/components/dynamic_button.py b/src/pygamepopup/components/dynamic_button.py index e2c04d7..29a79d1 100644 --- a/src/pygamepopup/components/dynamic_button.py +++ b/src/pygamepopup/components/dynamic_button.py @@ -24,7 +24,7 @@ class DynamicButton(Button): The sequence will be iterated to determine the next inner value after a click. - This fluctuating value is the one that will be send has the first argument of + This fluctuating value is the one that will be sent has the first argument of the method called on click, and a different label will be displayed on the button for each different value of the sequence. @@ -80,7 +80,7 @@ def __init__( no_background, margin, disabled, - column_span + column_span=column_span ) self.values: Sequence[any] = values self.current_value_index: int = current_value_index