tkinter, sockets and threads together

Richard Townsend nospam at here.com
Thu Sep 11 22:52:59 CEST 2003


> i read that it is bad to use threads with tkinter.  so my question is
> how does one create a gui program with sockets?  at one point you have
> to call mainloop() which does not return.  then you are not free to do
> stuff with the sockets.
>

Take a look at
http://www.python.org/doc/faq/gui.html#can-i-have-tk-events-handled-while-wa
iting-for-i-o


RT







More information about the Python-list mailing list