def defaultFileDialogOptions(dirname):
    """ Return a dictionary with file dialog options that can be
        used in both the save file dialog as well as in the open
        file dialog. """
    wcd = 'All files(*)|*|cor file(*.cor)|*.cor|peaks list(*.dat)|*.dat'
    return dict(message='Choose a data file (peaks list)', defaultDir=
        dirname, wildcard=wcd)
