Brian wrote:
> On Fri, 2006-15-12 at 14:52 +0000, Peter Morgan wrote:
> > Am going round the houses with this problem (and a pygtk newbie)
> > 
> > I've got the function below load_data() and wish to keep the current col 
> > sort (which works) and the selected row. The number of rows does not change
> > 
> > When I enter the load_data function the iter is there from the first 
> > line. However the last line fails with
> >  GtkWarning: gtk_list_store_get_path: assertion `iter->stamp == 
> > GTK_LIST_STORE (tree_model)->stamp' failed
> > 
> > [...]
> 
> If I'm not mistaken.  The iter becomes dead when the model is changed by
> an append, etc..  I don't have time to check my facts right now.  But It
> might shed light on it for you.

Right.  This is not necessarily true, BTW, but is true for all standard
tree models, if I remember correctly.

Try looking for `path' concept in TreeModel class.

Paul
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to