Closed MarkAusten closed 6 years ago
Okay, I like it, but two things:
remove the "import urllib" line, it's not needed.
Don't remove the old method, Do an if else so that I can put in code to do either one by passing an option.
It can even be
if True:
pbar
else:
text
I've made the changes as requested.
There is an argument that says the original string message should be moved into the progress class. I'd be tempted to do that myself, feels cleaner.
Cool, now all I have to do is add the option code, which is a simple matter.
Ah, no, I also have to add an "if" around the clear statements as well.
You almost got me, but I saw it in time! :P
As requested I have submitted my code as a pull request. This uses the progress bar from tradedangerous (misc.progress) and replaces the printed progress messages. The width has been set to 100 characters so that the updates are at 1% intervals.