I have a wX application that I would like to control programmatically, from a Python Script. I tried to accomplish this by writing the following code:
Application = myApp()
myGUI= openGUI(Application)
This successfully opens an instance of my wX application, and I can then interact with this via its GUI, for instance by clicking Open File. However, I was hoping I could send commands by writing code like:
myGUI.OnFileOpen(myFile)
Unfortunately, inspecting "myGUI" in the debugger reveals the value of this variable to be "nothing". So I cannot access the methods of the running wX GUI via my proposed method.
If anyone could offer a suggestion for how to accomplish my goal, I would really appreciate it.