diff options
Diffstat (limited to 'Mac/Demo/PICTbrowse/PICTbrowse2.py')
-rw-r--r-- | Mac/Demo/PICTbrowse/PICTbrowse2.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Mac/Demo/PICTbrowse/PICTbrowse2.py b/Mac/Demo/PICTbrowse/PICTbrowse2.py index 7e146ed..0e11681 100644 --- a/Mac/Demo/PICTbrowse/PICTbrowse2.py +++ b/Mac/Demo/PICTbrowse/PICTbrowse2.py @@ -9,6 +9,7 @@ from Carbon import Controls from Carbon import List import sys import struct +import macresource # # Resource definitions @@ -25,14 +26,7 @@ MAXWIDTH=320 MAXHEIGHT=320 def main(): - try: - dummy = Res.GetResource('DLOG', ID_MAIN) - except Res.Error: - try: - Res.FSpOpenResFile("PICTbrowse.rsrc", 1) - except Res.Error, arg: - EasyDialogs.Message("Cannot open PICTbrowse.rsrc: "+arg[1]) - sys.exit(1) + macresource.need('DLOG', ID_MAIN, "PICTbrowse.rsrc") PICTbrowse() class PICTbrowse(FrameWork.Application): |