GUI: File Dialogs: Allow Multiple File Types
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
/GUI/BaseFileDialogs.py Function win_filter
def win_filter(file_types):
filters = []
if file_types:
for ftype in file_types:
suffix = ftype.suffix
if suffix:
suffixes = suffix.split(";") # new
pattern = "*." + ";*.".join(suffixes) # modified
filters.append("%s (%s)|%s" % (ftype.name, pattern, pattern))
return "|".join(filters) + "||"
I think this is meant for the PyGUI package, which isn't part of Pywin32.
Thanks, but not a pywin32 patch