Synchronizing a sound with a widget change

ast nomail at invalid.com
Thu Nov 13 14:25:43 CET 2014


"Dave Angel" <davea at davea.name> a écrit dans le message de 
news:mailman.15773.1415878987.18130.python-list at python.org...

>
> I don't use Windows, but from what I read,  winsound.Beep is a
> blocking call, and therefore must not be used in the main thread
> of a gui environment.
> Once the function is called, no events are
> processed.
>
>
> It seems like you need winsound.SND_ASYNC
>

Yes, you are right.
I have to use winsound.PlaySound(sound, flags)
with flag = winsound.SND_ASYNC

thx 




More information about the Python-list mailing list