DoEvents equiv?

Alex Martelli aleaxit at yahoo.com
Fri May 11 08:29:06 EDT 2001


"Costas Menico" <costas at meezon.com> wrote in message
news:3afbc3ce.2377238 at News.CIS.DFN.DE...
> Mark Hammond <MarkH at ActiveState.com> wrote:
>
> >Scott Hathaway wrote:
> >
> >> What is the equivalent in Python for VB's DoEvents on Windows?
    ...
> I thought thats what time.sleep(x.xx) did? It relinquishes control to
> the OS..

It does relinquish control (for at least x.xx seconds), but
it's not equivalent to DoEvents because it does not service
the thread's message queue.


Alex






More information about the Python-list mailing list