#NEWLINE# @ classmethod #NEWLINE# def _adapt_listener( cls , self , listener ) : #NEWLINE# #INDENT# event . listen ( self , 'append' , listener . append , active_history = listener . active_history , raw = True , retval = True ) #NEWLINE# event . listen ( self , 'remove' , listener . remove , active_history = listener . active_history , raw = True , retval = True ) #NEWLINE# event . listen ( self , 'set' , listener . set , active_history = self . active_history , raw = True , retval = True )