[PyKDE] Using SIP to call Python from C++

Niac Neb niacneb at yahoo.com
Thu May 19 20:49:05 BST 2005


Jim,

Thanks for the detailed response!

I believe I do need to call SIP (maybe just Python)
from C++.  I have an existing C++ application that I'm
trying to add Python plotting capabilities to.  I need
to spawn these plot utilities ... telling them where
to get the plot data ... then closing them (with
resource cleanup) when done.  Make sense?

The Python/C API seems very tedious to code to. 
Perhaps the book you recommended will be a great
start.  I have done it.  But, getting the Python
function, setting the arguments, and freeing the
allocated resources was very, very difficult (IMHO).

Examples ... do you recommend the WIKI as a place to
start learning?  As you might know, it's a little
overwhelming.  I particularly appreciated the
Boost.Python tutorial.  Does SIP have one of this
detail?

Much Thanks!!!
   Niac

--- Jim Bublitz <jbublitz at nwinternet.com> wrote:
> 
> There is no reason to access sip from the C++ side
> of a C++-Python 
> mixed-language application (at least in cases I'm
> familiar with).
> 


		
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html




More information about the PyQt mailing list