From: Jack Jansen Date: Thu, 6 Feb 2003 23:12:23 +0000 (+0000) Subject: Got rid of macfs and FSSpecs. X-Git-Tag: v2.3c1~1981 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=caaad98ebda9e1a3215ec1fc43c0d01c60cc1164;p=python Got rid of macfs and FSSpecs. --- diff --git a/Lib/plat-mac/Audio_mac.py b/Lib/plat-mac/Audio_mac.py index d8b327bd12..bf99787499 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()