By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,539 Members | 1,289 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,539 IT Pros & Developers. It's quick & easy.

Referring to Interpreter (Jython)

P: n/a
Hi everyone,

I apologize if this is a bit off-topic. I am currently working on a
Java-based application that is used Jython as a scripting language
within the actual program. However, for one of my GUI elements, I need
to pass the actual PythonInterpeter to the constructor.

I know that in Java there is the "this" keyword which allows an object
to refer to itself. Does anyone know if there is a way to use a similar
type of keyword to have the PythonInterpreter refer to itself?

Thanks,
Wojciech

P.S.

If there is a more appropriate newsgroup to which I should post this,
please let me know.

Jul 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi everyone,

Ah, after some more searching and programming, I got it:

PythonInterpreter py = new PythonInterpreter();
py.set("interpreter", py);

Thanks,
Wojciech

wo******@gmail.com wrote:
Hi everyone,

I apologize if this is a bit off-topic. I am currently working on a
Java-based application that is used Jython as a scripting language
within the actual program. However, for one of my GUI elements, I need
to pass the actual PythonInterpeter to the constructor.

I know that in Java there is the "this" keyword which allows an object
to refer to itself. Does anyone know if there is a way to use a similar
type of keyword to have the PythonInterpreter refer to itself?

Thanks,
Wojciech

P.S.

If there is a more appropriate newsgroup to which I should post this,
please let me know.
Jul 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.