Stop/Play on 1 Button how?

3.65K viewsGeneral
0

Hi, I’m trying to map Play and Stop on same button. How is this possible what do I have to do?

Thanks for help

Tbull Answered question
Attached Files:
0

Take the button as a listener and write a reaction like this:

if self.song().is_playing:
self.song().stop_playing()
else:
self.song().start_playing()

Dieter

admin Changed status to publish
Attached Files:
You are viewing 1 out of 8 answers, click here to view all answers.