GUIKit`
GUIKit`
"FileDialog"
The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.
Widget["FileDialog"]
represents an Open or Save dialog.
Details
- To use Widget["FileDialog"], you first need to load GUIKit using Needs["GUIKit`"].
- The following properties are available:
-
"multiSelectionEnabled" False whether multiple files can be selected "fileSelectionMode" 0 whether files, directories, or files and directories can be selected "selectedFile" Null the selected file - The following methods are available:
-
"showOpenDialog" requests that the dialog open using the "open a file" mode "showSaveDialog" requests that the dialog open using the "save a file" mode - You will probably want to pass a widget reference of a window or frame (instead of Null) in the argument call of "showOpenDialog" and "showSaveDialog" so that the modal file dialog will base its position and properties relative to this parent window.
Examples
open allclose allBasic Examples (1)
Interactive Examples (1)
Create an Open dialog that allows single file selection and returns the path string result:
Allow multiple file selection:
Allow single directory selection only:
Allow multiple selection of both files and directories:
Create a Save dialog that prompts for file name selection or creation and returns the path string result: