#NEWLINE# def _add_button_fired( self ) : #NEWLINE# #INDENT# ' Create a new filter based on the selected template and select it.\n        ' #NEWLINE# new_filter = self . selected_template . clone_traits ( ) #NEWLINE# new_filter . template = False #NEWLINE# new_filter . name = new_filter . _name = 'New filter' #NEWLINE# self . filters . append ( new_filter ) #NEWLINE# self . selected_filter = new_filter