mirror of
https://github.com/python/cpython.git
synced 2025-08-14 22:01:08 +00:00
Added an optional debug handler that traps and prints all unknown appleevents.
This commit is contained in:
parent
d13c385462
commit
8eff33b51f
13 changed files with 24 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue