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