documentation index ◦ reference manual ◦ function index
Function: | ui.soundstopbehavior | (channel, result=False): |
Adding this behavior to the screen causes ui.interact to return result when there is no sound playing on the named music channel.
# Wait until either the user clicks, or the sound stops playing. python: ui.soundstopbehavior("music") ui.saybehavior() ui.interact()