[PyKDE] SIP question

Eric Laflamme elaflamme at avtoma.com
Tue Jun 11 16:49:00 BST 2002


Hi,

I'm starting to use Python/C++ and SIP.

1- first, is there any places to find examples and doc about SIP
(I know website http://www.controlvideo.de/sip/out/index.html and the
little example at http://www.opendocs.org/pyqt/)



2- Second, I create a DLL in C++ exporting a dummy class.
After using SIP and building the result, I run a python script,
with the following error.  What's wrong?

  	File "C:\Python22\Lib\site-packages\DLL2Test.py", line 10, in ?
	    a = CTest()
	File "DLL2.py", line 12, in __init__
	    libDLL2c.sipCallCtor(0,self,args)
	SystemError: error return without exception set

Here is the script:
	
	from DLL2 import *

	class CTest(CBaseTest):    
	    def Out(self):
	        print "coucou"

	a = CTest()
	a.Out()

where CBaseTest class came from the DLL in C++

Regards
eric




More information about the PyQt mailing list