MCPcopy Index your code
hub / github.com/geekcomputers/Python / animate

Function animate

loader.py:17–24  ·  view source on GitHub ↗
(message="loading", endmessage="Done!")

Source from the content-addressed store, hash-verified

15
16
17def animate(message="loading", endmessage="Done!"):
18 for c in itertools.cycle(["|", "/", "-", "\\"]):
19 if done:
20 break
21 sys.stdout.write(f"\r {message}" + c)
22 sys.stdout.flush()
23 time.sleep(0.1)
24 sys.stdout.write(f"\r {endmessage} ")
25
26
27t = threading.Thread(

Callers 1

loader.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected