def _filter_str(file_ext='') ->str:
    """ Return a file dialog filter string based on a file extension. It should not include the dot.
        If <file_ext> is empty, return a filter string matching any file. """
    if not file_ext:
        return 'All files (*.*)'
    return f'{file_ext.upper()} files (*.{file_ext})'
