code: def get_dpi():
      
  
      def pxmm_2_dpi((pixels, length_mm)):
          return pixels * 25.6 / length_mm
  
      return map(pxmm_2_dpi, zip(wx.GetDisplaySize(), wx.GetDisplaySizeMM()))
docs: Returns screen dpi resolution