From ed3a3803af5424c6225ca42c8209a69dd23327fa Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 4 Jul 2026 18:34:41 -0400 Subject: [PATCH] Add "new in 3.16" to idlelib test (GH-152788) util (line 27): root.tk_scaling method is new in 3.16. This should have been included in PR-#152788. --- Lib/idlelib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/util.py b/Lib/idlelib/util.py index bdf02892de68ea9..e884e38bef90bf1 100644 --- a/Lib/idlelib/util.py +++ b/Lib/idlelib/util.py @@ -24,7 +24,7 @@ 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)