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)
1) Do we really want to publicise the streaming API? Maybe it would be
fine to just provide a way to attach a streaming gzip/gunzip to a
channel as a transformation (see [chan push]) and leave it at that.
2) The API for [zlib gzip] and [zlib gunzip] seems odd too. Why can't
I control (for gzip) or discover (for gunzip) the metadata? For the
gzipper, it'd probably be best to express this as a set of options
(the compression level would be best done the same way) but I'm not
quite so sure about for gunzip.
3) Is it necessary to give a buffer size, or is letting Tcl pick one
itself "good enough"? (After all, we give a buffer growth algorithm
in the TIP!)
Let me be clear again: I'd *really* like to see zlib support in Tcl in
8.6 (and PNG images too) and I think it would make a good Big Ticket
item for many users. But I'd also like the API to be nice too, and we've
got a little time now (rest of October to be honest) to clear things up...
Donal.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
RSS Feed