mirror of
https://github.com/python/cpython.git
synced 2025-09-10 18:58:35 +00:00
Got rid of macfs and FSSpecs.
This commit is contained in:
parent
c929636bc2
commit
caaad98ebd
1 changed files with 3 additions and 4 deletions
|
@ -100,10 +100,9 @@ class Play_Audio_mac:
|
||||||
|
|
||||||
def test():
|
def test():
|
||||||
import aifc
|
import aifc
|
||||||
import macfs
|
import EasyDialogs
|
||||||
fss, ok = macfs.PromptGetFile("Select an AIFF soundfile", "AIFF")
|
fn = EasyDialogs.AskFileForOpen(message="Select an AIFF soundfile", typeList=("AIFF",))
|
||||||
if not ok: return
|
if not fn: return
|
||||||
fn = fss.as_pathname()
|
|
||||||
af = aifc.open(fn, 'r')
|
af = aifc.open(fn, 'r')
|
||||||
print af.getparams()
|
print af.getparams()
|
||||||
p = Play_Audio_mac()
|
p = Play_Audio_mac()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue