Tk Library Source Code

View Ticket
Login
Ticket UUID: 1067394
Title: BWidget 1.6: ListBox arrow key handling is buggy
Type: Bug Version: None
Submitter: pandur Created on: 2004-11-16 15:00:52
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-06-30 21:54:25
Resolution: Out of Date Closed By: oehhar
    Closed on: 2009-06-30 14:54:25
Description:
The ListBox::_keyboard_navigation function doesn't make
the right item visible if the index of the item
selected is not identical with its position in the list.

The last line of this function is:
 $path see $sel
(where $sel contains the line number in the display)
while it should be
 $path see [$path selection get]
(because this returns the user assigned index in the
data list of the ListBox, which is expected by
ListBox::see)
User Comments: oehhar added on 2009-06-30 21:54:21:
Using the following test code I get no issue:

pack [ListBox .l -selectmode multiple]
.l insert end 2 -text a
.l insert end 1 -text b
.l insert end 0 -text c

The proposed patch does not apply, the code changed in between.