#NEWLINE# def coords( self ) : #NEWLINE# #INDENT# tw = self . _tipwindow #NEWLINE# ( twx , twy ) = ( tw . winfo_reqwidth ( ) , tw . winfo_reqheight ( ) ) #NEWLINE# ( w , h ) = ( tw . winfo_screenwidth ( ) , tw . winfo_screenheight ( ) ) #NEWLINE# if self . _follow_mouse : #NEWLINE# #INDENT# y = ( tw . winfo_pointery ( ) + 20 ) #NEWLINE# if ( ( y + twy ) > h ) : #NEWLINE# #INDENT# y = ( ( y - twy ) - 30 ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# y = ( ( self . master . winfo_rooty ( ) + self . master . winfo_height ( ) ) + 3 ) #NEWLINE# if ( ( y + twy ) > h ) : #NEWLINE# #INDENT# y = ( ( self . master . winfo_rooty ( ) - twy ) - 3 ) #NEWLINE# #UNINDENT# #UNINDENT# x = tw . winfo_pointerx ( ) #NEWLINE# if ( x < 0 ) : #NEWLINE# #INDENT# x = 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( x + twx ) > w ) : #NEWLINE# #INDENT# x = ( w - twx ) #NEWLINE# #UNINDENT# #UNINDENT# return ( x , y )