Tk Library Source Code

View Ticket
Login
Ticket UUID: 1079712
Title: listbox item selection abnormally cancelled
Type: Bug Version: None
Submitter: nobody Created on: 2004-12-06 03:10:23
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-06-30 21:41:27
Resolution: Works For Me Closed By: oehhar
    Closed on: 2009-06-30 14:41:27
Description:
Version: ACTIVETCL 8.4.8.0
             BWidgets 1.7

When using multiple selection widgets like
listbox/combobox...in a same window,
if you mouse-click other ones like combobox
and select something, the selected item
in listbox will be unselected at once,
and if you use command:
"set sel [listbox_path curselection]"

$sel will be an empty string.
This potentially denies the usage of listbox with some 
other stuff.
User Comments: oehhar added on 2009-06-30 21:41:27:
Hi, this depends if the selection is exported -> only one.
Anyway, they are not.
Test script:

pack [ListBox .l -selectmode multiple]
pack [ListBox .m -selectmode multiple -bg yellow]
.l insert end a -text a
.l insert end b -text b
.m insert end a -text a
.m insert end b -text b

I am able to select all items at once.

I close the bug

kakyo added on 2004-12-06 10:13:05:
Logged In: YES 
user_id=1172534

submmited by kakyo
(forgot to login)