[PyKDE] PyQt Metaclass programming

Phil Thompson phil at riverbankcomputing.co.uk
Mon Dec 6 15:28:47 GMT 2004

> Hi,
>> Would it help if sip.wrappertype was placed in the sip module dictionary
>> so that you could sub-class it?
> I ran into the same troubles and asked Gary for his solution. He offered
> me
> this neat trick for declaring my metaclass:
> class SessionAware(type(QObject)):
>  ...
> I neverless think that sip.wrappertype should be exposed, as that would be
> a
> more "natural" approach to the problem - and more easy to document.

It's in the current snapshot.


More information about the PyQt mailing list