Instantiating A New WX Python GUI From Spawn Thread
I have main thread that runs a WX Python GUI. The main GUI gives a user a graphical interface to select scripts (which are mapped to python functions) and a 'Start' button, which s
Solution 1:
You can't have two wxPython mainloops in one program. You really do have to use just the first wxPython program's main thread. If you want to spawn another application, then use subprocess. Something like this should work:
import subprocess
subprocess.Popen("python path/to/myscript.py")
Post a Comment for "Instantiating A New WX Python GUI From Spawn Thread"