GUIKIT PACKAGE
{}

"FileDialog"

Widget["FileDialog"]
represents an Open or Save dialog.

DetailsDetails

  • To use Widget["FileDialog"], you first need to load GUIKit using Needs["GUIKit`"].
  • The following properties are available:
  • "multiSelectionEnabled"Falsewhether multiple files can be selected
    "fileSelectionMode"0whether files, directories, or files and directories can be selected
    "selectedFile"Nullthe 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 and so that the modal file dialog will base its position and properties relative to this parent window.
New to Mathematica? Find your learning path »
Have a question? Ask support »