]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added _quit() method similar to FrameWork in stead of setting
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 17 Sep 1996 12:36:35 +0000 (12:36 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 17 Sep 1996 12:36:35 +0000 (12:36 +0000)
self.quitting by hand.

Mac/Lib/toolbox/MiniAEFrame.py

index 02b9723b3ce8dd8c2f1b99d850204f5bf0815d3b..d492d27da8b41aa01c968dbdcdbc263f81c6eac0 100644 (file)
@@ -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