#NEWLINE# def showtip( self , text ) : #NEWLINE# #INDENT# self . text = text #NEWLINE# if ( self . tipwindow or ( not self . text ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( x , y , cx , cy ) = self . widget . bbox ( 'insert' ) #NEWLINE# x = ( ( x + self . widget . winfo_rootx ( ) ) + 27 ) #NEWLINE# y = ( ( ( y + cy ) + self . widget . winfo_rooty ( ) ) + 27 ) #NEWLINE# self . tipwindow = tw = Tkinter . Toplevel ( self . widget ) #NEWLINE# tw . wm_overrideredirect ( 1 ) #NEWLINE# tw . wm_geometry ( ( '+%d+%d' % ( x , tw ) ) ) #NEWLINE# try : #NEWLINE# #INDENT# tw . tk . call ( '::tk::unsupported::MacWindowStyle' , 'style' , tw . _w , 'help' , 'noActivates' ) #NEWLINE# #UNINDENT# except Tkinter . TclError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# label = Tkinter . Label ( tw , text = self . text , justify = Tkinter . LEFT , background = '#ffffe0' , relief = Tkinter . SOLID , borderwidth = 1 , font = ( 'tahoma' , '8' , 'normal' ) ) #NEWLINE# label . pack ( ipadx = 1 )