]> granicus.if.org Git - python/commit
bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 11 Jun 2018 18:39:43 +0000 (11:39 -0700)
committerGitHub <noreply@github.com>
Mon, 11 Jun 2018 18:39:43 +0000 (11:39 -0700)
commit0404d35f9dc89748949935a9178d28bedde9d8c8
tree5d9f8a829186af6c582b054c25fb12055dc8fbb6
parent860d8c4a5e0d7cd96dd23f3f7996c97693ae3d55
bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)

On Windows 8.1+ or 10, with DPI compatibility properties of the Python binary
unchanged, and a monitor resolution greater than 96 DPI, this should
make text and lines sharper. It should otherwise have no effect.

Using a magnifier, I determined that the improvement comes from horizontal and
lines being better lined up with the monitor pixels. I checked that this call causes
no problem on any Windows buildbot, including the Win7 buildbots. Unlike most
IDLE patches, this one can be easily reverted by users by removing a few lines,
at the top of idlelib/pyshell.py.
(cherry picked from commit 800415e3df69f494afe9f95a8563ce17609fe1da)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/whatsnew/3.6.rst
Lib/idlelib/NEWS.txt
Lib/idlelib/configdialog.py
Lib/idlelib/pyshell.py
Misc/NEWS.d/next/IDLE/2018-06-10-17-59-36.bpo-33656.60ZqJS.rst [new file with mode: 0644]