2

I have a Gtk.TreeView instance and I also have the row and column index of the cell to be selected. How get to focus on the specific cell based those row and column index(int)?

Utkarsh Tiwari
  • 125
  • 2
  • 8
  • related https://stackoverflow.com/questions/3426106/how-to-search-through-a-gtk-liststore-in-pygtk-and-remove-elements/58517988#58517988 – ThorSummoner Oct 23 '19 at 07:47

1 Answers1

2

Based on the assumption that you actually mean to set the focus based on the row and column indexes you probably want to try using this function:

Treeview.row_activated(path, column)

From the documentation:

row_activated(path, column)

Parameters:
path (Gtk.TreePath) – The Gtk.TreePath to be activated.

column (Gtk.TreeViewColumn) – The Gtk.TreeViewColumn to be activated.

Activates the cell determined by path and column.

Community
  • 1
  • 1
B8vrede
  • 4,432
  • 3
  • 27
  • 40