[C++-sig] Using a phython function as callback

Stefan Seefeld seefeld at sympatico.ca
Tue Jun 24 23:09:34 CEST 2003


hi Jochen,

in order to be able to call into the python function
passing your C++ object you have to define a python
wrapper for it (using 'class_<Selectable>' or similar).
With that, a call to your python callable object will
automatically look up the conversion, so the
'UpdateSelectedObject' function will access the selectable
through a temporarily created wrapper of type 'class_<Selectable>'.

Regards,
		Stefan






More information about the Cplusplus-sig mailing list