summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-09-17 12:36:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-09-17 12:36:35 (GMT)
commit4cb945454a91188823fd289a13e417bdd20050e2 (patch)
treee34d3b37ba89f67f6fca1f87be10b05c6b6b8e1c /Mac/Lib
parent647535d3900218093d2e7e21c92cadd52807f313 (diff)
downloadcpython-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.py5
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