[python-win32] timers?
Jeff Peery
jeffpeery at seametrics.com
Wed Dec 1 23:02:32 CET 2004
Thanks for the help Steve, the thing what works the best is
win32gui.PumpWaitingMessages()
I used the module win32gui because I saw that someone else used it with
Pumpwaitingmessages(). It doesn't seem to work with pythoncom. So I
instead imported the win32gui module. I have no idea what I am doing but
based on trial and error it seems to be working ok. Pumpmessages didn't
seem to work either.
Thanks again for your help, please offer any thoughts.
Jeff
-----Original Message-----
From: Steve Holden [mailto:steve at holdenweb.com]
Sent: Wednesday, December 01, 2004 1:31 PM
To: Jeff Peery
Cc: python-win32 at python.org
Subject: Re: [python-win32] timers?
Jeff Peery wrote:
> Thanks, Steve, although I did a quick google with not much luck, what
is
> PumpWaitingMessage()... all I know is that it has something to do with
> Com... is this a python module?
>
Erm, actually it was a typo foir PumpWaitingMessages(), but second
thoughts are proverbially the best, and I now believe that what you
actually want is a PumpMessages() call.
This is a Windows API call. The documentation says "This allows an
application which is performing a long operation to dispatch paint
messages during the operation", which appears to cover your case pretty
exactly.
You can find it in the pythoncom module (so you should be able to say
something like
from pythoncom import PumpMessages
to enable you to call it. Please remember, though, I'm kind of stabbing
about here. Much of PythonWin assumes you know the API, and I don't :-)
regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
More information about the Python-win32
mailing list