Skip to content

Commit

Permalink
Add documentation about the finality of close().
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Aug 16, 2023
1 parent 6731a4f commit 1d8b12b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/reference/api/window.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ If the operating system provides a way to close the window, Toga will call the
permitted. This can be used to implement protections against closing a window with
unsaved changes.

Once a window has been closed (either by user action, or programmatically with
:meth:`~toga.Window.close()`), it *cannot* be reused. The behavior of any method on a
:class:`~toga.Window` instance after it has been closed is undefined.

Notes
-----

Expand Down

0 comments on commit 1d8b12b

Please sign in to comment.