mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Use MacOS.OutputSeen() on menuselections. Removed KeepConsole code again. This solution is better: 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 commit is contained in:
parent
a577aa2003
commit
fd9925af56
1 changed files with 1 additions and 4 deletions
|
|
@ -149,13 +149,9 @@ def do_about(self, id, item, window, event):
|
||||||
|
|
||||||
schedparams = (0, 0) # By default disable Python's event handling
|
schedparams = (0, 0) # By default disable Python's event handling
|
||||||
|
|
||||||
keepconsole = 0 # By default don't keep console window open
|
|
||||||
|
|
||||||
def mainloop(self, mask = everyEvent, wait = 0):
|
def mainloop(self, mask = everyEvent, wait = 0):
|
||||||
self.quitting = 0
|
self.quitting = 0
|
||||||
saveparams = apply(MacOS.SchedParams, self.schedparams)
|
saveparams = apply(MacOS.SchedParams, self.schedparams)
|
||||||
if self.keepconsole != None:
|
|
||||||
MacOS.KeepConsole(self.keepconsole)
|
|
||||||
try:
|
try:
|
||||||
while not self.quitting:
|
while not self.quitting:
|
||||||
try:
|
try:
|
||||||
|
|
@ -291,6 +287,7 @@ def do_rawmenu(self, id, item, window, event):
|
||||||
HiliteMenu(0)
|
HiliteMenu(0)
|
||||||
|
|
||||||
def do_menu(self, id, item, window, event):
|
def do_menu(self, id, item, window, event):
|
||||||
|
MacOS.OutputSeen()
|
||||||
self.menubar.dispatch(id, item, window, event)
|
self.menubar.dispatch(id, item, window, event)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue