summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pyshell.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-09-21 08:20:06 (GMT)
committerGitHub <noreply@github.com>2017-09-21 08:20:06 (GMT)
commita96c96f5dab68d4e611af4b8caefd7268533fd9a (patch)
tree938b41feb0a8e91bbec971916156274469547ef5 /Lib/idlelib/pyshell.py
parent3d1e2ab584ed0175592b5be2a0bc98dc1723776a (diff)
downloadcpython-a96c96f5dab68d4e611af4b8caefd7268533fd9a.zip
cpython-a96c96f5dab68d4e611af4b8caefd7268533fd9a.tar.gz
cpython-a96c96f5dab68d4e611af4b8caefd7268533fd9a.tar.bz2
bpo-31500: IDLE: Scale default fonts on HiDPI displays. (#3639)
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-xLib/idlelib/pyshell.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 47df744..168eeae 100755
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -12,6 +12,8 @@ import tkinter.messagebox as tkMessageBox
if TkVersion < 8.5:
root = Tk() # otherwise create root in main
root.withdraw()
+ from idlelib.run import fix_scaling
+ fix_scaling(root)
tkMessageBox.showerror("Idle Cannot Start",
"Idle requires tcl/tk 8.5+, not %s." % TkVersion,
parent=root)
@@ -1457,6 +1459,8 @@ def main():
NoDefaultRoot()
root = Tk(className="Idle")
root.withdraw()
+ from idlelib.run import fix_scaling
+ fix_scaling(root)
# set application icon
icondir = os.path.join(os.path.dirname(__file__), 'Icons')