Dear colleagues,
I am suffering of the lack of one feature, possibly there is someone who
can help.
We use PySide in development C++/Python hybrid application. At the
moment we would like to do the following.
We have generated PySide bindings for our application core (we call it
engine) to make it available from Python scripts which we run inside
embedded Python interpreter. It works fine. At the moment I want to
inherit new python class from parent implemented in C++, construct
object of this class in python and get pointer to it (as pointer to base
class) on C++ layer.
For instance in C++ I have:
class Base {
public:
void method();
};
in Python script:
# import PySide generated bindings
import py_engine
class Child(py_engine.Base):
def method(self):
"""overwrite base class method"""
print 'blabla'
pass
def create_child():
return Child()
So in this case I would like to create python object and make it
available in C++ layer as Base*.
How would you recommend to achieve this?
Best regards,
Alexander.
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside