Skip to content

Latest commit

 

History

History
130 lines (64 loc) · 2.69 KB

PyCFileDialog.md

File metadata and controls

130 lines (64 loc) · 2.69 KB

PyCFileDialog

PyCFileDialog Object

A class which encapsulates an MFC CFileDialog object. Derived from a PyCDialog object.

Methods

PyCFileDialog.GetFileExt

string = GetFileExt() Retrives the file extension from the file dialog.

MFC References

  • CFileDialog::GetFileExt

PyCFileDialog.GetFileName

string = GetFileName() Retrives the file name from the file dialog.

MFC References

  • CFileDialog::GetFileName

PyCFileDialog.GetFileTitle

string = GetFileTitle() Retrives the file title from the file dialog.

MFC References

  • CFileDialog::GetFileTitle

PyCFileDialog.GetPathName

string = GetPathName() Retrives the path name from the file dialog.

MFC References

  • CFileDialog::GetPathName

PyCFileDialog.GetPathNames

string = GetPathNames() Retrieves the list of path names from the file dialog.

Comments

This method is useful when a multi-select dialog is used.

MFC References

  • CFileDialog::GetPathNames

PyCFileDialog.GetReadOnlyPref

int = GetReadOnlyPref() Retrives the value of the "Read Only" checkbox on the file dialog.

MFC References

  • CFileDialog::GetReadOnlyPref

PyCFileDialog.SetOFNInitialDir

SetOFNInitialDir(title) Sets the initial directory for the dialog.

Parameters

  • title : string

    The initial directory for the dialog box. May be None.

PyCFileDialog.SetOFNTitle

SetOFNTitle(title) Sets the Title for the dialog.

Parameters

  • title : string

    The title for the dialog box. May be None.