|Problems? Is your data what you think it is?|
pTk Text Selection: Win32 Issue?by cmv (Chaplain)
|on Dec 04, 2012 at 15:26 UTC||Need Help??|
cmv has asked for the
wisdom of the Perl Monks concerning the following question:
I have an issue that seems to work correctly under unix, but not under windows.
Specifically, it has to do with keeping selected text highlighted in a pTk Text window, even after the user clicks into an entry widget.
If you run the attached code, do the following:
When I do this under unix, the light-green highlighting remains, even when typing in the entry widget
When I do this under windows, the light-green highlighting disappears as soon as I click in the entry widget. However, the text still shows up on STDERR when clicking the button.
Why does the light-green highlighting disappear if the text is still selected? How can I fix this?
Update: thundergnat++ for your solution.