[python-gtk] problem with multiple inheritance
Greg Ewing
greg at cosc.canterbury.ac.nz
Thu Jun 2 23:14:17 EDT 2005
More information about the Python-list mailing list
Thu Jun 2 23:14:17 EDT 2005
- Previous message (by thread): [python-gtk] problem with multiple inheritance
- Next message (by thread): [python-gtk] problem with multiple inheritance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 types. You can only inherit from more than one built-in type if they have compatible C structures, and it appears that the two you're trying to inherit from aren't compatible. You'll have to think of some way of doing whatever you're trying to do without inheriting from multiple gtk types. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg
- Previous message (by thread): [python-gtk] problem with multiple inheritance
- Next message (by thread): [python-gtk] problem with multiple inheritance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list