Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Doc/library/dialog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ listed below:
The below functions when called create a modal, native look-and-feel dialog,
wait for the user's selection, and return it.
The exact return value depends on the function (see below); when the dialog is
cancelled it is an empty string, an empty tuple, an empty list or ``None``.
cancelled it is an empty string, an empty tuple or ``None``.
The precise type of this empty value may vary between platforms and Tk
versions, so test the result for truth rather than comparing it with a
specific value.

.. function:: askopenfile(mode="r", **options)
askopenfiles(mode="r", **options)
Expand All @@ -140,7 +143,7 @@ cancelled it is an empty string, an empty tuple, an empty list or ``None``.
:func:`askopenfile` returns the opened file object, or ``None`` if the
dialog is cancelled.
:func:`askopenfiles` returns a list of the opened file objects, or an empty
list if cancelled.
tuple if cancelled.
The files are opened in mode *mode* (read-only ``'r'`` by default).

.. function:: asksaveasfile(mode="w", **options)
Expand Down
Loading