>>>>> On Fri, 25 Jul 2003 16:30:01 +0100, Phil Thompson <[EMAIL PROTECTED]> 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!

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to