Last active
August 29, 2015 14:04
-
-
Save jeyraof/4eee3007c287e7327f25 to your computer and use it in GitHub Desktop.
indicator
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
def indicator(message='Processing...' ): | |
sys.stdout.write(message) | |
time.sleep(1) | |
sys.stdout.write('|') | |
time.sleep(1) | |
sys.stdout.write('\r/') | |
time.sleep(1) | |
sys.stdout.write('\r-') | |
time.sleep(1) | |
sys.stdout.write('\r\\') | |
time.sleep(1) | |
sys.stdout.write('\r*') | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment