Skip to content

Progress bar turns red unexpectedly #303

Open
@rantingpirate

Description

@rantingpirate

Description

For whatever reason, the red->green color progression gets interrupted by red a little over halfway through.
After some experimentation, the range is about 57.3214286% to 58.3333333%.

Code

from time import sleep
from progressbar import ProgressBar

with ProgressBar(0,1000) as bar:
    for n in range(565,590):
        bar.update(n)
        sleep(.5)

Versions

  • Python 3.12.9 (pyenv)
  • CPython
  • macOS 15.4.1
  • progressbar2 4.5.0
  • VSCode terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions