I can't seem to bind any number keys on the top row. The number keys on
the numeric keypad work, but the top row keys won't.
What is going on? Some Linux limitation?
Example code:
package require Tk
wm withdraw .
toplevel .top -background #c0c0c0
ttk::treeview .top.tree -columns {} -yscrollcommand {.top.vbar set} ttk::scrollbar .top.vbar -orient vertical -command {.top.tree yview}
grid .top.tree -row 0 -column 0 -sticky nsew
grid .top.vbar -row 0 -column 1 -sticky ns
grid columnconfigure . 0 -weight 1
grid rowconfigure . 0 -weight 1
.top.tree insert {} end -id root1 -text "Root 1"
.top.tree insert {} end -id root2 -text "Root 2"
.top.tree insert root2 end -id subroot1 -text "Sub Root 1"
.top.tree insert {} end -id root3 -text "Root 3"
focus .top.tree
.top.tree focus root1
# this works with or without Alt
bind .top.tree <KP_1> {puts "bang!"}
# this won't work at all
bind .top.tree <1> {puts "bang!"}
--
Luc
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)