| Ticket UUID: | 2501278 | |||
| Title: | ttk::scale keyboard binding problem + patch | |||
| Type: | Bug | Version: | current: 8.5.14 | |
| Submitter: | cjmcdonald | Created on: | 2009-01-12 12:37:44 | |
| Subsystem: | 88. Themed Tk | Assigned To: | jenglish | |
| Priority: | 8 | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2013-08-30 15:17:08 | |
| Resolution: | Fixed | Closed By: | dgp | |
| Closed on: | 2013-08-30 15:17:08 | |||
| Description: |
As documented in the ttk::scale man page, the widget supports a reversed scale where the -to value is less than the -from value. A usage example is the Windows taskbar pop-up volume slider - the top end of the scale is 100% and the bottom end of the scale is 0%. The ttk::scale keyboard bindings don't work with a reversed scale, as demonstrated in the attached example. Pressing the up-arrow key moves the slider down, etc. The attached patch fixes the problem. Its is for library/ttk/scale.tcl, CVS HEAD revision 1.2 | |||
| User Comments: |
jan.nijtmans added on 2013-06-28 11:22:54:
Fixed in core-8-5-branch [3fec32a981] and trunk [57f9af7736]. cjmcdonald added on 2009-05-01 18:20:02: I've bumped up the priority of this simple problem & patch to increase its visibility a bit. The current behaviour as demonstrated by the given ttkscale-example.tcl is clearly wrong, pressing the keyboard up-arrow moves the slider down, and vice-versa. I have been using the attached patched ttk/scale.tcl successfully for the last 3 months. There is similar code already in the standard tk scale widget. cjmcdonald added on 2009-01-12 19:39:12: File Added - 308769: ttkscale-patch.tcl cjmcdonald added on 2009-01-12 19:37:45: File Added - 308768: ttkscale-example.tcl | |||
Attachments:
- ttkscale-patch.tcl [download] added by cjmcdonald on 2009-01-12 19:39:12. [details]
- ttkscale-example.tcl [download] added by cjmcdonald on 2009-01-12 19:37:44. [details]
