diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-12-23 17:22:40 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-12-23 17:22:40 (GMT) |
commit | c75e1d052ba7c7fe3a33731e69fdb30a90a9846e (patch) | |
tree | 0de6f8f985cd98a6d95c0541b4ea551d0726a0f5 | |
parent | 81aa0e288851668ddd8ea6360a25884ea8544fbc (diff) | |
download | cpython-c75e1d052ba7c7fe3a33731e69fdb30a90a9846e.zip cpython-c75e1d052ba7c7fe3a33731e69fdb30a90a9846e.tar.gz cpython-c75e1d052ba7c7fe3a33731e69fdb30a90a9846e.tar.bz2 |
Added Application.cleanup method which asks all windows to close
themselves and returns true if they did.
-rw-r--r-- | Mac/Lib/FrameWork.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py index 5741972..da07d13 100644 --- a/Mac/Lib/FrameWork.py +++ b/Mac/Lib/FrameWork.py @@ -115,6 +115,11 @@ class Application: def _quit(self, *args): self.quitting = 1 + def cleanup(self): + for w in self._windows.values(): + w.do_close() + return self._windows == {} + def appendwindow(self, wid, window): self._windows[wid] = window |