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.
Post Reply
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

Post by dfab1954 »

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!
Post Reply