streamdeck:patch
Dies ist eine alte Version des Dokuments!
.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) )
streamdeck/patch.1728725601.txt.gz · Zuletzt geändert: 2024/10/12 09:33 von micha