Hello
In my c++ project i use Python for plugins. Defining classes in a
python script and create objects with a callback function works very
nice. Now my problem: i want to define multiple derived classes and
this dont work. For example:
Python:
class Widget(wx.Button, mp.BasicWidget):
def __init__(self, parent, ID, title):
mp.BasicWidget.__init__(self)
wx.Button.__init__(self, parent, ID, title)
def createwidget(parent, name):
ret = Widget(parent, -1, name)
return ret
c++:
...
wxPyConvertSwigPtr(result, (void**)&res, wxT("wxButton"));
...
Now in python i can access functions of both parent classes, in c++
only wxButton one's. I have no ideas of wxPyConvertSwigPtr internals
so i don't know what to do here, maybe there is a special function for
this type of object conversion? Any ideas?
Thanks for help!
Stefan