mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-31500: IDLE: Scale default fonts on HiDPI displays. (#3639)
This commit is contained in:
parent
3d1e2ab584
commit
a96c96f5da
4 changed files with 20 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue