[pygtk] question about tree view
dannym
danny.milo at gmx.net
Tue Jan 3 01:09:09 WST 2006
Hi,
Am Montag, den 02.01.2006, 16:36 +0000 schrieb nephish:
> Hey there,
> i am using a tree view to show one main coloum and one child.
> i can browse through the tree just fine, but i have to double-click to
> make it selected and give the on_tree_row_activated signal. Where can i
> set it up to make a single click work the same way ?
The design really is like that:
- activation is double-click (everywhere)
- single-click is for changing the selection
Therefore, if you want to react on single click, you really want to
react on selection change, so you have to do something like,
treeview1.get_selection().connect("changed", selection_changed_cb)
in there you probably check the current selection (with
get_selected_rows or get_selected) and update some preview (I assume
this is what you want to do)
cheers,
Danny
More information about the pygtk
mailing list