#NEWLINE# @ on_trait_change ( 'filters[]' ) #NEWLINE# def _update_filter_editor( self , object , name , old , new ) : #NEWLINE# #INDENT# " Handles the set of filters associated with the editor's factory\n            being changed.\n        " #NEWLINE# values = { #NEWLINE# #INDENT# None : '000:No filter' , #NEWLINE# #UNINDENT# } #NEWLINE# i = 0 #NEWLINE# for filter in self . filters : #NEWLINE# #INDENT# if ( not filter . template ) : #NEWLINE# #INDENT# i += 1 #NEWLINE# values [ filter ] = ( '%03d:%s' % ( i , filter . name ) ) #NEWLINE# #UNINDENT# #UNINDENT# values [ customize_filter ] = ( '%03d:%s' % ( ( i + 1 ) , customize_filter . name ) ) #NEWLINE# if ( self . _filter_editor is None ) : #NEWLINE# #INDENT# self . _filter_editor = EnumEditor ( values = values ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _filter_editor . values = object