[pygtk] pygtk Digest, Vol 87, Issue 5
Laurent G.
lauranger at free.fr
Fri May 7 23:27:21 WST 2010
> Date: Fri, 7 May 2010 00:17:09 +0200
> From: Pasquale Ambrosini <pasquale.ambrosini at gmail.com>
> Subject: [pygtk] Retrieve Iter before "iter selected" in a treeview
> To: pygtk at daa.com.au
> Message-ID:
> <l2p2ff9d91b1005061517ld83e78fl894c3d4310ecda3e at mail.gmail.com>
> 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.
More information about the pygtk
mailing list