source example including the python shell in a wxPython application

C

chewie54

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,
 
C

Chris Mellon

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,

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top