summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/Audio_mac.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-06 23:12:23 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-06 23:12:23 (GMT)
commitcaaad98ebda9e1a3215ec1fc43c0d01c60cc1164 (patch)
tree47c0853424670a27aff9f76776f93d67be13deab /Lib/plat-mac/Audio_mac.py
parentc929636bc276d3908e2e21ec2b9d4b7f8fafce00 (diff)
downloadcpython-caaad98ebda9e1a3215ec1fc43c0d01c60cc1164.zip
cpython-caaad98ebda9e1a3215ec1fc43c0d01c60cc1164.tar.gz
cpython-caaad98ebda9e1a3215ec1fc43c0d01c60cc1164.tar.bz2
Got rid of macfs and FSSpecs.
Diffstat (limited to 'Lib/plat-mac/Audio_mac.py')
-rw-r--r--Lib/plat-mac/Audio_mac.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/plat-mac/Audio_mac.py b/Lib/plat-mac/Audio_mac.py
index d8b327b..bf99787 100644
--- a/Lib/plat-mac/Audio_mac.py
+++ b/Lib/plat-mac/Audio_mac.py
@@ -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()