[pygtk] TreeStore rows
Jeffrey Barish
jeff_barish at earthlink.net
Thu Jul 30 21:33:41 WST 2009
nohics nohics wrote:
> Hello,
> I want access to all the rows of my treestore, including the childs. For
> example if I have a treestore containing rows, where each row have two
> columns, the first is str and the second is a gtk.TextBuffer ... When I do
> something like:
>
> for row in self.treestore:
> if row[0] == "foo":
> row[1].insert(row[1].get_end_iter(), "bar")
>
> It doesn't seems to consider the child rows !
> How can I go through all the rows (including childs) of my treestore ?
>
> Thanks
Check out gtk.TreeModelRow, which is what row is. It has one method,
iterchildren(). Also check out the PyGTK Tutorial:
http://www.pygtk.org/pygtk2tutorial/sec-TreeModelInterface.html#sec-
PythonProtocolSupport
--
Jeffrey Barish
More information about the pygtk
mailing list