python - How to play music in background Tkinter with winsound -


i trying make program , have pokemon theme in background while tkinter running. program doesnt start before song over. how can make python keeps winsound active while running rest of program.'

winsound.playsound('song.wav', winsound.snd_alias) 

this have. after code whole program starts.

use winsound.snd_async make call return immediatly:

winsound.playsound('song.wav', winsound.snd_alias | winsound.snd_async) 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -