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:
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?
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:
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?
Is BasicWidget also a swig wrapped C++ type? If so then you'll have to
get a separate pointer to it since it has been allocated as a separate
C++ object and just merged together in the Python proxy class.
If it's a pure Python class then you'll want to use the Python C API to
lookup and invoke methods of the Python class using the "result" PyObject.