Tk Source Code

View Ticket
Login
Ticket UUID: 2834776
Title: ttk::spinbox spins up/down when disabled
Type: Bug Version: None
Submitter: cmi5 Created on: 2009-08-10 08:49:49
Subsystem: 88. Themed Tk Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2019-09-12 20:09:28
Resolution: Fixed Closed By: fvogel
    Closed on: 2019-09-12 20:09:28
Description:
ttk::spinbox::MouseWheel generates <<Increment>>  and <<Decrement>> 
events even when the widget is disabled.
User Comments: fvogel added on 2019-09-12 20:09:28:
Merged to core-8-6-branch and trunk.

fvogel added on 2019-09-08 20:25:56:

Problem can be reproduced by:

package require Tk
ttk::spinbox .sn -from 1 -to 100 -state normal
ttk::spinbox .sd -from 1 -to 100 -state disabled
pack .sn .sd
focus -force .sd
# now use the mousewheel or the Up/Down key
# (focus is in the disabled spinbox)

Fix looks simple, see [ce4c982756].


cmi5 added on 2009-08-10 18:18:03:
The keybindings for Up and Downkey also generate events when the widget is disabled