tkinter, threads and asyncore together
Josiah Carlson
jcarlson at nospam.uci.edu
Thu Mar 18 22:35:27 EST 2004
duane voth wrote:
>>#to control asyncore
>>while 1:
>> asyncore.loop(.1)
>> if not fromgui.empty():
>> #handle messages from GUI
>
> The above doesn't work for me - asyncore.loop(<anything>) always blocks.
> The asyncore.poll(timeout=0.01) functions however works fine. Thus I have:
>
> while 1:
> tkinter.dooneevent(tkinter.DONT_WAIT)
> asyncore.poll(0.01)
>
Sorry about that, I meant poll, but my fingers said loop. I could have
sworn that I mentioned it in my followup:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&safe=off&frame=right&th=b2ddd726d59cdfe6&seekm=c0e4g5%24mug%241%40news.service.uci.edu#link5
- Josiah
More information about the Python-list
mailing list