From pykde Mon Nov 29 14:27:41 2004 From: "Diez B. Roggisch" Date: Mon, 29 Nov 2004 14:27:41 +0000 To: pykde Subject: Re: [PyKDE] PyQt Metaclass programming Message-Id: <200411291527.41836.deets () web ! de> X-MARC-Message: https://marc.info/?l=pykde&m=110234295206689 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. Regards, Diez B. Roggisch _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde