Stop/Play on 1 Button how?

1.03K 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 July 18, 2024
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 May 22, 2024
Attached Files:
0

Just set up the control override in different ways for each mapping…
Play could be on delay 0 secs, while Stop could be set up on 2 secs delay…
also you can try setting it with steps…

admin Changed status to publish May 22, 2024
Attached Files:
0

@Dieter danke dir ich werd es so versuchen!

@ G3r5ben – I did this but I was not happy with it. I just wand to press the button to play and stop I will try dieters way. But thx for help anyway

admin Changed status to publish May 22, 2024
Attached Files:
0

@Dieter danke dir ich werd es so versuchen!

@ G3r5ben – I did this but I was not happy with it. I just wand to press the button to play and stop I will try dieters way. But thx for help anyway

admin Changed status to publish May 22, 2024
Attached Files:
0

Wow thanks I will try this! Where do I need to put this file again? Thanks again for your work.

admin Changed status to publish May 22, 2024
Attached Files: