I m automating some windows stuff with Python, using PIL to take screenshots and such. the issue is that sometimes, deep in some function, I ll do a time.sleep(1)
and the GUI app I m interfacing with will freeze for that second. This is weird cause doing time.sleep
in other places doesn t cause the freeze. I haven t been able to determine exactly what causes the freeze and what doesn t.. it s happened both in threads besides the main thread and in the main thread.
任何想法? 我感到,像“冷静”功能一样,我只需要使沙德停止它所做的一切,让目标明确的“倡议”恢复,更新和处理投入,然后把它带回沙里。 这样做有什么作用? (窗口Sleep
功能似乎与python s time.sleep
。)