]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Use tk_scaling() instead of a raw Tcl call in IDLE and tkinter tests (#152788)
authorTerry Jan Reedy <tjreedy@udel.edu>
Wed, 1 Jul 2026 15:08:37 +0000 (11:08 -0400)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2026 15:08:37 +0000 (15:08 +0000)
commit0f59b2a800d2f91b863c80c92b64966a8ed28515
tree4a857924ef90f0e6a1577063caf7e612895d72a5
parentc6982439ee0dd11f8014f78205132df0a8a85027
Use tk_scaling() instead of a raw Tcl call in IDLE and tkinter tests (#152788)

Replace `tk.call('tk', 'scaling')` with `tk_scaling()`, which
returns a float, in idlelib.util and test_tkinter.widget_tests.

Co-authored-by: serhiy-storchaka
Lib/idlelib/util.py
Lib/test/test_tkinter/widget_tests.py