code: def screen_resolution():
      
      w = 0
      h = 0
      try:
          # Windows
          import ctypes
          user32 = ctypes.windll.user32
          w, h = user32.GetSystemMetrics(0), user32.GetSystemMetrics(1)
      except AttributeError:
          try:
              # Mac OS X
              import AppKit
              size = AppKit.NSScreen.screens()[0].frame().size
              w, h = int(size.width), int(size.height)
          except ImportError:
              try:
                  # Linux
                  import Xlib
                  import Xlib.display
                  display = Xlib.display.Display()
                  root = display.screen().root
                  size = root.get_geometry()
                  w, h = size.width, size.height
              except ImportError:
                  w = 1920
                  h = 1080
  
      return w, h
docs: Returns the current screen's resolution.
  
      Should be multi-platform.
  
      :return: A tuple containing the width and height of the screen.