Rockhopper-Technologies / enlighten

Enlighten Progress Bar for Python Console Apps
https://python-enlighten.readthedocs.io
Mozilla Public License 2.0
416 stars 25 forks source link

Render the progress bar before the first update/tick #40

Closed archiif closed 3 years ago

archiif commented 3 years ago

Is your feature request related to a problem? Please describe. In cases where each cycle takes a decent amount of time to complete, the progress bar will not be rendered until the first pbar.update which might take a while.

Describe the solution you'd like So, a way to force the progress bar to render ahead of time would be useful.

avylove commented 3 years ago

Counters, unlike status bars aren't drawn when created because there could be subcounters added in the next step that change the format of the bars. pbar.refresh() should provide you with what you need. Let me know if that works for you.

archiif commented 3 years ago

Thank you, that did the trick!