[Python-checkins] python/dist/src/Mac/Demo/imgbrowse imgbrowse.py,1.6,1.7

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2003年1月26日 13:35:48 -0800


Update of /cvsroot/python/python/dist/src/Mac/Demo/imgbrowse
In directory sc8-pr-cvs1:/tmp/cvs-serv23573
Modified Files:
	imgbrowse.py 
Log Message:
Use new file dialogs.
Index: imgbrowse.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Demo/imgbrowse/imgbrowse.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** imgbrowse.py	30 Nov 2002 00:01:17 -0000	1.6
--- imgbrowse.py	26 Jan 2003 21:35:45 -0000	1.7
***************
*** 1,3 ****
! GetPortBounds()"""imgbrowse - Display pictures using img"""
 
 import FrameWork
--- 1,3 ----
! """imgbrowse - Display pictures using img"""
 
 import FrameWork
***************
*** 12,16 ****
 import img
 import imgformat
- import macfs
 import struct
 import mac_image
--- 12,15 ----
***************
*** 48,56 ****
 		
 	def opendoc(self, *args):
! 		fss, ok = macfs.StandardGetFile() # Any file type
! 		if not ok:
 			return
 		bar = EasyDialogs.ProgressBar('Reading and converting...')
- 		pathname = fss.as_pathname()
 		try:
 			rdr = img.reader(imgformat.macrgb16, pathname)
--- 47,54 ----
 		
 	def opendoc(self, *args):
! 		pathname = EasyDialogs.AskFileForOpen() # Any file type
! 		if not pathname:
 			return
 		bar = EasyDialogs.ProgressBar('Reading and converting...')
 		try:
 			rdr = img.reader(imgformat.macrgb16, pathname)

AltStyle によって変換されたページ (->オリジナル) /