[wxPython] RE: How to make cross-thread calls?

You should have it set up so that the childMDI will use wxPostEvent to send
an event to the main GUI thread. Example is in wxPython demo threads.py.
Also in wxWindows docs under "Multithreading Overview"
Jason Conklin

···

Subject: [wxPython] How to make cross-thread calls?
Reply-To: wxpython-users@wxwindows.org

I am writing what I thought was a simple chat client, but I'm running into
problems.

The client program has a main frame and then a childMDI window which
displays the current chat room. The childMDI window spawns a thread which
listens for data coming through a socket from a chat server. The thread
updates the window with any new information.

This works fine. However, the server can send commands which affect the
client program. In this case, the thread catches the command and needs to
call a function on the main frame. This hangs the program. The thread
can
call functions and invoke ProcessEvent for the childMDI, but any attempt
to
reach the main frame results in a lockup.

any suggestions?
Ben