I found a solution using sys.displayhook here:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/593cd28e568c32e1/1e0f930e7ac5ebb2?#1e0f930e7ac5ebb2
On Jun 18, 4:24 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 18 Jun 2007 01:45:38 -0300, [EMAIL PROTECTED]
> <[EMA
En Mon, 18 Jun 2007 01:45:38 -0300, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> escribió:
> I'm using PyRun_String with Py_single_input for a python interpreter
> embedded in my application. I'm using Py_single_input. Py_single input
> is what I want, but it seems to output to stdout. Before when I wa
I'm using PyRun_String with Py_single_input for a python interpreter
embedded in my application. I'm using Py_single_input. Py_single input
is what I want, but it seems to output to stdout. Before when I was
using Py_eval_input I was able to grab the result so I could print it
in a text box:
I'm using PyRun_String with Py_single_input for a python interpreter
embedded in my application. I'm using Py_single_input. Py_single input
is what I want, but it seems to output to stdout. Before when I was
using Py_eval_input I was able to grab the result so I could print it
in a text box: