#NEWLINE# def set_hover( self , hover ) : #NEWLINE# #INDENT# if ( self . _hover == hover ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( ( self . _hover is not None ) and hasattr ( hover . _hover , 'on_lose_highlight' ) ) : #NEWLINE# #INDENT# self . _hover . on_lose_highlight ( ) #NEWLINE# #UNINDENT# self . _hover = hover #NEWLINE# if ( ( hover is not None ) and hasattr ( self . _hover , 'on_gain_highlight' ) ) : #NEWLINE# #INDENT# hover . on_gain_highlight ( )