Python GTK3 Treeview Move Selection up or down
问题 How do I move a selection up or down in a Treeview? The idea is that I can have an up and down buttons to move the selection up a row or down a row. My Treeview is using a ListStore. Not sure if that matters. 回答1: First off, I will be using C code as that's what I'm familiar with. Should you have problems translating it to Python, then say so, and I will do my best to help. The class you want to use for this is GtkTreeSelection . Basically, what you do is: Get the selection object of the view