diff options
author | fvogel <fvogelnew1@free.fr> | 2019-09-08 20:24:20 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-09-08 20:24:20 (GMT) |
commit | fddf1502adf93ca63d12bd3596e4621b7686dd94 (patch) | |
tree | f75707b506c7a6447df79af941d93f480a10baf2 | |
parent | 0cc30be9713abed839539f4233cdc9210905dfa1 (diff) | |
download | tk-fddf1502adf93ca63d12bd3596e4621b7686dd94.zip tk-fddf1502adf93ca63d12bd3596e4621b7686dd94.tar.gz tk-fddf1502adf93ca63d12bd3596e4621b7686dd94.tar.bz2 |
Fix [2834776fff]: ttk::spinbox spins up/down when disabled
-rw-r--r-- | library/ttk/spinbox.tcl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/ttk/spinbox.tcl b/library/ttk/spinbox.tcl index 1aa0ccb..90a1572 100644 --- a/library/ttk/spinbox.tcl +++ b/library/ttk/spinbox.tcl @@ -81,6 +81,7 @@ proc ttk::spinbox::Release {w} { # or <<Decrement> (+1, down) events. # proc ttk::spinbox::MouseWheel {w dir} { + if {[$w instate disabled]} { return } if {$dir < 0} { event generate $w <<Increment>> } else { @@ -132,6 +133,7 @@ proc ttk::spinbox::Adjust {w v min max} { # -from, -to, and -increment. # proc ttk::spinbox::Spin {w dir} { + if {[$w instate disabled]} { return } set nvalues [llength [set values [$w cget -values]]] set value [$w get] if {$nvalues} { |