#NEWLINE# def set_mouse_position( self , x , y , absolute = False ) : #NEWLINE# #INDENT# point = CGPoint ( ) #NEWLINE# if absolute : #NEWLINE# #INDENT# point . x = x #NEWLINE# point . y = y #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# rect = Rect ( ) #NEWLINE# carbon . GetWindowBounds ( self . _window , kWindowContentRgn , byref ( rect ) ) #NEWLINE# point . x = ( x + rect . left ) #NEWLINE# point . y = ( ( rect . top + ( rect . bottom - rect . top ) ) - y ) #NEWLINE# #UNINDENT# carbon . CGWarpMouseCursorPosition ( point )