This commit is contained in:
Sven Heidemann 2021-03-05 16:43:59 +01:00
parent 9a0d36ca86
commit 49f461037a

View File

@ -207,12 +207,11 @@ class Console:
@classmethod @classmethod
def spinner(cls, message: str, call: Callable): def spinner(cls, message: str, call: Callable):
cls.write(message) cls.write_line(message)
spinner = SpinnerThread(cls) spinner = SpinnerThread(cls)
spinner.start() spinner.start()
call() call()
spinner.stop_spinning() spinner.stop_spinning()
cls.write_line()
@classmethod @classmethod
def flush(cls): def flush(cls):