From: Willenbring, G. V. <GAR...@sa...> - 2005-10-10 15:31:59
|
This maybe a simplistic question but I haven't figured it out. When I run a PythonInterpreter exec method such as: interp.exec(print 2+2) four is kicked back to the console. I would like to take the interpreter's result and append it to a SWT text object. I know there are ways to get data using interp.get but would prefer not to go down this path. Thanks for your help, Gary |
From: Jeff E. <jem...@fr...> - 2005-10-10 15:44:04
|
Have you tried calling setOut on your interpreter with an implementation of java.io.OutputStream or java.io.Writer that knows how to append the output to your widget? Willenbring, Gary V. wrote: > This maybe a simplistic question but I haven't figured it out. > > When I run a PythonInterpreter exec method such as: > > interp.exec(print 2+2) > > four is kicked back to the console. I would like to take the interpreter's > result and append it to a SWT text object. I know there are ways to get > data using interp.get but would prefer not to go down this path. > > Thanks for your help, > > Gary > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |