original_docstring:  Set DPI aware to capture full screen on Hi-DPI monitors. 
docstring: Set DPI aware to capture full screen on Hi-DPI monitors.
docstring_tokens: Set DPI aware to capture full screen on Hi - DPI monitors .
code: def _set_dpi_awareness(self):
          """ Set DPI aware to capture full screen on Hi-DPI monitors. """
  
          version = sys.getwindowsversion()[:2]  # pylint: disable=no-member
          if version >= (6, 3):
              # Windows 8.1+
              # Here 2 = PROCESS_PER_MONITOR_DPI_AWARE, which means:
              #     per monitor DPI aware. This app checks for the DPI when it is
              #     created and adjusts the scale factor whenever the DPI changes.
              #     These applications are not automatically scaled by the system.
              ctypes.windll.shcore.SetProcessDpiAwareness(2)
          elif (6, 0) <= version < (6, 3):
              # Windows Vista, 7, 8 and Server 2012
              self.user32.SetProcessDPIAware()
code_tokens: def _set_dpi_awareness ( self ) : version = sys . getwindowsversion ( ) [ : 2 ] if version >= ( 6 , 3 ) : ctypes . windll . shcore . SetProcessDpiAwareness ( 2 ) elif ( 6 , 0 ) <= version < ( 6 , 3 ) : self . user32 . SetProcessDPIAware ( )
short_docstring: Set DPI aware to capture full screen on Hi-DPI monitors.
short_docstring_tokens: Set DPI aware to capture full screen on Hi - DPI monitors .
comment: """ Set DPI aware to capture full screen on Hi-DPI monitors. """$SEP$# pylint: disable=no-member$SEP$# Windows 8.1+$SEP$# Here 2 = PROCESS_PER_MONITOR_DPI_AWARE, which means:$SEP$#     per monitor DPI aware. This app checks for the DPI when it is$SEP$#     created and adjusts the scale factor whenever the DPI changes.$SEP$#     These applications are not automatically scaled by the system.$SEP$# Windows Vista, 7, 8 and Server 2012