GNOME Bugzilla – Bug 105514
properties should be attributes on objects
Last modified: 2004-12-22 21:47:04 UTC
Properties (like "sensitive" on GtkWidget) should be attributes in pygtk, so you can easily do "widget.sensitive". the getattr() method for PyGObjects should probably call get_property() on the object before giving up.
What do you say about modifying __getitem__ instead? So we have: widget['sensitive'] = False print button['label'] Acceptable?
This is a duplicate of another bug I filed. If we do this, I would prefer to do it with descriptors if possible. *** This bug has been marked as a duplicate of 81879 ***