Skip to content

Commit 1615b23

Browse files
committed
Fix accept kwargs
1 parent 5d63cee commit 1615b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygame_menu/widgets/widget/button.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def button(
424424
# If element is a function or callable
425425
elif callable(action):
426426
if not accept_kwargs:
427-
widget = Button(title, button_id, action, *args, **kwargs)
427+
widget = Button(title, button_id, action, *args)
428428
else:
429429
widget = Button(title, button_id, action, *args, **kwargs)
430430

0 commit comments

Comments
 (0)