Problems with sockets and threads

Peter Otten __peter__ at web.de
Thu Apr 11 10:41:40 EDT 2013


Dexter Deejay wrote:

> When i try to run this code and to connect to server (server is written in
> java that part of code is ok) everything stalls. Thread that i created
> here occupies processor all the time and GUI freezes. It's supposed to be
> waiting for message from server. (asynchronous one) Is there something
> that i did wrong here, or is there better way to do this?

Fredrik Lundh has an example that shows how to update a Text widget from 
another thread:

http://effbot.org/zone/tkinter-threads.htm





More information about the Python-list mailing list