locan.gui.io.file_dialog#
- locan.gui.io.file_dialog(directory=None, message='Select a file...', filter='Text files (*.txt);; All files (*)')[source]#
Select file names in a ui dialog.
- Parameters:
directory (
Optional
[str
]) – directory path to start dialog in. If None the current directory is used.message (
str
) – Hint what to dofilter (
str
) – filter for file type
- Returns:
list with file names or empty list
- Return type:
str | list[str]