[PyKDE] SIP Support for C++ Operators and Exceptions
Paul F. Kunz
Paul_Kunz at SLAC.Stanford.EDU
Fri Jul 25 18:22:01 BST 2003
>>>>> On Fri, 25 Jul 2003 16:30:01 +0100, Phil Thompson <phil at riverbankcomputing.co.uk> said:
>> > What if you implement __str__() for your exception class?
>>
>> I suppose you mean to implement this in the .sip file. Can you
>> point to an example of doing this in the PyQt sources?
> grep __str__ *.sip => qbytearray.sip, qcstring.sip, qstring.sip
> The important bits are that "sipCpp" will be a pointer to your
> exception class instance and you should return a Python string or
> Unicode object.
Got it to work. Thanks!
More information about the PyQt
mailing list