The Python app I'm developing loads a largish initialization file from the net. The process is taking so long that the users are relaunching the app before the window can pop open. What I'm looking for is a way to pop open the apps tkinter window (with or without a loading message) before the app loads the network file. This will let the user know what is happening and keep them from relaunching the app.
In other words, how do I automatically run some code after the call to mainloop() to open the window, but before the user interface goes idle waiting for clicks?
Code I'm currently using to pop open the window:
winWid = 650
winHei = 390
window = tkinter.Tk()
window.geometry(str(winWid) + "x" + str(winHei))
window.title("AppTitle")
window.configure(bg="#FFFFDC")
# Load Initialization file - goal is to have this automatically happen after window opens
window.mainloop()
Edit: Launching an initialization thread might do the trick, but it seems like drastic over kill when all I want to do is populate a list in the gui with the contents of a network file.