Skip to content

Progress bar does not display until after the first item is complete #1648

@max-sixty

Description

@max-sixty

Take this example:

    with click.progressbar(length=6, label="Doing something") as bar:
        for thing in [3, 2, 1]:
            time.sleep(thing)
            bar.update(thing)

This shows nothing until three seconds, at which point it shows:

Doing something  [##################------------------]   50%  00:00:03

Would it be reasonable for it to display a 0% at first?
This is mostly an issue with a small number of items which take a long time.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions