Igor Stroh wrote:

Hi there,

I can't force a TreeView entry to be scrolled into view, that's how I do it:

selected = <some tree iter>
selection = treeview.get_selection()
selection.select_iter(selected)
path = tree.get_path(selected)
col = treeview.get_column(1)
treeview.scroll_to_cell(path, col, gtk.TRUE, 0.5, 0)

the TreeView seems to be scrolled, but not "far enough", i.e. I don't see the
selected entry in the middle of the TreeView (encapsulated in a ScrolledWindow).
What's the problem here, any hints?


I'd guess that it's a problem with GTK.

John

_______________________________________________
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