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

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -