[pygtk] scrolledwindows and treeview

francesco francesco at promotux.it
Mon Dec 29 20:36:23 WST 2008


Neil Dugan ha scritto:
> francesco wrote:
>> Hi, i have a treeview inside a scrolledwindows
>> when i append a new row scrolledwindows daesn't scroll until bottom 
>> but stay up,
>> if i scrolled by hand until bottom and so append a new row it scroll 
>> a bit and cover the last row inserted.
>> HOw can i make scrolledwindows to scroll to show always the last row 
>> inserted?
>>
>> thanks and sorry for my poor english
>>
>>
>>
> This is what I use.
>
> row_iter = model.append(.....)
> path = model.get_path(row_iter)
> self.listview.scroll_to_cell(path)
>
> Regards Neil.
>
thanks
i solved with a

self.listview.scroll_to_cell(str(len(model) -1 ))


More information about the pygtk mailing list