From: Jack Jansen Date: Tue, 17 Sep 1996 12:36:35 +0000 (+0000) Subject: Added _quit() method similar to FrameWork in stead of setting X-Git-Tag: v1.4~192 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4cb945454a91188823fd289a13e417bdd20050e2;p=thirdparty%2FPython%2Fcpython.git Added _quit() method similar to FrameWork in stead of setting self.quitting by hand. --- diff --git a/Mac/Lib/toolbox/MiniAEFrame.py b/Mac/Lib/toolbox/MiniAEFrame.py index 02b9723b3ce8..d492d27da8b4 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