Improved spinner
This commit is contained in:
parent
f36d8c3e9f
commit
9663e542f1
@ -252,7 +252,10 @@ class Console:
|
|||||||
cls._output(string, x, y, end='')
|
cls._output(string, x, y, end='')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def spinner(cls, message: str, call: Callable, *args, text_foreground_color: ForegroundColorEnum = None, spinner_foreground_color: ForegroundColorEnum = None, text_background_color: BackgroundColorEnum = None, spinner_background_color: BackgroundColorEnum = None) -> any:
|
def spinner(cls, message: str, call: Callable, *args, text_foreground_color: Union[str, ForegroundColorEnum] = None,
|
||||||
|
spinner_foreground_color: Union[str, ForegroundColorEnum] = None,
|
||||||
|
text_background_color: Union[str, BackgroundColorEnum] = None,
|
||||||
|
spinner_background_color: Union[str, BackgroundColorEnum] = None) -> any:
|
||||||
if cls._hold_back:
|
if cls._hold_back:
|
||||||
cls._hold_back_calls.append(ConsoleCall(cls.spinner, message, call, *args))
|
cls._hold_back_calls.append(ConsoleCall(cls.spinner, message, call, *args))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user