1 from gi.repository import GObject
4 class PyGObject(GObject.GObject):
5 __gtype_name__ = 'PyGObject'
7 'label': (GObject.TYPE_STRING,
9 'the label of the object',
10 'default', GObject.PARAM_READWRITE),
15 GObject.GObject.__init__(self)
16 self.set_property('label', 'hello')
18 def do_set_property(self, name, value):
19 self._props[name] = value
21 def do_get_property(self, name):
22 return self._props[name]