回答編集履歴
1
test
CHANGED
@@ -34,7 +34,9 @@
|
|
34
34
|
```python
|
35
35
|
def _close_handler(self):
|
36
36
|
"""Handle a window close event."""
|
37
|
+
# 追加
|
38
|
+
if self.modal:
|
37
|
-
self.window.grab_release()
|
39
|
+
self.window.grab_release()
|
38
40
|
self.flag_alive = False
|
39
41
|
if self.timeout_id is not None:
|
40
42
|
self.window.after_cancel(self.timeout_id)
|