Public bug reported:

Creating two classes with GObject properties defining custom
setters/getters and making the second inheriting the first doesn't work.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "gobject_bug.py", line 15, in <module>
    class Test2(Test):
  File "/var/lib/python-support/python2.5/gtk-2.0/gobject/__init__.py", line 
40, in __init__
    cls._install_properties()
  File "/var/lib/python-support/python2.5/gtk-2.0/gobject/__init__.py", line 
68, in _install_properties
    " or getter. This is not allowed" % (cls,))
TypeError: GObject subclass <class 'gobject_bug.Test2'> defines 
do_get/set_property and it also uses a property which a custom setter or 
getter. This is not allowed

Sample code follows as attachment.

Ubuntu hardy heron.

** Affects: pygobject (Ubuntu)
     Importance: Undecided
         Status: New

-- 
custom setter/getters and inheritance
https://bugs.launchpad.net/bugs/234810
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to