]> granicus.if.org Git - python/commitdiff
- A forgotten "from Carbon".
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 27 Aug 2001 10:55:41 +0000 (10:55 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 27 Aug 2001 10:55:41 +0000 (10:55 +0000)
- Made the "killed unknown window" code dependent on a global var,
  so you can easily turn the behaviour off for IDE debugging.

Mac/Tools/IDE/Wapplication.py

index ede6a7654ad420668a0c2e91b2780f22abb0a6a8..136d4ffe9f44affbf3f03c16e3b1e76dda4e6093 100644 (file)
@@ -3,12 +3,13 @@ from Carbon import Win
 from Carbon import Qd
 from Carbon import Evt
 import MacOS
-import Events
+from Carbon import Events
 import traceback
 from types import *
 
 from Carbon import Menu; MenuToolbox = Menu; del Menu
 
+KILLUNKNOWNWINDOWS=1   # Set to 0 for debugging.
 
 class Application(FrameWork.Application):
        
@@ -184,7 +185,7 @@ class Application(FrameWork.Application):
                        window = self._windows[wid]
                        window.do_rawupdate(wid, event)
                else:
-                       if wid:
+                       if KILLUNKNOWNWINDOWS and wid:
                                wid.HideWindow()
                                import sys
                                sys.stderr.write("XXX killed unknown (crashed?) Python window.\n")