Kaydet (Commit) dc4d925b authored tarafından Jack Jansen's avatar Jack Jansen

- 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.
üst 4d3052ac
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment