[pygtk] Iterate over all rows of a gtk.TreeView
Robert Park
rbpark at exolucere.ca
Sun Nov 21 13:02:35 WST 2010
On Sat, Nov 20, 2010 at 6:28 PM, John Haiducek <jhaiduce at gmail.com> wrote:
> Is there some way to iterate over all rows of a gtk.TreeView, and not
> just the top-level ones?
http://www.pygtk.org/docs/pygtk/class-gtktreemodel.html#method-gtktreemodel--foreach
If that doesn't do what you want, it should not be difficult to write
a recursive function that checks if the given iter has any children
and then recurses itself over each child.
--
http://exolucere.ca
More information about the pygtk
mailing list