Class: File_Selection_Dialog | VolumeViewer/grid_files/filedialog.py | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Argument file_types is a list of pairs of menu text and type names. The callback argument is passed the file selection dialog as an argument. From the file selection dialog the paths and file type can be obtained. It is the job of the callback to close the file dialog (with d.close()). This allows the dialog to stay open if the selected file is of the wrong type and the user will likely want to choose another file.
|