tkinter - python 3 threading single statement? -


i trying create python 3 program in want display yes or no question tkinter.messagebox.askyesno() while simultaniously executing winsound.playsound("systemexclamation", winsound.snd_alias). if put winsound statement first, delays until sound finished playing before creating box. if put after, plays after user clicked yes or no, isn't ideal. trying thread statement , understand threading.thread(target=target).start() requires defined function.

put playsound first, snd_async flag:

winsound.playsound("systemexclamation", winsound.snd_alias|winsound.snd_async) 

Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

python - Received unregistered task using Celery with Django -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -