7 Oct 19:44
MouseWheel binding bug in listbox and text widgets?
From: walt <w41ter@...>
Subject: MouseWheel binding bug in listbox and text widgets?
Newsgroups: gmane.comp.lang.tcl.core
Date: 2008-10-07 17:48:14 GMT
Subject: MouseWheel binding bug in listbox and text widgets?
Newsgroups: gmane.comp.lang.tcl.core
Date: 2008-10-07 17:48:14 GMT
I've found several other posters with this same problem but I've never
seen a solution offered. When starting any tk application (including
wish) I get this:
/usr/lib64/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Text <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
My workaround is to comment these lines in listbox.tcl and text.tcl:
--- text.tcl.orig 2008-10-07 09:01:39.000000000 -0700
+++ text.tcl 2008-10-07 10:38:57.000000000 -0700
@@ -460,9 +460,9 @@
%W xview scroll [expr {-10 * (%D)}] units
}
} else {
- bind Text <MouseWheel> {
- %W yview scroll [expr {- (%D / 120) * 4}] units
- }
+# bind Text <MouseWheel> {
+# %W yview scroll [expr {- (%D / 120) * 4}] units
+# }
}
The strange part is that only one of my two linux machines has this
error (the amd64 machine) but I had the same error for awhile on my
NetBSD machine. The NetBSD error fixed itself when I upgraded a few
(Continue reading)
RSS Feed