From: Terry Jan Reedy Date: Sat, 4 Jul 2026 23:39:11 +0000 (-0400) Subject: Add "new in 3.16" to idlelib line (GH-152788) (#153049) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=8e88bb56337a771f3af5edc5c3a5ba96ea2c3353;p=thirdparty%2FPython%2Fcpython.git Add "new in 3.16" to idlelib line (GH-152788) (#153049) util (line 27): root.tk_scaling method is new in 3.16. This should have been included in PR-#152788. --- diff --git a/Lib/idlelib/util.py b/Lib/idlelib/util.py index bdf02892de68..e884e38bef90 100644 --- a/Lib/idlelib/util.py +++ b/Lib/idlelib/util.py @@ -24,7 +24,7 @@ py_extensions = ('.py', '.pyw', '.pyi') def fix_scaling(root): # Called in filelist _test, pyshell, and run. """Scale fonts on HiDPI displays, once per process.""" import tkinter.font - scaling = root.tk_scaling() + scaling = root.tk_scaling() # tkinter method new in 3.16 if scaling > 1.4: for name in tkinter.font.names(root): font = tkinter.font.Font(root=root, name=name, exists=True)