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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -