Displays a file open dialog.
FileOpenDialog(fn, filters[, MultiSelect])
fnis a string
filtersis a list of strings
MultiSelectis a boolean
FileOpenDialog displays a file open dialog in which the user can select one or more files.
fnis the default file name.
filtersis a list of file type filters. Each filter is a string of the form
textis the displayed text of the filter (such as “Text files”), and
maskis the file name mask (such as “*.txt”).
true, the user can select several files; otherwise, only a single file can be selected. The default value is
If the user selects one or more files, then the function returns the selected file name (if
¬MultiSelect) or a list of the selected file names (if
MultiSelect). If the user cancels the dialog, an error is raised, which can optionally be handled using the
try or the