Skip to content

Commit

Permalink
- A forgotten "from Carbon".
Browse files Browse the repository at this point in the history
- Made the "killed unknown window" code dependent on a global var,
  so you can easily turn the behaviour off for IDE debugging.
  • Loading branch information
jackjansen committed Aug 27, 2001
1 parent 4d3052a commit dc4d925
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Mac/Tools/IDE/Wapplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
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):

Expand Down Expand Up @@ -184,7 +185,7 @@ def do_updateEvt(self, event):
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")
Expand Down

0 comments on commit dc4d925

Please sign in to comment.