How to get focus on a specific cell of Gtk.TreeView?

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


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.

Need Your Help

Reusing code in switch statement (Java)

java switch-statement

I would like to use a switch statement, but I am not able to construct it without either duplicating code or using an accompanying if statement. Is there a way around this?

htaccess redirect one folder to another on same domain if request_uri condition false

regex apache .htaccess mod-rewrite redirect

I'd like to redirect the visitors if they visit the old not working URL* to* but not when they're visiting