[pygtk] Forbid focusing of TreeView columns

Franck Pommereau pommereau at univ-paris12.fr
Wed Feb 23 01:45:17 WST 2005


> I believe this is impossible (or should be). Anything that can be
> clicked should also be reachable via the keyboard, which means it must
> be able to receive focus.

A button can behave this way, just use:

  button.set_property("can-focus", gtk.FALSE)

and the button will not get the keyboard while staying clickable.

> That said, I'm just guessing that this is a general gtk usability
> principle -- I could be wrong

I hope you're wrong, otherwise I'll find no solution to my problem.  :-/

Cheers,
Franck


More information about the pygtk mailing list