summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/lib-toolbox
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-10-19 20:32:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-10-19 20:32:35 (GMT)
commit749023695e6928beb4a7dbf4cf2c799f77995011 (patch)
tree3dc39bc68ddd7cd183ccec5ec1fb014f1d6e9672 /Mac/Lib/lib-toolbox
parentfd9925af567111d45f4d62679d8e0217dbde5075 (diff)
downloadcpython-749023695e6928beb4a7dbf4cf2c799f77995011.zip
cpython-749023695e6928beb4a7dbf4cf2c799f77995011.tar.gz
cpython-749023695e6928beb4a7dbf4cf2c799f77995011.tar.bz2
Use MacOS.OutputSeen() on menuselections: it treats a menu selection in the same way as input to stdin (i.e. as an ack of the output that went before). This makes the CGI tools work nicely for Quit.
Diffstat (limited to 'Mac/Lib/lib-toolbox')
-rw-r--r--Mac/Lib/lib-toolbox/MiniAEFrame.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Lib/lib-toolbox/MiniAEFrame.py b/Mac/Lib/lib-toolbox/MiniAEFrame.py
index 31e68b6..87726e9 100644
--- a/Mac/Lib/lib-toolbox/MiniAEFrame.py
+++ b/Mac/Lib/lib-toolbox/MiniAEFrame.py
@@ -81,6 +81,7 @@ class MiniApplication:
if c == '.':
raise KeyboardInterrupt, "Command-period"
if c == 'q':
+ MacOS.OutputSeen()
self.quitting = 1
return
elif what == mouseDown:
@@ -96,6 +97,7 @@ class MiniApplication:
name = self.applemenu.GetMenuItemText(item)
Menu.OpenDeskAcc(name)
elif id == self.quitid and item == 1:
+ MacOS.OutputSeen()
self.quitting = 1
Menu.HiliteMenu(0)
return