PyQt5 Assign multiple functions to a button
Unsolved
General and Desktop
-
Hey, i want to assign multiple functions to a button but the second function doesnt execute when i click the button. It works when i only connect the second function to the button. That's the code snipped:
ui.button_start.clicked.connect(lambda: bot.accept_request(loop=True)) ui.button_start.clicked.connect(lambda: ui.button_start.setText("Stop"))
i already searched on the internet and they say that it should work, but it doesn't :(
I'm happy about every answer! :)