I do this all the time in Python with:
def key_tree_tab(self, treeview, event):
keyname = Gdk.keyval_name(event.keyval)
path, col = treeview.get_cursor()
# only visible columns!!
columns = [c for c in treeview.get_columns() if c.get_visible()]
colnum =
Hi All,
I did some further tests and the addresses returned in focus_column are
the same as the columns I created with "gtk_tree_view_column_new();".
Well, it's quite obvious but somehow I expected that there is some API
function which returns an index for a column. Anyway, I will continue by
Hello All,
I got a little problem with a GtkTreeView and with getting the cell
which actually has got the focus:
From the API documentation it seems like
gtk_tree_view_get_cursor(GTK_TREE_VIEW(tree), &path, &focus_column);
is doing the job. I can handle the path, it gives me the row which ha