1 from gi.repository import GObject
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]