I have this Gtk.TreeView()
treeview = Gtk.TreeView(model=liststore)
And I get the selected item like this:
selected_playlist_item = treeview.get_selection()
selected_playlist_item.connect("changed", self.on_selected_playlist_item)
And here is the on_selected_playlist_item
callback
def on_selected_playlist_item(self, selection):
model, treeiter = selection.get_selected()
if treeiter is not None:
print("You selected", model[treeiter][1])
How can I connect only to the double-click / return selection, and not just a single click / movement in the listview?
I have been looking in a lot of places for a list of possible signals, but to no avail ; If somebody knows where to find such documentation, that would be a nice bonus, I have other connect()
issues like that.