Conversation
On Windows tk 8.6.10, tk Scale no longer rounds 'from', thus matching ttk Scale behavior.
|
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. |
Sorry, something went wrong.
terryjreedy
left a comment
There was a problem hiding this comment.
About IDLE shows 3.6.10 and the existing automated tests now pass.
Sorry, something went wrong.
|
When you're done making the requested changes, leave the comment: |
Sorry, something went wrong.
|
@serhiy-storchaka Looks like we're waiting on you - any further comment? |
Sorry, something went wrong.
s[''resolution'] = 0.1 |
Sorry, something went wrong.
https://bugs.python.org/issue39107