From: Porter, D. (Fed) <don...@ni...> - 2021-01-14 23:13:32
|
Tk 8.6.11 was recently released. It has been discovered that a typo in its script library causes MouseWheel bindings to fail on a number of ttk widgets. This problem is typically encountered on the Windows platform. A ticket describing the problem is here: https://core.tcl-lang.org/tk/info/7beaed7db6 The patch below corrects the syntax error. It should be applied to the Tk 8.6.11 release before installing it or redistributing it. Index: library/ttk/utils.tcl ================================================================== --- library/ttk/utils.tcl +++ library/ttk/utils.tcl @@ -303,11 +303,11 @@ } if {[tk windowingsystem] eq "aqua"} { bind $bindtag <MouseWheel> "$callback \[expr {-%D}\]" bind $bindtag <Option-MouseWheel> "$callback \[expr {-10*%D}\]" } else { - bind $bindtag <MouseWheel> "$callback \[expr {-%D/120)}\]" + bind $bindtag <MouseWheel> "$callback \[expr {-%D/120}\]" } } ## Mousewheel bindings for standard scrollable widgets. # For convenience, two alternative download files have been prepared with this patch already applied. Other than the change made by the patch, they both have the same contents as the Tk 8.6.11 release. The alternative files are named tk8.6.11.1-src.tar.gz and tk86111-src.zip and they are found in the same download area as the original release. https://sourceforge.net/projects/tcl/files/Tcl/8.6.11/ We regret the error in the original release. -- Tcl Core Team and Maintainers Don Porter, Tcl Core Release Manager |