summaryrefslogtreecommitdiff
path: root/loading_animation.py
diff options
context:
space:
mode:
authorroot <root@annapurna.annapurna.fitness>2025-07-09 15:50:50 +0200
committerroot <root@annapurna.annapurna.fitness>2025-07-09 15:50:50 +0200
commite07a195bdd87932b9d00d3d680a9a5a747359566 (patch)
tree002bc641d9a0955eb7689c30398dfe4ed57cdde8 /loading_animation.py
initial commitHEADmaster
Diffstat (limited to 'loading_animation.py')
-rw-r--r--loading_animation.py27
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