Open kousu opened 4 years ago
Yeah, that's a good idea. I like it. I think it's convenient
I just pushed a pull request that does this.
Here: https://github.com/niltonvolpato/python-progressbar/pull/78. If it's not merged, you can simply use the fork: https://github.com/thorwhalen/python-progressbar
It would be cool if I could write:
With
pbar.start()
andpbar.finish()
sequestered intopbar.__enter__
andpbar.__exit__
respectively.