Shows a simple progress bar in the command window.
(seconds)
| 18 | |
| 19 | |
| 20 | def progress_bar(seconds): |
| 21 | """Shows a simple progress bar in the command window.""" |
| 22 | for _ in range(seconds): |
| 23 | time.sleep(1) |
| 24 | print(".", end="") |
| 25 | sys.stdout.flush() |
| 26 | print() |
| 27 | |
| 28 | |
| 29 | def unique_name(base_name): |