diff Mac/Lib/FrameWork.py @ 4819:9bda38c67f4e legacy-trunk

Added Application.cleanup method which asks all windows to close themselves and returns true if they did.
author Jack Jansen <jack.jansen@cwi.nl>
date Mon, 23 Dec 1996 17:22:40 +0000
parents 366d72f12794
children 634728d8bc98
line wrap: on
line diff
--- a/Mac/Lib/FrameWork.py	Mon Dec 23 17:21:20 1996 +0000
+++ b/Mac/Lib/FrameWork.py	Mon Dec 23 17:22:40 1996 +0000
@@ -115,6 +115,11 @@
 	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