Running a wxWindows application in a wxPython window

I would like to be able to run an existing wxWindows C++
application inside a wxPython window.
(Something like the way Outlook can embed word to view
a word document.)

I can modify the wxWindows app but it must still operate
as a standalone app.

Any examples of this or pointers to any information ?

   Thanks
  Martin

look into the activeXwrapper thingie...
I think the application you want to embed must be/have and ActiveX Control.

Respect,
Peter.

···

On Sat, 17 Jan 2004 21:16:01 -0000, Martin Beckett <martin@datactics.co.uk> wrote:

I would like to be able to run an existing wxWindows C++
application inside a wxPython window.
(Something like the way Outlook can embed word to view
a word document.)

I can modify the wxWindows app but it must still operate
as a standalone app.

Any examples of this or pointers to any information ?

Martin Beckett wrote:

I would like to be able to run an existing wxWindows C++
application inside a wxPython window.
(Something like the way Outlook can embed word to view
a word document.)

I can modify the wxWindows app but it must still operate
as a standalone app.

Does it have to be the actual C++ app or can it be a shared library (or DLL) that both the C++ app and the wxPython app can use? If so then I would restructure the C++ app so that whatever you need to access from Python (the frame, panel, custrom widget classes, etc.) are located in a DLL then link the rest of the C++ app to that DLL. For the Python side of things write a python extension module that exposes the things in the DLL that you need and then just load it and use like any other Python module. Take care that the C++ app, the DLL and wxPython all use the same instance of the wxWindows DLLs.

···

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