====== .local/lib/python3.11/site-packages/streamdeck_ui/gui.py ====== line 522 # Note that the button click event captures the ui variable, the current button # and all the other buttons for button in buttons: #button.clicked.connect(lambda button=button, buttons=buttons: button_clicked(ui, button, buttons)) #button.clicked.connect(lambda a=button, buttons=buttons: button_clicked(ui, a, buttons)) # micha lambda hack 2024-04-22 def x(ui,button,buttons): def y(): return button_clicked(ui, button,buttons) return y button.clicked.connect( x(ui, button, buttons) )