Created
February 23, 2017 16:17
-
-
Save guestl/c1300ada6acc2cd5c272e52342d91187 to your computer and use it in GitHub Desktop.
Rotated "wait" symbol
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
def show_wait(text, i): | |
if (i % 4) == 0: | |
print(text + '%s' % ("/"), end='\r') | |
elif (i % 4) == 1: | |
print(text + '%s' % ("-"), end='\r') | |
elif (i % 4) == 2: | |
print(text + '%s' % ("\\"), end='\r') | |
elif (i % 4) == 3: | |
print(text + '%s' % ("|"), end='\r') | |
elif i == -1: | |
print(text + 'Done!') | |
print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment