Public bug reported:
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.
The bug 279579 seems to be similar, but this is other code with another
property.
ProblemType: Bug
Architecture: i386
Date: Thu Jul 9 06:30:11 2009
DistroRelease: Ubuntu 9.10
Package: python-gtk2 2.15.2-0ubuntu1
ProcEnviron:
PATH=(custom, user)
LANG=es_ES.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-2.16-generic
SourcePackage: pygtk
Uname: Linux 2.6.31-2-generic i686
** Affects: pygtk (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386
--
gtk.VolumeButton() throws a error (MRO) for bases ImplementorIface on Karmic
https://bugs.launchpad.net/bugs/397273
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to pygtk in ubuntu.
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs