FileDialog
Canonical path: NemAll_Python_Utility.FileDialog
File dialog
AskOpenFavoriteFile
staticmethod
Ask for a favorite file to open
Parameters:
-
defaultPath
(str
) –Initial default path
-
title
(str
) –Title of the dialog. If the title is empty an internal string will be used
-
filters
(str
) –Filters of the files
-
extension
(str
) –Extension of the file
Returns:
-
str
–selected file
AskOpenFile
staticmethod
AskOpenFile(
defaultPath: str,
title: str,
filters: str,
extension: str,
defaultDir: DefaultDirectories,
) -> str
Ask for a file to open
Parameters:
-
defaultPath
(str
) –Initial default path
-
title
(str
) –Title of the dialog. If the title is empty an internal string will be used
-
filters
(str
) –Filters of the files
-
extension
(str
) –Extension of the file
-
defaultDir
(DefaultDirectories
) –Default directories
Returns:
-
str
–selected file
AskSaveFavoriteFile
staticmethod
Ask for a favorite file to save
Parameters:
-
defaultPath
(str
) –Initial default path
-
title
(str
) –Title of the dialog. If the title is empty an internal string will be used
-
filters
(str
) –Filters of the files
-
extension
(str
) –Extension of the file
Returns:
-
str
–selected file
AskSaveFile
staticmethod
AskSaveFile(
defaultPath: str,
title: str,
filters: str,
extension: str,
defaultDir: DefaultDirectories,
) -> str
Ask for a file to save
Parameters:
-
defaultPath
(str
) –Initial default path
-
title
(str
) –Title of the dialog. If the title is empty an internal string will be used
-
filters
(str
) –Filters of the files
-
extension
(str
) –Extension of the file
-
defaultDir
(DefaultDirectories
) –Default directories
Returns:
-
str
–selected file