Search code examples
pythonsignalsglade

Tree view row activated with ONE click


I am creating a graphical interface with glade that contents a treeview.

I want to have a button that is initially enabled by doing a simple click on a row of the treeview.

I am using row-activated, but when I activate a row for the first time I have to double click the row.

Which signal should I use to detect the click to activate the row with a single click?


Solution

  • GtkTreeView as an activate-on-single-click property.

    https://developer.gnome.org/gtk3/stable/GtkTreeView.html#GtkTreeView--activate-on-single-click