Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Progressbars retain values when restarting #136

Copy link
Copy link

Description

@w4nderlust
Issue body actions

Description

If i finish and then restart a bar using AdaptiveETA, instead of showing the ETA the bar shows me the Time.

Code

import progressbar
import time

maximum = 50
widgets = [progressbar.FormatLabel('Bar'), "   ",
                       progressbar.Percentage(), " ",
                       progressbar.Bar(), " ",
                       progressbar.Timer(), " ",
                       progressbar.AdaptiveETA()]
bar = progressbar.ProgressBar(widgets=widgets,
                              max_value=maximum)

steps = 0
bar.start()
while steps < maximum:
	bar.update(steps)
	time.sleep(0.1)
	steps += 1
bar.finish()

time.sleep(0.2)

steps = 0
bar.start()
while steps < maximum:
	bar.update(steps)
	time.sleep(0.1)
	steps += 1
bar.finish()

Versions

  • Python version: 3.5.2
  • Python distribution/environment: Python
  • Operating System:Ubuntu 16.4
  • Package version: 3.30.2
Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.