Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've got a working TreeView with a ListStore as its model and selection set to SINGLE. How do I emit a signal to activate a specific row? I'm using PyGI.

(Sorry if this is basic; it's not in the Python-GTK3 tutorial and much of the documentation around is based on pygtk, not PyGI.)

share|improve this question

1 Answer 1

You'll need a GtkTreePath to the row, and a GtkTreeViewColumn for the column, but you can use row_activated() on the TreeView widget you wish to activate from. Calling this will result in the row-activated signal being called, as well.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.