MCPcopy Index your code
hub / github.com/python/cpython / fix_win_hidpi

Function fix_win_hidpi

Lib/idlelib/util.py:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24# https://msdn.microsoft.com/en-us/library/windows/desktop/dn280512(v=vs.85).aspx
25if sys.platform == 'win32': # pragma: no cover
26 def fix_win_hidpi(): # Called in pyshell and turtledemo.
27 try:
28 import ctypes
29 PROCESS_SYSTEM_DPI_AWARE = 1 # Int required.
30 ctypes.OleDLL('shcore').SetProcessDpiAwareness(PROCESS_SYSTEM_DPI_AWARE)
31 except (ImportError, AttributeError, OSError):
32 pass
33
34
35if __name__ == '__main__':

Callers 2

pyshell.pyFile · 0.90
__main__.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…