Python and Sockets,

Tim Lavoie tool_man at spamcop.net
Thu Aug 1 22:58:35 CEST 2002


In article <slrnakj6ec.lje.from at secretlab.mine.nu>, Walter Hofmann wrote:

> You could use the select module to wait for a number of sockets to
> become ready for reading or writing. However, I don't know if you can
> process Tk or GTK evens simultaneously this way.

Actually you can. I don't recall where I saw the method, but I used it to
write a small program which uses a Tkinter GUI and asyncore to make a number
of socket connections, and update the display depending on whether the
socket connections succeed or not.

(If you like, I can post or mail it as an example.)



More information about the Python-list mailing list