[pygtk] pb with model.filter_new

Johan Dahlin johan at gnome.org
Sat Jul 23 11:44:25 WST 2005


Phillip Calvin wrote:

> The edited callback gets a parameter called iter_string.  Try this 
> code instead:
>
> def on_cell_edited(self, cell, path_string, new_text, model):
>
>        iter = model.get_iter_from_string(path_string)
>
>        model.set(iter, 0, new_text) 


Why not just use
 
  model[path_string][0] = new_text

instead, much easier :-)

Johan



More information about the pygtk mailing list