code: def pan(self, *pan):
          
          if len(pan) == 1:
              pan = pan[0]
          self.rect = self.rect + pan
docs: Pan the view.
  
          Parameters
          ----------
          *pan : length-2 sequence
              The distance to pan the view, in the coordinate system of the
              scene.