#NEWLINE# def _dragTo( x , y , button ) : #NEWLINE# #INDENT# if ( button == 'left' ) : #NEWLINE# #INDENT# _sendMouseEvent ( Quartz . kCGEventLeftMouseDragged , x , y , Quartz . kCGMouseButtonLeft ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( button == 'middle' ) : #NEWLINE# #INDENT# _sendMouseEvent ( Quartz . kCGEventOtherMouseDragged , x , y , Quartz . kCGMouseButtonCenter ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( button == 'right' ) : #NEWLINE# #INDENT# _sendMouseEvent ( Quartz . kCGEventRightMouseDragged , x , y , Quartz . kCGMouseButtonRight ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert False , "button argument not in ('left', 'middle', 'right')"