Re: [python-gtk] problem with multiple inheritance

2005-06-03 Thread Taki Jeden
Greg Ewing wrote: > Taki Jeden wrote: > >> class view_tree_model(gtk.GenericTreeModel,gtk.TreeSortable): >> >> raises a "TypeError: multiple bases have instance lay-out conflict" >> Is this a bug in gtk, or python-gtk, or something? > > It's not a bug, it's a limitation of the way Python > hand

Re: [python-gtk] problem with multiple inheritance

2005-06-02 Thread Chris Lambacher
One way to get around this would be to omit the TreeSortable interface and use TreeModelSort to do the sorting instead. It doesn't look like GenericTreeModel is designed to also support the TreeSortable interface (you would need something like GenericTreeSortable since you would need some magic to

Re: [python-gtk] problem with multiple inheritance

2005-06-02 Thread Greg Ewing
Taki Jeden wrote: > class view_tree_model(gtk.GenericTreeModel,gtk.TreeSortable): > > raises a "TypeError: multiple bases have instance lay-out conflict" > Is this a bug in gtk, or python-gtk, or something? It's not a bug, it's a limitation of the way Python handles inheritance from built-in typ

[python-gtk] problem with multiple inheritance

2005-06-02 Thread Taki Jeden
Hi I'm trying to install a certain python program which uses gtk, and the following line: class view_tree_model(gtk.GenericTreeModel,gtk.TreeSortable): raises a "TypeError: multiple bases have instance lay-out conflict" Is this a bug in gtk, or python-gtk, or something? I know of people who run