]> granicus.if.org Git - python/commitdiff
Use MacOS.OutputSeen() on menuselections. Removed KeepConsole code again. This soluti...
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 19 Oct 2000 20:31:51 +0000 (20:31 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 19 Oct 2000 20:31:51 +0000 (20:31 +0000)
Mac/Lib/FrameWork.py

index 50ffe5f65f324fffd4bcb5bebbd8382c27b8c7cc..2d75965db01328a779004882b11542e37c5a2c9a 100644 (file)
@@ -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)