Created
July 29, 2013 18:38
-
-
Save SavvyGuard/6106577 to your computer and use it in GitHub Desktop.
Simple Progress Bar for outputting to console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def _progressBar(state): | |
progress_bar = '=' * state | |
sys.stdout.write('\r'+progress_bar) | |
sys.stdout.flush() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment