This question is very similar to one I recently asked: Python threading- returning control to the terminal while keeping a frame open except I'd like to know how to use iPython interactively with wxPython.
For example, I'd like this little script to return control to the terminal after it's opened up a 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 brilliantly with plt.show() but it does not return control to the terminal with frame.Show(True).
I understand that iPython 0.11 will have a magic interface for this, but what are people using to have an interactive session with wxPython in the meantime?
Thanks! --Erin