Menu

#120 GUI: File Dialogs: Allow Multiple File Types

closed-invalid
nobody
None
5
2012-11-24
2012-07-13
francis
No

/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) + "||"

Discussion

  • Roger Upole

    Roger Upole - 2012-07-13
    • status: open --> pending
     
  • Roger Upole

    Roger Upole - 2012-07-13

    I think this is meant for the PyGUI package, which isn't part of Pywin32.

     
  • Mark Hammond

    Mark Hammond - 2012-11-24

    Thanks, but not a pywin32 patch

     
  • Mark Hammond

    Mark Hammond - 2012-11-24
    • status: pending --> closed-invalid
     

Log in to post a comment.