From 03ac74edac3e0f98263d98d073a14bc714ecca06 Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Tue, 30 May 2023 18:53:31 +0530 Subject: [PATCH] fix status bar --- run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index adde8d9..8ff8fc5 100644 --- a/run.py +++ b/run.py @@ -127,12 +127,12 @@ def save_file(): def status(string): - if args['source_img']: + if 'cli_mode' in args: print("Status: " + string) else: status_label["text"] = "Status: " + string window.update() - + def start(): print("DON'T WORRY. IT'S NOT STUCK/CRASHED.\n" * 5) @@ -184,6 +184,7 @@ def start(): if __name__ == "__main__": global status_label, window if args['source_img']: + args['cli_mode'] = True start() quit() window = tk.Tk()