This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients terry.reedy
Date 2018-06-27.02:22:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530066136.74.0.56676864532.issue33975@psf.upfronthosting.co.za>
In-reply-to
Content
#33656 patched PyShell to call SetProcessDpiAwareness on Windows nearly first thing, *at module level*, well before calling tkinter.Tk().  The Microsoft docs warn that making the Windows API call after starting the graphics system may not work as expected.  With tk 8.6,8, the result is sharp, but small type -- perhaps 7 points instead of 10.  This issue is about avoiding type shrinkage, both when running the htest suite as a whole and when running the test for an individual file after running the unittests.

To do that in any process, pyshell must be imported before Tk() is called.  The patch adds the following to htest.py.
import idlelib.pyshell  # Set Windows DPI awareness before Tk().

I will add the same where needed to the top of if __name__ == '__main__': clauses in idlelib modules, before running unittests.
History
Date User Action Args
2018-06-27 02:22:16terry.reedysetrecipients: + terry.reedy
2018-06-27 02:22:16terry.reedysetmessageid: <1530066136.74.0.56676864532.issue33975@psf.upfronthosting.co.za>
2018-06-27 02:22:16terry.reedylinkissue33975 messages
2018-06-27 02:22:15terry.reedycreate