2021.4 #19
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user