diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-10-19 20:31:51 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-10-19 20:31:51 (GMT) |
commit | fd9925af567111d45f4d62679d8e0217dbde5075 (patch) | |
tree | ee39a83fbdec01b189b18f745204846461d9ca98 | |
parent | a577aa2003aeadf8eb858dce2a5e4dc38e581d0a (diff) | |
download | cpython-fd9925af567111d45f4d62679d8e0217dbde5075.zip cpython-fd9925af567111d45f4d62679d8e0217dbde5075.tar.gz cpython-fd9925af567111d45f4d62679d8e0217dbde5075.tar.bz2 |
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).
-rw-r--r-- | Mac/Lib/FrameWork.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py index 50ffe5f..2d75965 100644 --- a/Mac/Lib/FrameWork.py +++ b/Mac/Lib/FrameWork.py @@ -149,13 +149,9 @@ class Application: 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): self.quitting = 0 saveparams = apply(MacOS.SchedParams, self.schedparams) - if self.keepconsole != None: - MacOS.KeepConsole(self.keepconsole) try: while not self.quitting: try: @@ -291,6 +287,7 @@ class Application: HiliteMenu(0) def do_menu(self, id, item, window, event): + MacOS.OutputSeen() self.menubar.dispatch(id, item, window, event) |