Skip to content

Commit

Permalink
Fix accept kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Dec 21, 2024
1 parent 5d63cee commit 1615b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygame_menu/widgets/widget/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def button(
# If element is a function or callable
elif callable(action):
if not accept_kwargs:
widget = Button(title, button_id, action, *args, **kwargs)
widget = Button(title, button_id, action, *args)
else:
widget = Button(title, button_id, action, *args, **kwargs)

Expand Down

0 comments on commit 1615b23

Please sign in to comment.