diff --git a/system/ui/spinner.py b/system/ui/spinner.py index 5fd3f964a6..2af24c4e51 100755 --- a/system/ui/spinner.py +++ b/system/ui/spinner.py @@ -98,7 +98,11 @@ class Spinner(BaseWindow[SpinnerRenderer]): self.update(str(round(100 * cur / total))) -if __name__ == "__main__": +def main(): with Spinner() as s: s.update("Spinner text") time.sleep(5) + + +if __name__ == "__main__": + main()