Getting rid of macfs.
This commit is contained in:
parent
8cb1ff5e8b
commit
d9bb1a0b01
|
@ -768,7 +768,7 @@ def AskFolder(
|
|||
|
||||
|
||||
def test():
|
||||
import time, macfs
|
||||
import time
|
||||
|
||||
Message("Testing EasyDialogs.")
|
||||
optionlist = (('v', 'Verbose'), ('verbose', 'Verbose as long option'),
|
||||
|
@ -789,9 +789,9 @@ def test():
|
|||
Message("Hello everybody!!\nThe secret nickname of %s is %s!!!"%(s, s2))
|
||||
else:
|
||||
s = 'Anonymous'
|
||||
rv = AskFileForOpen(message="Gimme a file, %s"%s, wanted=macfs.FSSpec)
|
||||
rv = AskFileForOpen(message="Gimme a file, %s"%s, wanted=Carbon.File.FSSpec)
|
||||
Message("rv: %s"%rv)
|
||||
rv = AskFileForSave(wanted=macfs.FSSpec, savedFileName="%s.txt"%s)
|
||||
rv = AskFileForSave(wanted=Carbon.File.FSRef, savedFileName="%s.txt"%s)
|
||||
Message("rv.as_pathname: %s"%rv.as_pathname())
|
||||
rv = AskFolder()
|
||||
Message("Folder name: %s"%rv)
|
||||
|
|
|
@ -204,11 +204,10 @@ class PixMapWrapper:
|
|||
|
||||
def test():
|
||||
import MacOS
|
||||
import macfs
|
||||
import EasyDialogs
|
||||
import Image
|
||||
fsspec, ok = macfs.PromptGetFile("Image File:")
|
||||
if not ok: return
|
||||
path = fsspec.as_pathname()
|
||||
path = EasyDialogs.AskFileForOpen("Image File:")
|
||||
if not path: return
|
||||
pm = PixMapWrapper()
|
||||
pm.fromImage( Image.open(path) )
|
||||
pm.blit(20,20)
|
||||
|
|
|
@ -6,7 +6,6 @@ import sys
|
|||
import os
|
||||
from Carbon import Res
|
||||
import Carbon.File
|
||||
import macfs
|
||||
import macostools
|
||||
|
||||
error=icglue.error
|
||||
|
|
Loading…
Reference in New Issue