I'm trying to put together a small editable treeview using the gtk.CellRendererText and setting it editable following the FAQ guide here; http://faq.pygtk.org/index.py?req=show&file=faq13.010.htp My code currently looks like this; renderer = gtk.CellRendererText() renderer.connect('edited', self.on_tv_cell_edited) renderer.set_property('editable', True) treeview.insert_column_with_attributes(-1, 'Min', renderer, text=0) treeview.insert_column_with_attributes(-1, 'Max', renderer, text=1) model = gtk.TreeStore(gobject.TYPE_INT, gobject.TYPE_INT) treeview.set_model(model) tviter = model.append(None) model.set_value(tviter, 0, 1) model.set_value(tviter, 1, 5) and the callback is like this; def on_tv_cell_edited( self, renderer, path, value ): print path print value But I can't seem to determine any method of identifying which cell value corresponds to. Do I need to have separate renderers for each column and set different signals for those columns? BR, K
Attachment:
signature.asc
Description: This is a digitally signed message part