469,643 Members | 1,395 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

embedding an interactive console

I did this YEARS ago with Python 1.5, and I recall it being slightly
painful. I have an embedded Python interpreter and I want to provide an
interactive console (implemented in my GUI application with a Qt
TextEdit widget). I can handle the GUI part of it, but I'm wondering
what the latest Python method of implementing this is.

I note the documentation for InteractiveConsole, which is implemented in
Python. Is there any example code for using this from within C/C++ code
to emulate the command-line interpreter inside a GUI app?

Jul 19 '05 #1
1 2180
Paul Miller wrote:
I note the documentation for InteractiveConsole, which is implemented in
Python. Is there any example code for using this from within C/C++ code
to emulate the command-line interpreter inside a GUI app?


I've gotten my text edit widget to send InteractiveConsole strings to
run and can see the results.

But I'm not getting a >>> prompt consistently.

I'd love to see some sample code from anyone who is using this with an
embedded interpreter.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Stephan Steiner | last post: by
6 posts views Thread by Microsoft | last post: by
1 post views Thread by gavinpaterson | last post: by
2 posts views Thread by Adam Blinkinsop | last post: by
reply views Thread by Thomas Schreiner | last post: by
reply views Thread by Severian | last post: by
4 posts views Thread by Alan Baljeu | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.