I apologize if this has been answered in the past, I cannot seem to find an easy explanation for this.
The short version of what I am trying to accomplish is that I want to create a main function inside a GUI that can execute after the init and opening functions have completed and the GUI has appeared on the screen. If I try putting a call to a main loop inside the opening function, it will execute before the window even opens, and I do not want to mess with the init function at all.
Is it possible to create a wrapper to the GUI and update the fields using that instead? This might be a rookie question, but I could not find any guides for how to do this. I have no idea how to modify handles from outside the GUI script.
Ideally what I would like to do is have a main function inside the GUI script that I can just call AFTER the window has opened, but that doesn't seem to be possible.
Again, I might just be having a hard time finding the resources for doing something like this, so if someone can point me in a direction I would be very grateful. Thank you!