ProgressBar item_show_func displays the previous item
See original GitHub issueI’ve noticed a bug with the item_show_func
option for click.progressbar
where the progress bar ends up showing the previous item instead of the current one.
The issue seems to be that ProgressBar.generator()
will only render the progress bar after the current item has been processed. As a result, the previous item is visible on screen while the current one is in processing.
I think this change to lines 285-288 should fix the issue:
for rv in self.iter:
self.current_item = rv
self.render_progress()
yield rv
self.make_step(1)
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
How to Use Progress Bars - Oracle Help Center
Uses a basic progress bar to show progress on a task running in a separate thread. ProgressMonitorDemo, This section, Modification of the previous...
Read more >Handling ProgressBars | CodePath Android Cliffnotes
Overview. ProgressBar is used to display the progress of an activity while the user is waiting. You can display an indeterminate progress (spinning...
Read more >Jquery - multi-step form progress bar using unordered list ...
My Progress bar is an unordered list with list items that are supposed to be highlighted red when the user presses next. But,...
Read more >ProgressBar - Android Developers
Display progress bars to a user in a non-interruptive way. Show the progress bar in your app's user interface or in a notification...
Read more >Set the Value Displayed by ProgressBar Control
How to: Set the Value Displayed by the Windows Forms ProgressBar Control. Article; 09/01/2020; 8 minutes to read; 1 contributor. Feedback ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for taking the time to revive and resolve this. I’m looking forward to making use of your fix in the future.
Sure ! Not a problem.