Signature:

dabo.ui.getFileAndType(*args, **kwargs)

Description:

Displays the file selection dialog for the platform.

Returns:

Returns a 2-tuple, with the first element being the path to the selected file, and the second being the type of file chosen by the user. If no selection was made, returns (None, None).

Comments:

See dabo.ui.getFile for a more complete description of this function. The only difference between getFileAndType() and getFile() is that this function returns the file type selected by the user in addition to the path. So if this function was called as dabo.ui.getFileAndType("py", "txt"), and the user chose the Text file option in the file dialog, the function will return (<file path>, "txt").