Doing network traffic in the 'background' from Tkinter app??

Randall Hopper aa8vb at yahoo.com
Fri Oct 29 08:58:29 EDT 1999


Andrew Markebo:
 |I have a Tkinter application that I would like to be able to download
 |data from the internet.. possibly from more than one socket at a
 |time..
 |
 |How do yo do this??
 |
 |I have been experimenting with a module that on call checks the active
 |connectons (with select) and downloads data if there are any, and if
 |it is done calls a callback..
 |
 |The check-function is called from Tkinter's after_idle.. but the
 |application freezes.. 

I can't tell exactly what you're doing from your description, but check
out Tk's fileevent callback:

http://www.deja.com/=dnc/[S0=90474f0918d34ab,ST_rn=ps]/getdoc.xp?AN=493995795.1
http://Starbase.NeoSoft.COM/~claird/comp.lang.tcl/tcl-examples.html#fileevent
http://www.deja.com/=dnc/[S0=90474f0918d34ab,ST_rn=ps]/getdoc.xp?AN=473442359

-- 
Randall Hopper
aa8vb at yahoo.com




More information about the Python-list mailing list