Skip to content

Commit

Permalink
uljvzh
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbende committed May 6, 2023
1 parent c73ec30 commit 01c0875
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tukaan/toplevels/wm.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ def _get_state(self) -> str:
try:
state = Tcl.call(str, "wm", "state", self._wm_path)
except TukaanTclError as e:
# FIXME: what if the interpreter is destroyed?
if not Tcl.call(bool, "winfo", "exists", self._wm_path):
return "closed"
raise e from None
return "closed"

if Tcl.call(bool, "wm", "attributes", self._wm_path, "-fullscreen"):
return "fullscreen"
Expand Down

0 comments on commit 01c0875

Please sign in to comment.