> Date: Fri, 7 May 2010 00:17:09 +0200
> From: Pasquale Ambrosini <[email protected]>
> Subject: [pygtk] Retrieve Iter before "iter selected" in a treeview
> To: [email protected]
> Message-ID:
>       <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> 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.

Hi,
Selection is a per view entity => use TreeView.get_selection() to
retrieve your view selection and then use methods of this TreeSelection.
Hth.

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to