code: def get_rect(self):
          
          if self.handle:
              left, top, right, bottom = win32gui.GetWindowRect(self.handle)
              return RECT(left, top, right, bottom)
          else:
              desktop = win32gui.GetDesktopWindow()
              left, top, right, bottom = win32gui.GetWindowRect(desktop)
              return RECT(left, top, right, bottom)
docs: Get rectangle of app or desktop resolution
  
          Returns:
              RECT(left, top, right, bottom)