AFXFileSelectorDialog

This class extends the FXFileDialog class and is designed to work with the mode infrastructure.


AFXFileSelectorDialog(form, title, pathNameKw, readOnlyKw, mode=AFXSELECTFILE_ANY, patterns=*, patternIndexTgt=None)

Constructor typically used to create a dialog box that is posted by a mode (e.g. by getFirstDialog); a keyword is used for the pathName. If the dialog box allows multiple selection, the pathName keyword contains comma-separated path names of all selected files.

ArgumentTypeDefaultDescription
formAFXForm Form.
titleString Dialog box title.
pathNameKwAFXStringKeyword Path name keyword.
readOnlyKwAFXBoolKeyword Read-only keyword.
modeIntAFXSELECTFILE_ANYFile selection mode.
patternsString*File filter patterns.
patternIndexTgtAFXIntTargetNoneIndex used to select a file filter pattern when the dialog box is posted.


AFXFileSelectorDialog(owner, title, pathNameKw, readOnlyKw, mode=AFXSELECTFILE_ANY, patterns=*, patternIndexTgt=None)

Constructor typically used to create a dialog box that is posted from another dialog box (e.g. from a "Select..." button); a keyword is used for the pathName. If the dialog box allows multiple selection, the pathName keyword contains comma-separated path names of all selected files.

ArgumentTypeDefaultDescription
ownerFXWindow Owner
titleString Dialog box title.
pathNameKwAFXStringKeyword Path name keyword.
readOnlyKwAFXBoolKeyword Read-only keyword.
modeIntAFXSELECTFILE_ANYFile selection mode.
patternsString*File filter patterns.
patternIndexTgtAFXIntTargetNoneIndex used to select a file filter pattern when the dialog box is posted.


AFXFileSelectorDialog(form, title, pathNameTgt, readOnlyKw, mode=AFXSELECTFILE_ANY, patterns=*, patternIndexTgt=None)

Constructor typically used to create a dialog box that is posted by a mode (e.g. by getFirstDialog); a target is used for the pathName. If the dialog box allows multiple selection, the pathName target contains comma-separated path names of all selected files.

ArgumentTypeDefaultDescription
formAFXForm Form.
titleString Dialog box title.
pathNameTgtAFXStringTarget Path name target.
readOnlyKwAFXBoolKeyword Read-only keyword.
modeIntAFXSELECTFILE_ANYFile selection mode.
patternsString*File filter patterns.
patternIndexTgtAFXIntTargetNoneIndex used to select a file filter pattern when the dialog box is posted.


AFXFileSelectorDialog(owner, title, pathNameTgt, readOnlyKw, mode=AFXSELECTFILE_ANY, patterns=*, patternIndexTgt=None)

Constructor typically used to create a dialog box that is posted from another dialog box (e.g. from a "Select..." button); a target is used for the pathName. If the dialog box allows multiple selection, the pathName target contains comma-separated path names of all selected files.

ArgumentTypeDefaultDescription
ownerFXWindow Owner
titleString Dialog box title.
pathNameTgtAFXStringTarget Path name target.
readOnlyKwAFXBoolKeyword Read-only keyword.
modeIntAFXSELECTFILE_ANYFile selection mode.
patternsString*File filter patterns.
patternIndexTgtAFXIntTargetNoneIndex used to select a file filter pattern when the dialog box is posted.


Global flags

File selection modes

AFXSELECTFILE_ANY

A single file, existing or not (to save to).

AFXSELECTFILE_EXISTING

An existing file (to load).

AFXSELECTFILE_MULTIPLE

Multiple existing files.

AFXSELECTFILE_MULTIPLE_ALL

Multiple existing files or directories.

AFXSELECTFILE_DIRECTORY

Existing directory.

AFXSELECTFILE_REMOTE_HOST

Enable opening files on a remote host.