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
Post a Comment