mirror of
https://github.com/python/cpython
synced 2026-09-29 08:05:30 +03:00
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.
This commit is contained in:
parent
fd9925af56
commit
749023695e
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue