mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Import the MacOS toolbox modules from the Carbon package.
This commit is contained in:
parent
6dba6bc0a2
commit
5a6fdcd371
100 changed files with 336 additions and 331 deletions
|
@ -10,7 +10,7 @@ import sys
|
|||
import getaete
|
||||
import baetools
|
||||
import baetypes
|
||||
import AE
|
||||
from Carbon import AE
|
||||
import AppleEvents
|
||||
import macfs
|
||||
from types import *
|
||||
|
|
|
@ -17,8 +17,8 @@ import string
|
|||
import types
|
||||
from string import strip
|
||||
from types import *
|
||||
import AE
|
||||
from AppleEvents import *
|
||||
from Carbon import AE
|
||||
from Carbon.AppleEvents import *
|
||||
import MacOS
|
||||
import macfs
|
||||
import StringIO
|
||||
|
@ -195,7 +195,7 @@ def unpack(desc):
|
|||
v = 0x100000000L + v
|
||||
return v
|
||||
if t == typeObjectSpecifier:
|
||||
import Res
|
||||
from Carbon import Res
|
||||
# print desc, type(desc)
|
||||
# print desc.__members__
|
||||
# print desc.data, desc.type
|
||||
|
|
|
@ -21,8 +21,8 @@ files: the pack stuff from aepack, the objects from aetypes.
|
|||
"""
|
||||
|
||||
from types import *
|
||||
import AE
|
||||
import AppleEvents
|
||||
from Carbon import AE
|
||||
from Carbon import AppleEvents
|
||||
import MacOS
|
||||
import sys
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""aetypes - Python objects representing various AE types."""
|
||||
|
||||
from AppleEvents import *
|
||||
from Carbon.AppleEvents import *
|
||||
import struct
|
||||
from types import *
|
||||
import string
|
||||
|
|
|
@ -18,7 +18,7 @@ import types
|
|||
from MACFS import *
|
||||
import macfs
|
||||
import string
|
||||
from Res import *
|
||||
from Carbon.Res import *
|
||||
import struct
|
||||
|
||||
# for testing only
|
||||
|
|
|
@ -14,7 +14,7 @@ import types
|
|||
import macfs
|
||||
import string
|
||||
import macpath
|
||||
from Res import *
|
||||
from Carbon.Res import *
|
||||
|
||||
# for testing only
|
||||
app = 'MACS'#CSOm'#'nwSP'#'ezVu'#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue