TreeView.scrollToPoint

void scrollToPoint(int treeX, int treeY)

Scrolls the tree view such that the top-left corner of the visible area is tree_x, tree_y, where tree_x and tree_y are specified in tree coordinates. The tree_view must be realized before this function is called. If it isn't, you probably want to be using [gtk.tree_view.TreeView.scrollToCell].

If either tree_x or tree_y are -1, then that direction isn’t scrolled.

Parameters

treeXX coordinate of new top-left pixel of visible area, or -1
treeYY coordinate of new top-left pixel of visible area, or -1

Deprecated

Use [gtk.list_view.ListView] or [gtk.column_view.ColumnView] instead