code: def drag(self, (x0, y0), (x1, y1), duration, steps=1, orientation=-1):
          
  
          self.__checkTransport()
          if orientation == -1:
              orientation = self.display['orientation']
          (x0, y0) = self.__transformPointByOrientation((x0, y0), orientation, self.display['orientation'])
          (x1, y1) = self.__transformPointByOrientation((x1, y1), orientation, self.display['orientation'])
  
          version = self.getSdkVersion()
          if version <= 15:
              raise RuntimeError('drag: API <= 15 not supported (version=%d)' % version)
          elif version <= 17:
              self.shell('input swipe %d %d %d %d' % (x0, y0, x1, y1))
          else:
              self.shell('input touchscreen swipe %d %d %d %d %d' % (x0, y0, x1, y1, duration))
docs: Sends drag event in PX (actually it's using C{input swipe} command).
  
          @param (x0, y0): starting point in PX
          @param (x1, y1): ending point in PX
          @param duration: duration of the event in ms
          @param steps: number of steps (currently ignored by C{input swipe})
          @param orientation: the orientation (-1: undefined)