[Python-checkins] python/dist/src/Lib/plat-mac Audio_mac.py,1.1,1.2
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Thu, 06 Feb 2003 15:12:27 -0800
Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1:/tmp/cvs-serv28870
Modified Files:
Audio_mac.py
Log Message:
Got rid of macfs and FSSpecs.
Index: Audio_mac.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/Audio_mac.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Audio_mac.py 30 Dec 2002 22:04:20 -0000 1.1
--- Audio_mac.py 6 Feb 2003 23:12:23 -0000 1.2
***************
*** 101,108 ****
def test():
import aifc
! import macfs
! fss, ok = macfs.PromptGetFile("Select an AIFF soundfile", "AIFF")
! if not ok: return
! fn = fss.as_pathname()
af = aifc.open(fn, 'r')
print af.getparams()
--- 101,107 ----
def test():
import aifc
! import EasyDialogs
! fn = EasyDialogs.AskFileForOpen(message="Select an AIFF soundfile", typeList=("AIFF",))
! if not fn: return
af = aifc.open(fn, 'r')
print af.getparams()