Added an optional debug handler that traps and prints all unknown appleevents.

This commit is contained in:
Jack Jansen 2000-06-20 22:01:04 +00:00
parent d13c385462
commit 8eff33b51f
13 changed files with 24 additions and 13 deletions

View file

@ -25,7 +25,7 @@ def main():
dummy = Res.GetResource('DLOG', ID_MAIN)
except Res.Error:
try:
Res.OpenResFile("PICTbrowse.rsrc")
Res.FSpOpenResFile("PICTbrowse.rsrc", 1)
except Res.Error, arg:
EasyDialogs.Message("Cannot open PICTbrowse.rsrc: "+arg[1])
sys.exit(1)