def dragDrop(self, target, target2=None, modifiers=""):
        """ Performs a dragDrop operation.

        Holds down the mouse button on ``dragFrom``, moves the mouse to ``dragTo``, and releases
        the mouse button.

        ``modifiers`` may be a typeKeys() compatible string. The specified keys will be held
        during the drag-drop operation.
        """
        if modifiers != "":
            keyboard.keyDown(modifiers)
        
        if target2 is None:
            dragFrom = self._lastMatch
            dragTo = target
        else:
            dragFrom = target
            dragTo = target2

        self.drag(dragFrom)
        time.sleep(Settings.DelayBeforeDrag)
        self.dropAt(dragTo)

        if modifiers != "":
            keyboard.keyUp(modifiers)
def dragDrop ( self , target , target2 = None , modifiers = "" ) : if modifiers != "" : keyboard . keyDown ( modifiers ) if target2 is None : dragFrom = self . _lastMatch dragTo = target else : dragFrom = target dragTo = target2 self . drag ( dragFrom ) time . sleep ( Settings . DelayBeforeDrag ) self . dropAt ( dragTo ) if modifiers != "" : keyboard . keyUp ( modifiers )
Performs a dragDrop operation.

        Holds down the mouse button on ``dragFrom``, moves the mouse to ``dragTo``, and releases
        the mouse button.

        ``modifiers`` may be a typeKeys() compatible string. The specified keys will be held
        during the drag-drop operation.