@classmethod
    def create_wildcard(cls, description, extension):

        if isinstance(extension, basestring):
            pattern = extension

        else:
            pattern = ';'.join(extension)

        return "%s (%s)|%s|" % (description, pattern, pattern)
Creates a wildcard for a given extension.
dataset/ETHPy150Open enthought/pyface/pyface/i_file_dialog.py/MFileDialog.create_wildcard