Created
May 27, 2011 06:02
-
-
Save brantfaircloth/994727 to your computer and use it in GitHub Desktop.
pretty easy progress indicator
This file contains hidden or 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
# this works just fine w/ multiprocess... | |
# now with more flushing | |
import sys | |
import time | |
sys.stdout.write("This is running") | |
sys.stdout.flush() | |
for i in range(5): | |
sys.stdout.write(".") | |
sys.stdout.flush() | |
time.sleep(0.1) | |
sys.stdout.write("\nThis is running2") | |
sys.stdout.flush() | |
for i in range(10): | |
sys.stdout.write(".") | |
sys.stdout.flush() | |
time.sleep(0.1) | |
print "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ooh, i like this spin cursor - much more fancy-pants than my lowly dot flusher ; )