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

integrating embedded interpreter with external controls

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.