wxPython - processes

novitk at gmail.com novitk at gmail.com
Wed Nov 30 23:12:40 EST 2005


ccahoon wrote:
> In wxPython, I want to be able to start downloading a file and have the
> window doing such remain interactive, so that the user can cancel
> downloading the next file.  Also, if there is a way to cancel a
> downloading process, what is it?
>
> I am using urllib.urlretrieve.  Thanks for any help, in advance.

Look into 'threading' module. You want to do downloading in a separate
thread, which you'd control from the main (GUI) thread. There is a
threading example in wxPython demo.

KN




More information about the Python-list mailing list