Message320531
#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. |
|
Date |
User |
Action |
Args |
2018-06-27 02:22:16 | terry.reedy | set | recipients:
+ terry.reedy |
2018-06-27 02:22:16 | terry.reedy | set | messageid: <1530066136.74.0.56676864532.issue33975@psf.upfronthosting.co.za> |
2018-06-27 02:22:16 | terry.reedy | link | issue33975 messages |
2018-06-27 02:22:15 | terry.reedy | create | |
|