Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

progress bar updates too fast #22

Closed
UnsungHero97 opened this issue Jan 23, 2015 · 2 comments
Closed

progress bar updates too fast #22

UnsungHero97 opened this issue Jan 23, 2015 · 2 comments

Comments

@UnsungHero97
Copy link

I'm using the progress bar to show progress for a file transfer. The progress bar works just fine, but it's updating too fast. In the image, the estimated time and estimated transfer speed are being updated really quickly, which causes a flickering effect.

screen shot 2015-01-22 at 11 58 02 pm

Is there a way to get it to update at a fixed interval, or at least less frequently?

@wolph
Copy link
Owner

wolph commented Jan 23, 2015

For time sensitive widgets such as the ETA you can increase the poll=0.1 parameter for the progressbar (https://github.com/WoLpH/python-progressbar/blob/master/progressbar/__init__.py#L132).

If you are not using time sensitive widgets you can use the update_interval property instead: https://github.com/WoLpH/python-progressbar/blob/master/progressbar/__init__.py#L169

@UnsungHero97
Copy link
Author

Thanks!

@wolph wolph closed this as completed Apr 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants