We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a05f55 commit fd88f31Copy full SHA for fd88f31
Lib/idlelib/pyshell.py
@@ -9,10 +9,13 @@
9
"Your Python may not be configured for Tk. **", file=sys.__stderr__)
10
raise SystemExit(1)
11
12
+# Valid arguments for the ...Awareness call below are defined in the following.
13
+# https://msdn.microsoft.com/en-us/library/windows/desktop/dn280512(v=vs.85).aspx
14
if sys.platform == 'win32':
15
import ctypes
16
+ PROCESS_SYSTEM_DPI_AWARE = 1
17
try:
- ctypes.OleDLL('shcore').SetProcessDpiAwareness(1)
18
+ ctypes.OleDLL('shcore').SetProcessDpiAwareness(PROCESS_SYSTEM_DPI_AWARE)
19
except (AttributeError, OSError):
20
pass
21
0 commit comments