mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Getting rid of macfs.
This commit is contained in:
parent
8cb1ff5e8b
commit
d9bb1a0b01
3 changed files with 6 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue