Skip to content

Commit

Permalink
Added note on state setter
Browse files Browse the repository at this point in the history
  • Loading branch information
proneon267 committed Oct 27, 2024
1 parent 7609fc1 commit f44d48c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/src/toga/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,12 @@ def visible(self, visible: bool) -> None:

@property
def state(self) -> WindowState:
"""The current state of the window."""
# There are 2 types of window states that we can get:
"""The current state of the window.
When the window is in transition, then this will return the state it
is transitioning towards, instead of the actual instantaneous state.
"""
# There are 2 types of window states that we can get from the backend:
# * The instantaneous state -- Used internally on implementation side
# * The in-progress state -- Used for same state checking on the core
# and for the public API.
Expand Down

0 comments on commit f44d48c

Please sign in to comment.