Monthly Archives: April 2007

Simplified GObject properties

Today I spent most of the day to finish off an implementation of bug 338098, adding a property helper to the python gobject bindings. The support for defining your own GObject properties in PyGObject/PyGTK has always been a nail in … Continue reading

Posted in GNOME, PyGTK, Python | 4 Comments

Metaclasses & PyGObject

I recently ran into a long-standing bug in the Kiwi plugin for Gazpacho. I have this class in Kiwi: (simplified for explanation purposes) class KiwiEntry(gtk.Entry): gproperty(‘data_type’, object) def __init__(self, data_type): gtk.Entry.__init__(self) self.set_property(‘data_type’, data_type) This worked absolutely fine when you construct … Continue reading

Posted in GNOME, PyGTK, Python | Comments Off on Metaclasses & PyGObject