Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
bpo-39107: Updated Tcl and Tk to 8.6.10 in Windows installer#22405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
zooba commented Sep 24, 2020 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading. Please reload this page.
On Windows tk 8.6.10, tk Scale no longer rounds 'from', thus matching ttk Scale behavior.
terryjreedy commented Sep 25, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I verified that the only failure is in test.test_tk: FAIL: test_from (tkinter.test.test_tkinter.test_widgets.ScaleTest) The other 3 tkinter test files, test_idle, and test_turtle run OK. The reason is that on Windows, tkinter.Scale['from'] was 'fixed' to match the behavior of tkinter.ttk.Scale. In 3.9: So test_from for tk and ttk respectively use float_round() = float(round()) and False. In 8.6.10, s['from'] is 14.9 for tk.Scale also. So on Windows, conv should be False. For tk.Scale, s['to'] is adjusted according to the s['from'], so if 'from' is left as the default 0.0, 14.9 and 15.1 are adjusted to 15.0. This is not true for ttk.Scale. Anyway, since test_to passes, we leave it alone. |
terryjreedy left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About IDLE shows 3.6.10 and the existing automated tests now pass.
| def test_from(self): | ||
| widget = self.create() | ||
| self.checkFloatParam(widget, 'from', 100, 14.9, 15.1, conv=float_round) | ||
| cvt = False if sys.platform == 'win32' else float_round # 39107 |
serhiy-storchakaSep 25, 2020 • edited by taleinat
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by taleinat
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should depend not on platform, but on Tk version. Use get_tk_patchlevel().
Also, it would be better to use name conv instead of cvt for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. However, I could not fine that name in either tkinter or _tkinter, so I used the tk call used in idlelib.help_about. I used an equality check. But it would not work for an 8.6.11. Is such possible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_tk_patchlevel is defined in tkinter.test.support and is already imported in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Serhiy, do you prefer passing False, as the ttk Scale test does, or 'noconv', as in #21715?
Do you want a comment added, such as in the other PR?
Please decide whether you want to close the other issue and PR or merge it and remove the test change here.
Either way, I would like to get this merged so we can routinely test tkinter and IDLE on Windows with 8.6.10 in place.
bedevere-bot commented Sep 25, 2020
When you're done making the requested changes, leave the comment: |
Misc/NEWS.d/next/Windows/2020-09-24-23-09-40.bpo-39107.GbUZvD.rst Outdated Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
zooba commented Sep 28, 2020
@serhiy-storchaka Looks like we're waiting on you - any further comment? |
52LY commented Mar 5, 2021
s[''resolution'] = 0.1 |
https://bugs.python.org/issue39107