fix status bar

This commit is contained in:
Somdev Sangwan 2023-05-30 18:53:31 +05:30
parent d1030654ce
commit 03ac74edac

5
run.py
View File

@ -127,12 +127,12 @@ def save_file():
def status(string): def status(string):
if args['source_img']: if 'cli_mode' in args:
print("Status: " + string) print("Status: " + string)
else: else:
status_label["text"] = "Status: " + string status_label["text"] = "Status: " + string
window.update() window.update()
def start(): def start():
print("DON'T WORRY. IT'S NOT STUCK/CRASHED.\n" * 5) print("DON'T WORRY. IT'S NOT STUCK/CRASHED.\n" * 5)
@ -184,6 +184,7 @@ def start():
if __name__ == "__main__": if __name__ == "__main__":
global status_label, window global status_label, window
if args['source_img']: if args['source_img']:
args['cli_mode'] = True
start() start()
quit() quit()
window = tk.Tk() window = tk.Tk()