tsib
|
Posted: September 18, 2010 17:12 by tsib
|
|
Hi, it seems that virtual events <<ListboxSelect>> (for listbox widget) and <<ComboboxSelect >> (for jcombobox) doesnot work. I tried with this scripts: SCRIPT 1 (listbox, <Double-ButtonPress-1> works well)
listbox .projlist -height 5
.projlist insert end "FIRST" "FAH" 1 2 3 4 5
pack .projlist -side top
#bind .projlist <Double-ButtonPress-1> "showSEL"
bind .projlist <<SelectionChanged>> "showSEL"
proc showSEL {} {
set idx [.projlist curselection]
puts "Selected $idx"
}
SCRIPT2 (jcombobox)
proc procCSEL {} {
puts "selected"
}
set res "a"
jcombobox .combproj -variable $res
.combproj item append 1 2 3 4 5
bind .combproj <<ComboboxSelected>> "procCSEL"
pack .combproj -side left
Can anybody help or comment my problem? Thanks, Oleg |
Virtual events ListboxSelect and ComboboxSelect doesn't work
Replies: 1 - Last Post: September 21, 2010 11:05
by: tsib
by: tsib
« Older Topic
» Newer Topic
showing 1 - 2 of 2
Replies: 1 - Last Post: September 21, 2010 11:05
by: tsib
by: tsib
« Older Topic
» Newer Topic






