GNOME Bugzilla – Bug 588133
gtk.VolumeButton() throws a error (MRO) for bases ImplementorIface on Karmic
Last modified: 2009-12-26 16:34:51 UTC
Steps to reproduce: I recently planned an application where I want to customize the widget gtk.VolumeButton(). My intention is to change the appearance of more and less buttons icons and change the subject inside gtk.ScaleButton(). But to my surprise I receive an error MRO: TypeError: Cannot create a consistent method resolution order (MRO) for bases ImplementorIface, Buildable, gtk.Orientable ERROR:/build/buildd/pygobject-2.18.0/gobject/pygobject.c:924:pygobject_new_full: assertion failed: (tp != NULL) /usr/bin/tivion: line 5: 30042 Cancelado python tivion.py $1 $2 $3 $4 I attached a completed test case. By the other hand, if you put this code in a python console, you dont get any error: $ python Python 2.6.2+ (release26-maint, Jun 19 2009, 15:14:35) [GCC 4.4.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk >>> b = gtk.VolumeButton() >>> b.get_popup().get_child().get_child().get_children()[1] <gtk.ScaleButtonScale object at 0x853e43c (GtkScaleButtonScale at 0x85fb030)> I thing that the problem is some property object hidden or similar. Stack trace: Other information:
Created attachment 138097 [details] Testcase for MRO error Testcase for MRO error
Sorry I cannot reproduce this bug with your test case.
It's ok. For me works now. I reopen if the bugs appears.