468,305 Members | 1,510 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

integrating embedded interpreter with external controls

I need some advice about how to go about architecting a solution to
the following problem.

I'd like to create an application that has an interactive listener/
console window in which the user can enter commands (in much the same
vain as 3D Studio Max, for those who are familiar with the product).
The console would essentially be an embedded Python interpreter
running the interactive loop (a call to the C API's
PyRun_InteractiveLoop()).

I'd also like buttons and other UI controls to be able to access
functions and objects that are defined through the console. I'm not
really sure how to integrate the UI controls with the console though,
especially if the console is running PyRun_InteractiveLoop(), which is
a tight loop.

I'm guessing that the solution will most likely require the console to
run in a separate thread, but I still don't know how to get the UI to
interact with the console.

Does anyone have any helpful suggestions?

May 7 '07 #1
0 773

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Chris | last post: by
reply views Thread by Vio | last post: by
6 posts views Thread by Roger | last post: by
5 posts views Thread by wahn | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.