mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -20,7 +20,7 @@ ITEM_QUIT_BUTTON=4
|
|||
def main():
|
||||
"""Main routine: open resource file, call dialog handler"""
|
||||
try:
|
||||
Res.OpenResFile("dnslookup-1.rsrc")
|
||||
Res.FSpOpenResFile("dnslookup-1.rsrc", 1)
|
||||
except Res.Error:
|
||||
EasyDialogs.Message("Cannot open dnslookup-1.rsrc")
|
||||
sys.exit(1)
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue