summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-27 10:55:41 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-08-27 10:55:41 (GMT)
commitdc4d925be9f95bdf77e6d9ddd94f3042f061f550 (patch)
tree60a70577d0ff4ed24aaf3734ab82864ec78483ec /Mac/Tools
parent4d3052acb0ccba3e5d3028f0c0f20812cbfd2ac2 (diff)
downloadcpython-dc4d925be9f95bdf77e6d9ddd94f3042f061f550.zip
cpython-dc4d925be9f95bdf77e6d9ddd94f3042f061f550.tar.gz
cpython-dc4d925be9f95bdf77e6d9ddd94f3042f061f550.tar.bz2
- A forgotten "from Carbon".
- Made the "killed unknown window" code dependent on a global var, so you can easily turn the behaviour off for IDE debugging.
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/Wapplication.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/Wapplication.py b/Mac/Tools/IDE/Wapplication.py
index ede6a76..136d4ff 100644
--- a/Mac/Tools/IDE/Wapplication.py
+++ b/Mac/Tools/IDE/Wapplication.py
@@ -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")