Hi group!
In a nutshell: I have a C++ application running a wxWidgets GUI. The
application has embedded Python. I'd like to use wxPython from Python
code executed by the embedded Python. How should I go on about it?
I'm in the process of writing the Python interface for hugin, the free
panorama stitcher. Hugin is a C++ application using wxWidgets for it's
GUI. I have wrapped hugin's functionality with SWIG and embedded
Python in the application, so I can call Python code, and with the
SWIG module imported I can pass hugin data to and fro. The intended
use of Python from hugin's main application is to provide Python
plugins to hugin. Therefore I'd like to let the Python code interact
with the user graphically, and wxPython seems the obvious candidate.
My first naive attempts to run Python code from hugin that
successfully uses wxPython standalone resulted in the application
crashing, just after the windows pop up. I suspect I need to transport
some state of the wxWidgets running in the C++ app to the Python code
wanting to use wxPython. I suppose this is known territory, but so far
I've failed to find the right information. If you could point me in
the right direction, I'd be very grateful indeed. I'm working on a
Kubuntu 10.10 system, but the application is cross-platform.
Kay