Ejemplo n.º 1
0
 def __init__(self, model_attributes, current_callback):
     Tree.__init__(self)
     self.set_property('markup-format-string', '%(__model_markup__)s')
     BaseMultiModelObserver.__init__(self, model_attributes,
                                     current_callback)
     self._current = None
     self.connect('clicked', self.cb_clicked)
Ejemplo n.º 2
0
 def __init__(self, model_attributes, current_callback):
     Tree.__init__(self)
     self.set_property('markup-format-string', '%(__model_markup__)s')
     BaseMultiModelObserver.__init__(self, model_attributes,
                                     current_callback)
     self._current = None
     self.connect('clicked', self.cb_clicked)
Ejemplo n.º 3
0
 def __init__(self, model_attributes, current_callback):
     self._store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_PYOBJECT)
     self._cell = gtk.CellRendererText()
     gtk.ComboBox.__init__(self, self._store)
     self.pack_start(self._cell, True)
     self.add_attribute(self._cell, 'text', 0)
     BaseMultiModelObserver.__init__(self, model_attributes,
                                     current_callback)
     self._current = None
     self.connect('changed', self.cb_clicked)
Ejemplo n.º 4
0
 def __init__(self, model_attributes, current_callback):
     self._store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_PYOBJECT)
     self._cell = gtk.CellRendererText()
     gtk.ComboBox.__init__(self, self._store)
     self.pack_start(self._cell, True)
     self.add_attribute(self._cell, 'text', 0)
     BaseMultiModelObserver.__init__(self, model_attributes,
                                     current_callback)
     self._current = None
     self.connect('changed', self.cb_clicked)