Skip to content

Instantly share code, notes, and snippets.

@guestl
Created February 23, 2017 16:17
Show Gist options
  • Save guestl/c1300ada6acc2cd5c272e52342d91187 to your computer and use it in GitHub Desktop.
Save guestl/c1300ada6acc2cd5c272e52342d91187 to your computer and use it in GitHub Desktop.
Rotated "wait" symbol
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