Hi,

I'd like someone to add a new FAQ entry about TreeViews (and, well, correct
my English, or even the example code ;)


Q: Why TreeView.expand_row doesn't work for paths logner, than 1 element?

A: TreeView.expand_row expands only the specified row, so you'd rather use:

   for a in range(len(path)):
        tree_view.expand_row(path[:a+1], gtk.TRUE)
   
   to make sure all rows get expanded.

-- 
Michal Pasternak :: http://pasternak.w.lub.pl
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to