On 4/26/07, DELIZY Florian &lt;<a href="mailto:fdelizy@unfreeze.net">fdelizy@unfreeze.net</a>&gt; wrote:<br>&gt; Hi,<br>&gt; <br>&gt; I am using boost.python and wxPython together and I am experiencing some<br>&gt; troubles getting both interacting.
<br>&gt; wxPython (<a href="http://www.wxpython.org">www.wxpython.org</a>) is a SWIG wrapped GUI C++ extension for python.<br>&gt; <br>&gt; My problem is I want to expose a class using boost.python class_<br>&gt; template to python but this class is derived from a wx C++ class, to be
<br>&gt; more precise, say I have this code :<br>&gt; <br>&gt; <br>&gt; class MyFrame : public wxFrame<br>&gt; {<br>&gt; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; public:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void SomeOperations( ... );<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br>&gt; };<br>
&gt; <br>&gt; the class wxFrame is a C++ wx class already exposed to python using SWIG<br>&gt; as wx.wxFrame, how do I expose the class MyFrame, informing python that<br>&gt; MyFrame is derived from wxFrame using boost.python
 ?<br>&gt; <br>&gt; is there a way to do such things ?<br><br>Basically what you want is to expose your class and say that one of its base classes is defined in Python. Right now, Boost.Python does not provide this functionality. In some cases it is possible to create work-around to the problem, but I am not sure about your use-case. Take a look on next link 
<a href="http://www.language-binding.net/pyplusplus/troubleshooting_guide/exceptions/exceptions.html">http://www.language-binding.net/pyplusplus/troubleshooting_guide/exceptions/exceptions.html</a> - it contains solution to similar problem.
<br><br>P.S. Python-Ogre project, exposed using Boost.Python, makes an extensive use of
wxPython. May be they have some knowledge or &quot;ready&quot; solution for you.<br><br>-- <br>Roman Yakovenko<br>C++ Python language binding<br><a href="http://www.language-binding.net/">http://www.language-binding.net/
</a><br>