From: Jack Jansen Date: Thu, 19 Oct 2000 20:32:35 +0000 (+0000) Subject: Use MacOS.OutputSeen() on menuselections: it treats a menu selection in the same... X-Git-Tag: v2.1a1~874 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=749023695e6928beb4a7dbf4cf2c799f77995011;p=python 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. --- diff --git a/Mac/Lib/lib-toolbox/MiniAEFrame.py b/Mac/Lib/lib-toolbox/MiniAEFrame.py index 31e68b638a..87726e9543 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