Re: [PyKDE] PyQt Metaclass programming

2004-12-06 Thread Diez B. Roggisch
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

Re: [PyKDE] PyQt Metaclass programming

2004-12-06 Thread Phil Thompson
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

Re: [PyKDE] PyQt Metaclass programming

2004-10-28 Thread Phil Thompson
Howdy! I'm presently using QCustomEvent quite often, and decided to whip up a solution using metaclasses. The idea being that the custom event number could be automatically incremented for each custom event -- so it would be unnecessary to number them manually. However, trying to create a