[pygtk] How do I set the number of visible rows in a TreeView?

John Finlay finlay at moeraki.com
Thu Jul 15 14:46:59 WST 2004


Peter Williams wrote:

> I've scoured the reference and tutorial and can't find out how to set 
> the number of rows that are to be displayed in a TreeView.  Can anyone 
> enlighten me?
>
In general the number of rows displayed in a TreeView is the same as the 
number of rows in the associated TreeModel (e.g. ListStore or 
TreeStore). However, the TreeModelFilter allows you to control the 
visibility of individual rows. See:

http://www.pygtk.org/pygtk2tutorial/ch-TreeViewWidget.html#sec-TreeViewOverview

and:

http://www.pygtk.org/pygtk2tutorial/sec-TreeModelSortAndTreeModelFilter.html#sec-TreeModelFilter

John



More information about the pygtk mailing list