embedding an interactive console

Paul Miller paul at fxtech.com
Thu Apr 28 17:20:13 EDT 2005


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.




More information about the Python-list mailing list