#NEWLINE# def setToolTip( self , text , colId = '#0' ) : #NEWLINE# #INDENT# self . toolTip . _hide ( ) #NEWLINE# if ( isinstance ( text , str ) and ( len ( text ) > 0 ) ) : #NEWLINE# #INDENT# width = self . treeView . column ( colId , 'width' ) #NEWLINE# if ( ( ( len ( text ) * 8 ) > width ) or ( '\n' in text ) ) : #NEWLINE# #INDENT# self . toolTipText . set ( text ) #NEWLINE# self . toolTip . configure ( state = 'normal' ) #NEWLINE# self . toolTip . _schedule ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . toolTipText . set ( '' ) #NEWLINE# self . toolTip . configure ( state = 'disabled' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . toolTipText . set ( '' ) #NEWLINE# self . toolTip . configure ( state = 'disabled' )