From 6510ff0b07da9b9977e247a10e9e1de3354f5d64 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 31 Aug 2021 19:19:55 -0700 Subject: [PATCH] Hide window until it is ready. --- PGUI.pyw | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PGUI.pyw b/PGUI.pyw index 8e2a848..4ad6aa7 100644 --- a/PGUI.pyw +++ b/PGUI.pyw @@ -87,6 +87,7 @@ class PGUILauncher(tkinter.ttk.Frame): def main(argv): root = tkinter.Tk() + root.withdraw() root.title("PGUI") root.resizable(0,0) @@ -98,6 +99,7 @@ def main(argv): y_offset = (root.winfo_screenheight() - height) / 2 root.geometry('%dx%d+%d+%d' % (width, height, x_offset, y_offset-50)) + root.deiconify() root.mainloop() if __name__ == '__main__':