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 97cf082 commit d274afbCopy full SHA for d274afb
Lib/idlelib/pyshell.py
@@ -12,11 +12,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:
+ import ctypes
+ PROCESS_SYSTEM_DPI_AWARE = 1
18
ctypes.OleDLL('shcore').SetProcessDpiAwareness(PROCESS_SYSTEM_DPI_AWARE)
19
- except (AttributeError, OSError):
+ except (ImportError, AttributeError, OSError):
20
pass
21
22
import tkinter.messagebox as tkMessageBox
0 commit comments