wxPython - processes

C

ccahoon

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.
 
N

novitk

ccahoon said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,272
Messages
2,571,362
Members
48,045
Latest member
Damian56J

Latest Threads

Top