3 class PyGObject(gobject.GObject):
4 __gtype_name__ = 'PyGObject'
6 'label': (gobject.TYPE_STRING,
8 'the label of the object',
9 'default', gobject.PARAM_READWRITE),
14 gobject.GObject.__init__(self)
15 self.set_property('label', 'hello')
17 def do_set_property(self, name, value):
18 self._props[name] = value
20 def do_get_property(self, name):
21 return self._props[name]