Re: Threads and Progress Bar

2006-09-15 Thread Thomas Guettler
On Fri, 01 Sep 2006 21:43:46 +0530 Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > Hi, > > I have a small application, written in Python, that uses threads. > The application uses function foo() to download files from the web. As it > reads > data from the web server, it runs a progress bar by ca

Re: Threads and Progress Bar

2006-09-02 Thread Bryan Olson
Ritesh Raj Sarraf wrote: [...] > Here's the function, download_from_web() which calls the progress bar: > main.py > def download_from_web(sUrl, sFile, sSourceDir, checksum): [...] > temp = urllib2.urlopen(sUrl) > headers = temp.info() > size = int(headers['Content-Length'])

Re: Threads and Progress Bar

2006-09-01 Thread Ritesh Raj Sarraf
Dennis Lee Bieber on Friday 01 Sep 2006 23:04 wrote: > Well... first off -- some minimal code would be of use... > I was scared that people might feel that I'm asking for a ready-made solution. :-) Here's the code. The is the progress bar code. progressbar.py class progressBar: def __init__

Threads and Progress Bar

2006-09-01 Thread Ritesh Raj Sarraf
Hi, I have a small application, written in Python, that uses threads. The application uses function foo() to download files from the web. As it reads data from the web server, it runs a progress bar by calling an install of a progress bar class. When using threads, I get the problem that the prog