Anthony Tekatch wrote:

GTK used to have a CList widget with a "select_row" signal that was sent
when a row was click upon. GTK2 only has a TreeView "select_cursor_row"
signal which I cannot get to do anything. I have had to use the
"cursor_changed" signal which emits two signal on the first click because
no row was initially selected.
What TreeView signal can I use to replace "select_row"?

Is there a place that I can read a description about what causes each
signal to be emitted?

With the new tree widget, the selection is abstracted as a separate object, which can be obtained with:
selection = treeview.get_selection()

(I think the original reason for this was to allow two views of one model to share a selection).
For single selection tree views, you can call selection.get_selected() to retrieve the selected row. For notification of changes to the selection, connect to the selection's "changed" signal.

James.

--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Reply via email to