multithreading - Stop a thread by a tkinter trigger? -


i'm making program displays messagebox , plays .wav file through thread @ same time. problem is, sound file big, , stop playing after press 'ok'. appreciated. i'm using python 3.3 on windows 7. here's code box , audio:

t1 = threading.thread(target=winsound.playsound, args=("c:/interactive program/lip source files/skyisup.wav", 2)) t1.start() lipgui.msgbox("the sky up!") 

i fixed it. needed pass winsound.snd_async winsound.playsound() instead of '2'. stop audio passing winsound.playsound(none, 0)!


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -