Created
November 7, 2018 17:12
-
-
Save 1trackprojects1/d183c5c5b2cbdd235c2a152c7e785ae8 to your computer and use it in GitHub Desktop.
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 | |
import time | |
def load(t): | |
animation = "*+-+-*" # New Loading Vars : "!#$%^&*" | |
for i in range(t): | |
time.sleep(0.05) | |
sys.stdout.write("\rLoading: " + animation[i % len(animation)]) | |
sys.stdout.flush() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A simple loading bar for the python programming language.