source example including the python shell in a wxPython application

Chris Mellon arkanes at gmail.com
Thu Nov 1 10:08:33 EDT 2007


On Nov 1, 2007 8:48 AM, chewie54 <dfabrizio51 at gmail.com> wrote:
> Is there an python example that shows how to include a python shell in
> a wxPython application.
>
> I have looked the wxPython demo  but I was wondering if there are any
> others that might be helpful in seeing how to connect the shell into
> the app and allow scripting so that the shell knows all about the app
> classes and variables.
>
> thanks,
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

There's a chapter about it in the wxPIA book, and you can look at the
sources of the wx.py package. When you create a shell, you pass it a
dict that it uses as its global namespace.



More information about the Python-list mailing list