[Tutor] Mainloop conflict
Stefan Behnel
stefan_ml at behnel.de
Fri Jul 29 06:30:02 CEST 2011
Christopher King, 29.07.2011 02:32:
> I have a socket Gui program. The only problem is that socket.recv waits
> for a response, which totally screws Tkinter I think. I tried making the
> timeout extremely small (it was alright if I didn't receive anything, I
> was excepting that a lot) but I think that screwed socket. Anyone have words
> of wisdom.
Most of the GUI main loops (including tk, I believe) have a way to hook in
additional file descriptors and sockets that can be listened on, so that
you get a normal event when data becomes available in them.
Stefan
More information about the Tutor
mailing list