A class which encapsulates an MFC CFileDialog object. Derived from a PyCDialog object.
-
Retrieves the path name.
-
Retrieves the file name.
-
Retrieves the file extension.
-
Retrieves the file title.
-
Retrieves the list of path names from the file dialog.
-
Retrieves the read-only preference.
-
Sets the title for the dialog.
-
Sets the initial directory for the dialog.
PyCFileDialog.GetFileExt
string = GetFileExt() Retrives the file extension from the file dialog.
- CFileDialog::GetFileExt
PyCFileDialog.GetFileName
string = GetFileName() Retrives the file name from the file dialog.
- CFileDialog::GetFileName
PyCFileDialog.GetFileTitle
string = GetFileTitle() Retrives the file title from the file dialog.
- CFileDialog::GetFileTitle
PyCFileDialog.GetPathName
string = GetPathName() Retrives the path name from the file dialog.
- CFileDialog::GetPathName
PyCFileDialog.GetPathNames
string = GetPathNames() Retrieves the list of path names from the file dialog.
This method is useful when a multi-select dialog is used.
- CFileDialog::GetPathNames
PyCFileDialog.GetReadOnlyPref
int = GetReadOnlyPref() Retrives the value of the "Read Only" checkbox on the file dialog.
- CFileDialog::GetReadOnlyPref
PyCFileDialog.SetOFNInitialDir
SetOFNInitialDir(title) Sets the initial directory for the dialog.
-
title : string
The initial directory for the dialog box. May be None.
PyCFileDialog.SetOFNTitle
SetOFNTitle(title) Sets the Title for the dialog.
-
title : string
The title for the dialog box. May be None.