Kaydet (Commit) c75e1d05 authored tarafından Jack Jansen's avatar Jack Jansen

Added Application.cleanup method which asks all windows to close

themselves and returns true if they did.
üst 81aa0e28
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment