Hi
I am confused about how events are handled after reading the docs. My
assumption is that the events that occur (mouse clicks, key strokes,
buttons etc.) are placed in a queue and then taken from this queue and
handled when nothing else is going on.
If my code is in a loop, say
while 1:
some code
I would like to force the GUI to update all events at some point within the
code. As the code is looping, there is no idle time. I thought that
wxYield might do it but it appears not or maybe I am not using correctly.
Thanks for your help
Gordon Williams
I'm using the wxYield() in a while loop and it does appear to update the
event loop correctly.
Bob
···
At 04:56 PM 7/20/00 -0400, you wrote:
Hi
I am confused about how events are handled after reading the docs. My
assumption is that the events that occur (mouse clicks, key strokes,
buttons etc.) are placed in a queue and then taken from this queue and
handled when nothing else is going on.
If my code is in a loop, say
while 1:
some code
I would like to force the GUI to update all events at some point within the
code. As the code is looping, there is no idle time. I thought that
wxYield might do it but it appears not or maybe I am not using correctly.
Thanks for your help
Gordon Williams
_______________________________________________
wxPython-users mailing list wxPython-users@wxwindows.org
http://wxwindows.org/mailman/listinfo/wxpython-users
-------------------------------------------------
Robert B. Klimek
NASA Glenn Research Center
robert.klimek@grc.nasa.gov
(216) 433-2837
--------------------------------------------------