[pygtk] Multiple inheritance from gobject.GObject classes

Johan Dahlin jdahlin at async.com.br
Thu Mar 29 22:12:55 WST 2007


Zsolt Foldvari wrote:
> Hi All,
> 
> At this stage (pygobject 2.12), is multiple inheritance from gobject.GObject
> subclasses (each with their own gsinals and gproperties) supposed to work?

No, __gproperties__ is read from the current class only, it is not merged in
from any mixin classes.

Check out kiwi's PropertyObject/PropertyMeta which does that for you:
 http://svn.async.com.br/cgi-bin/viewcvs.cgi/kiwi/trunk/kiwi/utils.py?rev=6012&view=auto

Also note that the mixins cannot be subclasses of GObject, that will never
be possible.


-- 
Johan Dahlin <jdahlin at async.com.br>
Async Open Source


More information about the pygtk mailing list