This question is very similar to the one I recently asked: Python threading - returning control to the terminal while saving the frame , except that I would like to know how to use iPython interactively using wxPython.
For example, I would like this little script to return control to the terminal after it opens the frame:
from wxPython.wx import * class MyApp(wxApp): def OnInit(self): frame = wxFrame(NULL, -1, "Hello from wxPython") frame.Show(true) self.SetTopWindow(frame) return true app = MyApp(0) app.MainLoop()
Using "ipython-pylab" works fine with plt.show (), but it does not return control to a terminal with a frame. Display (True).
I understand that iPython 0.11 will have a magic interface for this, but what do people use for an interactive session with wxPython in the meantime?
Thanks! --Erin
user671110
source share