[pygtk] ListStore iter vs. path

Marco Antonio Islas Cruz markuz at islascruz.org
Wed Dec 5 00:04:16 WST 2007


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 insert another rows before, or if you reorder them.

On Mon, 2007-12-03 at 17:45 -0500, Caleb Marcus wrote:
> 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 ListStore. Is there any way to get the current
> selection as a path rather than an iter? 
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
<--Linux... Because I'm Free-->
Marco Antonio Islas Cruz
"Markuz"
Linux User #280229
markuz at islascruz.org
markuz at unixmexico.org
markuz at linuxpozarica.com
marco.islas at gmail.com
islacruz at yahoo.com
http://www.islascruz.org
http://sourceforge.net/projects/gpkg/
http://www.linuxpozarica.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20071204/61f605cb/attachment.pgp


More information about the pygtk mailing list