asynchronous comunication, wxPython and threads.

Zunbeltz Izaola zunbeltz at gmail.com
Wed Jun 22 10:32:57 EDT 2005


On Wed, 22 Jun 2005 09:28:31 -0400, Peter Hansen wrote:


> Almost certainly it is.  It would be simplest to set up a worker thread 
> once, when the GUI thread begins, and simply send requests to it via a 
> Queue.  It can create the socket, connect to the server, communicate, 
> close it down, and go back to waiting all in one place (so to speak... 
> of course this would be several methods all called from a top-level loop 
> in that thread).  No chance of mis-steps.

I corrected the problem. A bit of the comunication was done in the
GUI thread. 

Thanks again for your help.

Zunbeltz





More information about the Python-list mailing list