wx event loop and PyRun_Interactive

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
dfab1954
In need of some credit
In need of some credit
Posts: 1
Joined: Mon May 14, 2018 4:38 pm

wx event loop and PyRun_Interactive

Postby dfab1954 » Mon May 14, 2018 8:27 pm

I have embedded a Python interp in my c++ wx app and have created a extension which exposes parts of the C++ API to Python.
It would be nice to use an interactive python console and Python docs indicate PyRun_Interactive could be used but how would it be used with the wx GUI event loop? Does anyone know of an example that might show how to use an interactive python console with wx?

I'm developing on OS X but plan to use on Windows and Linux.
Thanks in Advance!

Return to “C++ Development”

Who is online

Users browsing this forum: Bing [Bot] and 15 guests