#NEWLINE# def set_location( self , x , y ) : #NEWLINE# #INDENT# rect = Rect ( ) #NEWLINE# carbon . GetWindowBounds ( self . _window , kWindowContentRgn , byref ( rect ) ) #NEWLINE# rect . right += ( x - rect . left ) #NEWLINE# rect . bottom += ( y - rect . top ) #NEWLINE# rect . left = self #NEWLINE# rect . top = y #NEWLINE# carbon . SetWindowBounds ( self . _window , kWindowContentRgn , byref ( rect ) )