]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add "new in 3.16" to idlelib line (GH-152788) (#153049)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 4 Jul 2026 23:39:11 +0000 (19:39 -0400)
committerGitHub <noreply@github.com>
Sat, 4 Jul 2026 23:39:11 +0000 (19:39 -0400)
util (line 27): root.tk_scaling method is new in 3.16.
This should have been included in PR-#152788.

Lib/idlelib/util.py

index bdf02892de68ea9236a8db423342030fe847d2f3..e884e38bef90bf19a09aa48f2f69e481f9a6ada7 100644 (file)
@@ -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)