Skip to content

Commit

Permalink
* fixed pre-test check issue
Browse files Browse the repository at this point in the history
  • Loading branch information
t-arn committed Dec 9, 2020
1 parent 7e177f3 commit 868d06f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/toga/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def open_file_dialog(self, title, initial_directory=None, file_types=None, multi
""" This opens a native dialog where the user can select the file to open.
It is possible to set the initial folder and only show files with specified file extensions.
If no path is returned (eg. dialog is canceled), a ValueError is raised.
Args:
title (str): The title of the dialog window (ignored on Android)
initial_directory(str): Initial folder displayed in the dialog. On Android, this needs to be a content URI,
Expand All @@ -280,14 +281,15 @@ def open_file_dialog(self, title, initial_directory=None, file_types=None, multi
Returns:
The absolute path(str) to the selected file or a list(str) if multiselect. On Android, you will get back
content URIs.
content URIs.
"""
return self._impl.open_file_dialog(title, initial_directory, file_types, multiselect)

def select_folder_dialog(self, title, initial_directory=None, multiselect=False):
""" This opens a native dialog where the user can select a folder.
It is possible to set the initial folder.
If no path is returned (eg. dialog is canceled), a ValueError is raised.
Args:
title (str): The title of the dialog window (ignored on Android)
initial_directory(str): Initial folder displayed in the dialog. On Android, this needs to be a content URI,
Expand All @@ -296,6 +298,6 @@ def select_folder_dialog(self, title, initial_directory=None, multiselect=False)
Returns:
The absolute path(str) to the selected file or None. On Android, you will get back
content tree URIs.
content tree URIs.
"""
return self._impl.select_folder_dialog(title, initial_directory, multiselect)

0 comments on commit 868d06f

Please sign in to comment.