Fw: wxPython - Schleife richtig abbilden

Hello together,

I develope a tool for debugging a medusa-Server(zope) that have a GUI
written in wxPython. The job of the tool is to display the request and
response Objects in a List. My problem is the following:
How can I request the server in a loop, without my GUI is "hanging"?
I've already tried a while-loop, but then my GUI hangs for the time that
the while-loop takes to do something.
Does anyone have an idea for the problem?

Thanks a lot and kind regards
Axel

I develope a tool for debugging a medusa-Server(zope) that have a GUI
written in wxPython. The job of the tool is to display the request and
response Objects in a List. My problem is the following:
How can I request the server in a loop, without my GUI is "hanging"?
I've already tried a while-loop, but then my GUI hangs for the time that
the while-loop takes to do something.
Does anyone have an idea for the problem?

What I've had to do in the past is put my socket interface in a seperate
thread, and create a custom event type for it to notify my GUI when it's
done. When I create the thread, I give it a reference to my window. Then
when my request is done, it generates the event and posts it to the GUI
event queue. There are a few examples of threading with wxPython in the
demo (just grep for 'thread').