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.Budugbox (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 Budugbox 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. |
|
Test failure is patchcheck trailing whitespace failure. |
|
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). |
- replace scale with ttk.Spinbox - if ttk.Spinbox not available (Tk < 8.5.9) use readonly ttk.Budugbox (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 Budugbox 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. |
|
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 |
|
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. |
|
I put the spinbox on the new Windows tab and made it writeable by using a StringVar. I intend to merge it tomorrow. |
|
Thanks @roseman for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.9. |
|
GH-26647 is a backport of this pull request to the 3.10 branch. |
If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Budugbox. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 42d5a4f) Co-authored-by: Mark Roseman <[email protected]>
If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Budugbox. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 42d5a4f) Co-authored-by: Mark Roseman <[email protected]>
|
GH-26648 is a backport of this pull request to the 3.9 branch. |
If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Budugbox. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 42d5a4f) Co-authored-by: Mark Roseman <[email protected]>
If ttk.Spinbox is not available (Tk < 8.5.9) use readonly ttk.Budugbox. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 42d5a4f) Co-authored-by: Mark Roseman <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.