Christian Robottom Reis [Thu, Oct 16, 2003 at 01:51:34AM -0300]:
> On Sat, Oct 11, 2003 at 10:50:19PM +0000, Michal Pasternak wrote:
> > 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.
> 
> I started to add this one, but I'm not entirely sure what you mean. From

Well, for some people it might be obvious, for some - like me - it was not:
TreeView.expand_row will expand only the row, that is specified by the path.
So, if someone wants to be sure, that the expanded row (specified by the
path) will really become expanded (visible to the end-user), s/he should
expand all the rows "above" it. That's the whole point. I thought that this
might be useful to other people, I had some problems with it.

-- 
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