Hide window until it is ready.

This commit is contained in:
voussoir 2021-08-31 19:19:55 -07:00
parent 91527aa012
commit 6510ff0b07
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -87,6 +87,7 @@ class PGUILauncher(tkinter.ttk.Frame):
def main(argv): def main(argv):
root = tkinter.Tk() root = tkinter.Tk()
root.withdraw()
root.title("PGUI") root.title("PGUI")
root.resizable(0,0) root.resizable(0,0)
@ -98,6 +99,7 @@ def main(argv):
y_offset = (root.winfo_screenheight() - height) / 2 y_offset = (root.winfo_screenheight() - height) / 2
root.geometry('%dx%d+%d+%d' % (width, height, x_offset, y_offset-50)) root.geometry('%dx%d+%d+%d' % (width, height, x_offset, y_offset-50))
root.deiconify()
root.mainloop() root.mainloop()
if __name__ == '__main__': if __name__ == '__main__':