Re: Unpredictable behavior of pywin32 on new computer
Tim Roberts <[email protected]> Tue, 11 Oct 2022 21:53:35 -0700
| Newsgroups | gmane.comp.python.windows |
|---|---|
| Message-ID | <[email protected]> |
On 10/11/22 12:23, Zach York wrote: > Interesting, thanks for the quick response. So would a quick way to > test this out be to change the scaling to 100% from whatever it's set at? That would be an interesting step. Another thing to try is to call the APIs to make your app "high-DPI aware". You can do that for one process using this code: ``` from ctypes import windll user32 = windll.user32 user32.SetProcessDPIAware() ``` Or you can use a registry hack: https://stackoverflow.com/questions/43401709/marking-your-python-program-as-high-dpi-aware-seamlessly-windows -- Tim Roberts,[email protected] Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32