Re: [pygtk] ListStore iter vs. path

2007-12-04 Thread Marco Antonio Islas Cruz
Paths is a reffer to a row, as an example, if you have a model with 100 rows, the path 10 will ref to the row number 11, no matter if you insert rows before, the row will ref only to the row number 11. Iters are another kind of ref. they ref to the row and keep the ref with the row even if you

[pygtk] ListStore iter vs. path

2007-12-03 Thread Caleb Marcus
I'm just starting to learn PyGTK and GUI programming in general, and Tree/ListViews confuse me tremendously. One question I have is, what's the difference between iters and paths? It seems like paths are much easier to use, because I can simply use model[path][column] to access any part of the

Re: [pygtk] ListStore iter vs. path

2007-12-03 Thread Greg Ewing
Caleb Marcus wrote: One question I have is, what's the difference between iters and paths? At a guess, I'd say that iters are likely to be more efficient, as they can hook directly into the underlying data structure, whereas a path requires some sort of lookup operation each time it's used.