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)
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)