def edit_filter(self):
        """Edit name filters"""
        filters, valid = QInputDialog.getText(self, _('Edit filename filters'),
                                              _('Name filters:'),
                                              QLineEdit.Normal,
                                              ", ".join(self.name_filters))
        if valid:
            filters = [f.strip() for f in to_text_string(filters).split(',')]
            self.parent_widget.sig_option_changed.emit('name_filters', filters)
            self.set_name_filters(filters)
def edit_filter ( self ) : filters , valid = QInputDialog . getText ( self , _ ( 'Edit filename filters' ) , _ ( 'Name filters:' ) , QLineEdit . Normal , ", " . join ( self . name_filters ) ) if valid : filters = [ f . strip ( ) for f in to_text_string ( filters ) . split ( ',' ) ] self . parent_widget . sig_option_changed . emit ( 'name_filters' , filters ) self . set_name_filters ( filters )
Edit name filters