wxpython in another app

Ron wrote:

I'm starting out with wxPython and am trying to find where the info is that I need. I'm investigating how to get wxPython accessible within another application (Maya).

I have a hint that I should be using IMPLEMENT_APP_NO_MAIN which seems to be a macro in app.h. Does anyone know how this is handled in wxPython and where some info on this type of thing is?

Are you a Maya developer? If not then talk to them to make sure they allow their wx to be accessed from an embedded Python. If you are a Mya developer, then take a look at the embedded sample in the wxPython samples dir. In a nutshell you just need to make your C++ wx app like normal, initialize the embedded Python interpreter, and use some magic API functions to pass wx objects to and from Python code as needed. The key is to make sure that the wxPython extension modules are using the same wx DLLs or shared libraries as the wx C++ app.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!