docs: def setRect(self, *args):
          """ Sets the rect of the region. Accepts the following arguments:
  
          setRect(rect_tuple)
          setRect(x, y, w, h)
          setRect(rect_region)
          """
          if len(args) == 1:
              if isinstance(args[0], tuple):
                  x, y, w, h = args[0]
              elif isinstance(args[0], Region):
                  x = Region.getX()
                  y = Region.getY()
                  w = Region.getW()
                  h = Region.getH()
              else:
                  raise TypeError("Unrecognized arguments for setRect")
          elif len(args) == 4:
              x, y, w, h = args
          else:
              raise TypeError("Unrecognized arguments for setRect")
          self.setX(x)
          self.setY(y)
          self.setW(w)
          self.setH(h)
          return self