Gtk.TreeModelRowIter¶
Class Details¶
- class Gtk.TreeModelRowIter(model, aiter)¶
A
Gtk.TreeModelRowIter
is an object that implements the Python Iterator protocol. It provides the means to iterate over a set ofGtk.TreeModelRow
objects in aGtk.TreeModel
. AGtk.TreeModelRowIter
is created by calling the Python iter() function on aGtk.TreeModel
object:treemodelrowiter = iter(treestore)
or, calling the
Gtk.TreeModelRow.iterchildren
() method to iterate over its child rows.Each time you call the next() method it returns the next sibling
Gtk.TreeModelRow
. When there are no rows left the StopIteration exception is raised. Note that aGtk.TreeModelRowIter
does not iterate over the child rows of the rows it is iterating over. You’ll have to use theGtk.TreeModelRow.iterchildren
() method to retrieve an iterator for the child rows.- next()¶