[wxPython-users] standard output
Christopher Barker
Chris.Barker at noaa.gov
Thu Mar 8 09:19:29 PST 2007
> What does exactly this function do?
Yield() is a wx.App method, so you can find its docs under wx.App in:
http://www.wxpython.org/onlinedocs.php
Here is some of what it says:
"""
Yields control to pending messages in the windowing system. This can be
useful, for example, when a time-consuming process writes to a text
window. Without an occasional yield, the text window will not be updated
properly
"""
Essentially, it flushed the Events stack, processing all the events that
have piled up there. It's very useful for keeping the ap responsive, and
making sure things get updated when there is a lot going on.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list