From 81f743bd21fcb16254c08f759fac209b5a3b8931 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 22 Sep 2021 11:28:32 +0200 Subject: [PATCH] tkinter message is visible in taskbar --- start.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/start.py b/start.py index 451db03a54..f3adabd942 100644 --- a/start.py +++ b/start.py @@ -365,16 +365,20 @@ def _startup_validations(): if os.environ.get("OPENPYPE_HEADLESS_MODE"): raise - from tkinter import Tk + import tkinter from tkinter.messagebox import showerror - root = Tk() - root.withdraw() + root = tkinter.Tk() + root.attributes("-alpha", 0.0) + root.wm_state("iconic") + if platform.system().lower() != "windows": + root.withdraw() + showerror( "Startup validations didn't pass", str(exc) ) - root.destroy() + root.withdraw() sys.exit(1)