scripting - Python repl in python application -


hello learning python(so can use qt python not c++) , i'm curios if possible embed python interpreter in application repl. give users possibility script app using python either loading file (and file act plugin app) or evaluating code entered in text box or that. can embed interpreter in c or c++ , script app using python can done if application written in python(and made stand-alone binary using py2exe or similar)? anders did c# repl or miguel mono.

thanks.

well, possible, not beginner stuff :p

python offers read-eval loop module, you'd still have create console in qt can type in input , display results.

same goes plugin system. it's easy import script plugin , plugin has import application access it's state. that's hardly real plugin system, you'd want create proper api plugins don't break whenever in app changes.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -