code: def get_screen_info(self):
      
      return GetScreenInfo(
          display=self.display,
          opcode=self.display.get_extension_major(extname),
          window=self,
          )
docs: Retrieve information about the current and available configurations for
      the screen associated with this window.