Forum Archive

Is there a way to stop music playing when I exit?

upwart

I have Scene based program with some background music.
When I abort the program with the X in the top righthand corner, the music continues to play.
Is there a way to avoid this?

omz

You can implement a stop method in your scene class that gets called automatically when you close it, so you could stop music playback there.

ccc

It might be wicked cool to add stop() to the docs: http://omz-software.com/pythonista/docs/ios/scene.html

omz

Oh thanks, didn't realize there's no documentation about that.