The "selection range" command works as expected on all platforms. The
default binding scripts make heavy use of it, and one can select any
text range in a Tk core entry or ttk::entry widget with the mouse and
the keyboard, which would not be true if the command didn't work.
However, *on Windows* (only) the selection will only become visible when
the entry gets the focus. If you just type in the commands from within
an interactive wish session then the entry won't yet have the focus. By
clicking the task bar of the Wish window, the entry will get the focus
(if it is the only widget of the window, like in the simple example
discussed in this thread) and the selection will become visible. By
activating any other top-level window, the selection will become
invisible again.
--
Csaba Nemethi
http://www.nemethi.de mailto:
csaba....@t-online.de