Re: [python-win32] Idle Event

2008-03-30 Thread Gerdus van Zyl
So to answer my own question: use win32gui.PumpWaitingMessages, it uses peekmessage. so you can then replace PumpMessages() with: while PumpWaitingMessages() == 0: #some idle function or processing here ~gvz On Fri, Mar 28, 2008 at 11:59 AM, Gerdus van Zyl [EMAIL PROTECTED] wrote: Hi,

[python-win32] Idle Event

2008-03-28 Thread Gerdus van Zyl
Hi, How can I run a function when the event loop is idle? It's for animation and some layout calculation. Currently I am doing that using threads but the responsiveness of my application is suffering. Thank you ~Gerdus ___ python-win32 mailing list