[pywin32-bugs] [ pywin32-Patches-3543626 ] GUI: File Dialogs: Allow Multiple File Types
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2012-07-13 16:51:37
|
Patches item #3543626, was opened at 2012-07-13 09:51 Message generated for change (Tracker Item Submitted) made by fkjt79 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=3543626&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: felix (fkjt79) Assigned to: Nobody/Anonymous (nobody) Summary: GUI: File Dialogs: Allow Multiple File Types Initial Comment: /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) + "||" ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=3543626&group_id=78018 |