Tkinter list boxes, selection emphasis, and the keyboard focus
no at spam.com
Tue Feb 26 20:21:48 CET 2002
> Python fans:
> First, some definitions...
> Focus - the single place on entire screen where keyboard activity will
> reflect. This displays either a text caret or an ant rectangle.
> Selection - in a list box, which item is the user's favorite. This
> displays by changing the color scheme to an opposing contrast.
> Now the problem. Tkinter appears to slur these definitions together. If,
> for example, I put two list boxes next to each other, they treat the focus
> and selection the same. If the keyboard focus is in the second one, we
> can't see which item in the first one is selection.
> I will deal, short term, by changing some other property in the lists. (I
> will therefor do Tkinter's housekeeping for it.)
> But has anyone addressed this problem directly? Is there a configuration
> option I overlooked?
It appears that "activate" does not work, and there are list server posts
lamenting it out there.
Further, though there is an "itemconfigure" for Listbox, my Python 2.0 does
not have it.
I am open to any suggestion for a workaround!
More information about the Python-list