diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-09-17 12:36:35 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-09-17 12:36:35 (GMT) |
commit | 4cb945454a91188823fd289a13e417bdd20050e2 (patch) | |
tree | e34d3b37ba89f67f6fca1f87be10b05c6b6b8e1c /Mac/Lib | |
parent | 647535d3900218093d2e7e21c92cadd52807f313 (diff) | |
download | cpython-4cb945454a91188823fd289a13e417bdd20050e2.zip cpython-4cb945454a91188823fd289a13e417bdd20050e2.tar.gz cpython-4cb945454a91188823fd289a13e417bdd20050e2.tar.bz2 |
Added _quit() method similar to FrameWork in stead of setting
self.quitting by hand.
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/toolbox/MiniAEFrame.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/Lib/toolbox/MiniAEFrame.py b/Mac/Lib/toolbox/MiniAEFrame.py index 02b9723..d492d27 100644 --- a/Mac/Lib/toolbox/MiniAEFrame.py +++ b/Mac/Lib/toolbox/MiniAEFrame.py @@ -47,6 +47,9 @@ class MiniApplication: def mainloop(self, mask = everyEvent, timeout = 60*60): while not self.quitting: self.dooneevent(mask, timeout) + + def _quit(self): + self.quitting = 1 def dooneevent(self, mask = everyEvent, timeout = 60*60): got, event = Evt.WaitNextEvent(mask, timeout) @@ -154,7 +157,7 @@ class _Test(AEServer, MiniApplication): self.mainloop() def quit(self, **args): - self.quitting = 1 + self._quit() def open_app(self, **args): pass |