From: Sven A. <sv...@gm...> - 2008-07-07 15:51:53
|
Hello Barry, Thanks for that reply. I tried the same things in boost.python and it works. As I saw the boost.python - library and how she call Python-Function I looked for that in PyCXX too and did not found it. Thanks for your help. Now I can use PyCXX also. regards, Sven Am Sonntag 06 Juli 2008 09:50 schrieb Barry Scott: > On May 18, 2008, at 16:57, Sven Alisch wrote: > > Hi members! > > > > I am new to this list, so sorry for my bad english. I hope you > > understand me. > > > > First of all: Thanks for your great and well documented project. It > > is very > > simple to start programming a wrapper. I tried a little bit and it > > works. > > > > Now I want to do following. I want to program a callback function. > > This means > > I want to give my C++-Methods a Python-Function (like a c function > > pointer). > > Then I want to call this Python-Function like a callback-function > > in C. But > > how to do this? Could anybody be so sind to give me a hint? > > Sorry for the long time in replying... > > Do you want to call python code from C++? > > Create a Py::Callable object and use its apply() method to call > the python code. > > The pysvn project uses pycxx and uses a lot of its features. > Its project page is http://pysvn.tigris.org. It may have examples > that an useful to you. > > Barry > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > CXX-Users mailing list > CXX...@li... > https://lists.sourceforge.net/lists/listinfo/cxx-users |