diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-26 21:40:00 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-26 21:40:00 (GMT) |
commit | b340acf9fd893140efd65a56134a814a8d9bac73 (patch) | |
tree | c991a32a9d7b34262675c1cd97969c352c43f74e /Mac/Demo/imgbrowse/imgbrowse.py | |
parent | d9db3a67138deec981184c173c290025e9760f1d (diff) | |
download | cpython-b340acf9fd893140efd65a56134a814a8d9bac73.zip cpython-b340acf9fd893140efd65a56134a814a8d9bac73.tar.gz cpython-b340acf9fd893140efd65a56134a814a8d9bac73.tar.bz2 |
Use new file dialogs.
Diffstat (limited to 'Mac/Demo/imgbrowse/imgbrowse.py')
-rw-r--r-- | Mac/Demo/imgbrowse/imgbrowse.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Mac/Demo/imgbrowse/imgbrowse.py b/Mac/Demo/imgbrowse/imgbrowse.py index b54f82b..d8164ea 100644 --- a/Mac/Demo/imgbrowse/imgbrowse.py +++ b/Mac/Demo/imgbrowse/imgbrowse.py @@ -1,4 +1,4 @@ -GetPortBounds()"""imgbrowse - Display pictures using img""" +"""imgbrowse - Display pictures using img""" import FrameWork import EasyDialogs @@ -11,7 +11,6 @@ import sys import struct import img import imgformat -import macfs import struct import mac_image @@ -47,11 +46,10 @@ class imgbrowse(FrameWork.Application): self._quit() def opendoc(self, *args): - fss, ok = macfs.StandardGetFile() # Any file type - if not ok: + pathname = EasyDialogs.AskFileForOpen() # Any file type + if not pathname: return bar = EasyDialogs.ProgressBar('Reading and converting...') - pathname = fss.as_pathname() try: rdr = img.reader(imgformat.macrgb16, pathname) except img.error, arg: |