Selection in Tkinter Text widget.

Ant antroy at gmail.com
Fri Jun 2 08:37:39 EDT 2006


Fredrik Lundh wrote:
...
> it does, but by default, the selection is only shown for widgets that has the key-
> board focus.  if you add an explicit focus_set() call, you'll see the selection.
>
> </F>

Perfect! Thanks Fredrik.

Strange behaviour though (IMHO), that the selection is only shown if
the widget has focus. I just tried adding another component to the
test, and switching from widget to widget does indeed stop the
selection showing!

Cheers,

-- 
Ant...




More information about the Python-list mailing list