From CSDN:

擦,仅需加入三行代码,即可解决,给这位老哥上烟!

import ctypes
errorCode = ctypes.windll.shcore.SetProcessDpiAwareness(2) # Win10 and Win8
success = ctypes.windll.user32.SetProcessDPIAware() #Win7 and below

标签: none

According to some rules, comments are banned. :)