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,
>
>  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
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to