Tk Source Code

View Ticket
Login
Ticket UUID: 616923
Title: Selection not always claimed by text
Type: Bug Version: obsolete: 8.4.1
Submitter: dkf Created on: 2002-10-01 08:23:44
Subsystem: 18. [text] Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-09-21 09:20:08
Resolution: Invalid Closed By: sf-robot
    Closed on: 2006-09-21 02:20:08
Description:
The following will not claim the selection:
  pack [text .t]
  update
  .t insert 1.0 "any text" sel

Note that the problem is independent of the index, but
things work if the text widget was the last window on
the display to claim the selection.  However if the
selection was anywhere else (including another Tk
widget in the same toplevel as the text widget) the
selection will not be claimed by the text (though it
will be highlighted as if it is.
User Comments: sf-robot added on 2006-09-21 09:20:08:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

hobbs added on 2006-09-07 04:39:43:
Logged In: YES 
user_id=72656

On unix the text selection is always highlighted,
independent of widget focus, unless it uses -exportselection
1 and is specifically lost.