[Tutor] Mainloop conflict
Stefan Behnel
stefan_ml at behnel.de
Fri Jul 29 20:04:37 CEST 2011
Christopher King, 29.07.2011 17:08:
> On Thursday, July 28, 2011, Dave Angel wrote:
>> On 07/28/2011 08:32 PM, Christopher King wrote:
>>>
>>> Dear Tutor Dudes,
>>> 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.
>>>
>>> Sincerely,
>>> Me
>>>
>> Sure:
>>
>> Do the socket I/O on a separate thread.
>
> I was afraid of that.
Understandable. However, as I already said, you don't need to do that, just
go the obvious route.
Stefan
More information about the Tutor
mailing list