2021.4.1 #11

Merged
edraft merged 172 commits from 2021.04.01 into 2021.04 2021-03-21 20:04:24 +01:00
Showing only changes of commit 0a630f9316 - Show all commits

View File

@ -206,13 +206,15 @@ class Console:
cls._output(string, x, y, end='')
@classmethod
def spinner(cls, message: str, call: Callable):
def spinner(cls, message: str, call: Callable) -> any:
cls.write_line(message)
spinner = SpinnerThread(cls)
spinner.start()
call()
return_value = call()
spinner.stop_spinning()
return return_value
@classmethod
def flush(cls):
sys.stdout.flush()