]> granicus.if.org Git - python/commitdiff
Got rid of macfs and FSSpecs.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 6 Feb 2003 23:12:23 +0000 (23:12 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 6 Feb 2003 23:12:23 +0000 (23:12 +0000)
Lib/plat-mac/Audio_mac.py

index d8b327bd12cb828bc56467bedc25e1de068ebe52..bf9978749996d98d90bbdd28e2aad9d1ae916995 100644 (file)
@@ -100,10 +100,9 @@ class Play_Audio_mac:
 
 def test():
        import aifc
-       import macfs
-       fss, ok = macfs.PromptGetFile("Select an AIFF soundfile", "AIFF")
-       if not ok: return
-       fn = fss.as_pathname()
+       import EasyDialogs
+       fn = EasyDialogs.AskFileForOpen(message="Select an AIFF soundfile", typeList=("AIFF",))
+       if not fn: return
        af = aifc.open(fn, 'r')
        print af.getparams()
        p = Play_Audio_mac()