Commit 47c99912 authored by Jack Jansen's avatar Jack Jansen

Added Application.cleanup method which asks all windows to close

themselves and returns true if they did.
parent 6607d878
......@@ -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