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 _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
