简体   繁体   中英

Python GraphWin Stops Responding With Winsound

Everytime I run 'RyTunes.py', the sound plays, however, while it plays the window stops responding. Anyone know why?

Code: https://gyazo.com/01fb9808b54a8f0cb052e98f66e1f392

Thanks, Ryan

I figured it out! I simply swapped the "SND_FILENAME" flag to "SND_ASYNC" so that the thread would not stop.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM