SelectFile¶
- globalmapper.SelectFile(str aFilterStr, str aInitialDir, HWND aParentWnd) GM_Error_t32, str [source]¶
Displays a file dialog that allows the user to select a file to load. After the user selects a valid file, the function will return a Python list of two items: the error code of the operation (generally will be 0) and the name of the selected file.
- Parameters:
aFilterStr (str) – filter str for open dialog (None for default)
aInitialDir (str) – initial directory to start in (None for current)
aParentWnd (HWND) – handle to parent window for file selection dialog
- Returns:
Error Code
- Return type:
GM_Error_t32
- Returns:
The selected file’s path/name
- Return type:
str