mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
tkinter message is visible in taskbar
This commit is contained in:
parent
0b4cd58858
commit
81f743bd21
1 changed files with 8 additions and 4 deletions
12
start.py
12
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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue