start the animation until stop_animation is False
(text)
| 368 | |
| 369 | |
| 370 | def start_animation(text): |
| 371 | """ |
| 372 | start the animation until stop_animation is False |
| 373 | """ |
| 374 | global stop_animation |
| 375 | |
| 376 | if not stop_animation: |
| 377 | import threading |
| 378 | |
| 379 | t = threading.Thread(target=animation, args=(text,)) |
| 380 | t.daemon = True |
| 381 | t.start() |
| 382 | else: |
| 383 | lib.output.misc_info(text) |
| 384 | |
| 385 | |
| 386 | def close(warning, status=1): |