gh-78143: IDLE - replace config dlg scale with ttk spinbox#22954
Conversation
- replace scale with ttk.Spinbox - if ttk.Spinbox not available (Tk < 8.5.9) use readonly ttk.Combobox (as both fully constrain available choices) - note that test originally tried to set a value above the maximum range and relied on the scale adjusting it to the maximum; without adding extra validation code, neither the spinbox or the combobox will do this; given that neither allows arbitrary input, I adjusted the test to provide a value within range
|
See issue for initial review of widget in operation. |
Sorry, something went wrong.
|
Test failure is patchcheck trailing whitespace failure. |
Sorry, something went wrong.
|
TBH, I wouldn't bother checking for 8.5.9 as of all the distros/BSDs listed on pkgs.org, only CentOS 6 (which reaches EOL very soon) has <8.5.9 (8.5.7). |
Sorry, something went wrong.
- replace scale with ttk.Spinbox - if ttk.Spinbox not available (Tk < 8.5.9) use readonly ttk.Combobox (as both fully constrain available choices) - note that test originally tried to set a value above the maximum range and relied on the scale adjusting it to the maximum; without adding extra validation code, neither the spinbox or the combobox will do this; given that neither allows arbitrary input, I adjusted the test to provide a value within range
…n/cpython into idle-config-spinbox-33962
|
Centos 6 and 7 seem to be the only ones without 8.6. NetBSD offers 8.5.19 as an option. |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Sorry, something went wrong.
|
Centos 6 is no longer on the list at https://pkgs.org/download/tk. Centos 7 has 8.5.13. Centos 8 is 8.6.8. The Pipelines failure report is not available. I did an update merge, needed anyway, to force retesting. |
Sorry, something went wrong.
|
I put the spinbox on the new Windows tab and made it writeable by using a StringVar. I intend to merge it tomorrow. |
Sorry, something went wrong.
|
Thanks @roseman for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.9. |
Sorry, something went wrong.
If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Combobox. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 42d5a4f) Co-authored-by: Mark Roseman <mark@markroseman.com>
If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Combobox. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 42d5a4f) Co-authored-by: Mark Roseman <mark@markroseman.com>
edited by terryjreedy
LoadingUh oh!
There was an error while loading. Please reload this page.
Copy link Copy MarkdownSorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.