[pygtk] CellRendererToggle - how to prevent toggles from selecting the row

Geoff Bache geoff.bache at jeppesen.com
Wed Jan 3 23:48:53 WST 2007


Hi,

I have a gtk.TreeView with several columns, one of which renders its 
cells with CellRendererToggle.
The annoying thing with this is when the user toggles the check box, the 
whole row is selected. Is there
any way to prevent this? I've tried using 
gtk.TreeSelection.set_select_function but as far as I
can tell the callback doesn't tell me which column was clicked.

(It isn't enough to just disable the selection, I also want to be able 
to select the rows, but would like
the two operations to be independent.)

Thanks,
Geoff Bache



More information about the pygtk mailing list