By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,547 Members | 1,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,547 IT Pros & Developers. It's quick & easy.

Progress Bars in python

P: n/a
Hi,
I've written a script which backs up a huge bunch of files, but I
don't want the script to output the file names as it does this as it
clutters the screen, I only output errors.

So in order to see that the script is working and not stuck, I'd like to
implement some kind of progress bar or something, perhaps like the
spinning thing that you often see in linux or freebsd consisting of
switching / - \ | on the spot to get the appearance of a spinning
bar.... I can figure out that the spinning bar is done by switching
these four chars but I don't know how they get each char to replace the
last one instead of printing them in succession.

Does anybody have any good suggestions about what the best way of doing
this or any other suggestions for the best ways to show that the script
is processing...?
Hari
Jul 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hari Sekhon wrote:
Hi,
I've written a script which backs up a huge bunch of files, but I
don't want the script to output the file names as it does this as it
clutters the screen, I only output errors.

So in order to see that the script is working and not stuck, I'd like to
implement some kind of progress bar or something, perhaps like the
spinning thing that you often see in linux or freebsd consisting of
switching / - \ | on the spot to get the appearance of a spinning
bar.... I can figure out that the spinning bar is done by switching
these four chars but I don't know how they get each char to replace the
last one instead of printing them in succession.

Does anybody have any good suggestions about what the best way of doing
this or any other suggestions for the best ways to show that the script
is processing...?
Hari
This also is shown in Python Cookbook:

http://aspn.activestate.com/ASPN/Coo.../Recipe/299207

Larry Bates
Jul 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.