summaryrefslogtreecommitdiffstats
path: root/Mac/Demo/imgbrowse/imgbrowse.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-26 21:40:00 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-26 21:40:00 (GMT)
commitb340acf9fd893140efd65a56134a814a8d9bac73 (patch)
treec991a32a9d7b34262675c1cd97969c352c43f74e /Mac/Demo/imgbrowse/imgbrowse.py
parentd9db3a67138deec981184c173c290025e9760f1d (diff)
downloadcpython-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.py8
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: