[pygtk] Retrieve Iter before "iter selected" in a treeview

Osmo Antero Maatta osmoma at gmail.com
Fri May 7 15:21:34 WST 2010


Hello,

May be you can get parent to the child. See. |iter_parent(*|child|*)|. 
Then traverse the tree to find the item you need.

Take a look at Sally project,
http://futuredesktop.com/tmp/sally.tar.gz

File folderview.py, eg. function find_folder_by_name(...)

thumbview.py has similar functions that work on IconView.

Kindly
   osmo antero (moma)
   grønland

On 05/07/2010 12:17 AM, Pasquale Ambrosini wrote:
> Hi at all, i have a trouble with treeview and iter in pygtk.
> In a list, for retrieve the iter after iter selected, there is a 
> function in TreeModel:
> http://www.pygtk.org/docs/pygtk/class-gtktreemodel.html#method-gtktreemodel--iter-next
> and one for first iter:
> http://www.pygtk.org/docs/pygtk/class-gtktreemodel.html#method-gtktreemodel--get-iter-first
> but how to retrieve iter after iter selected?
> It's a stupid question, but i can't find a solution.
> Thanks.
>
> -- 
> ___________________________________________________________________________________________________________________________________
>
> Pasquale Ambrosini<pasquale.ambrosini at gmail.com 
> <mailto:pasquale.ambrosini at gmail.com>>
>
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20100507/bb5238a0/attachment.htm 


More information about the pygtk mailing list