diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2017-09-21 15:15:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-21 15:15:45 (GMT) |
commit | 0c4997f1919d8583353b12537a63dcbe7b9d280f (patch) | |
tree | 6eb92a2d6eb92675205e8b3fa261730a1e8246fe /Lib/idlelib/pyshell.py | |
parent | 88d0663005d258526496d1f8ee0acb7103c69e80 (diff) | |
download | cpython-0c4997f1919d8583353b12537a63dcbe7b9d280f.zip cpython-0c4997f1919d8583353b12537a63dcbe7b9d280f.tar.gz cpython-0c4997f1919d8583353b12537a63dcbe7b9d280f.tar.bz2 |
[3.6] bpo-31500: IDLE: Scale default fonts on HiDPI displays. (GH-3639) (#3686)
(cherry picked from commit a96c96f)
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-x | Lib/idlelib/pyshell.py | 4 |
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') |