diff options
Diffstat (limited to 'loading_animation.py')
| -rw-r--r-- | loading_animation.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/loading_animation.py b/loading_animation.py new file mode 100644 index 0000000..fe4d51f --- /dev/null +++ b/loading_animation.py @@ -0,0 +1,27 @@ +from time import sleep + +loadingdelay = 0.1 + +('|', '/', '-', '\\') +('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█', '▇', '▆', '▅', '▄', '▃', '▁') +('▉', '▊', '▋', '▌', '▍', '▎', '▏', '▎', '▍', '▌', '▋', '▊', '▉') +('┤', '┘', '┴', '└', '├', '┌', '┬', '┐') +('←', '↖', '↑', '↗', '→', '↘', '↓', '↙') +('⣾', '⣽', '⣻', '⢿', '⡿', '⣟', '⣯', '⣷') +('⠁', '⠂', '⠄', '⡀', '⢀', '⠠', '⠐', '⠈') +('◡', '⊙', '◠') +('◢', '◣', '◤', '◥') +('◰', '◳', '◲', '◱') +('◴', '◷', '◶', '◵') +('◐', '◓', '◑', '◒') +('◡◡', '⊙⊙', '◠◠') +('♚ 🔫', '♚ -🔫', '♚ - 🔫', '♚- 🔫', '☠ 🔫') + +animation = ('←', '↖', '↑', '↗', '→', '↘', '↓', '↙') +def animate(): + while True: + for frame in animation: + print('\rloading ' + frame, end = '') + sleep(loadingdelay) + +animate()
\ No newline at end of file |
