Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc4d925

Browse files
committed
- 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.
1 parent 4d3052a commit dc4d925

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Mac/Tools/IDE/Wapplication.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
from Carbon import Qd
44
from Carbon import Evt
55
import MacOS
6-
import Events
6+
from Carbon import Events
77
import traceback
88
from types import *
99

1010
from Carbon import Menu; MenuToolbox = Menu; del Menu
1111

12+
KILLUNKNOWNWINDOWS=1 # Set to 0 for debugging.
1213

1314
class Application(FrameWork.Application):
1415

@@ -184,7 +185,7 @@ def do_updateEvt(self, event):
184185
window = self._windows[wid]
185186
window.do_rawupdate(wid, event)
186187
else:
187-
if wid:
188+
if KILLUNKNOWNWINDOWS and wid:
188189
wid.HideWindow()
189190
import sys
190191
sys.stderr.write("XXX killed unknown (crashed?) Python window.\n")

0 commit comments

Comments
 (0)