diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-06-05 22:34:12 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-06-05 22:34:12 (GMT) |
commit | c7cfb9555974e2e3789a629f1b7509eaa73ee2c6 (patch) | |
tree | 38d683d1f4a7affc89ac209a61f23d0c26715446 /Mac/Lib | |
parent | f301dcac737bdd38fa919a0cfb9f52b4a1b85ed1 (diff) | |
download | cpython-c7cfb9555974e2e3789a629f1b7509eaa73ee2c6.zip cpython-c7cfb9555974e2e3789a629f1b7509eaa73ee2c6.tar.gz cpython-c7cfb9555974e2e3789a629f1b7509eaa73ee2c6.tar.bz2 |
Rather massive changes:
- Make the stuff run on Jack's machine (and hopefully all machines) in
stead of Guido's only (addpack stuff)
- Use the Universal Headers in stead of the Think headers
- Fixed the test programs to use the new routine names
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/test/echo.py | 2 | ||||
-rw-r--r-- | Mac/Lib/toolbox/AppleEvents.py | 48 | ||||
-rw-r--r-- | Mac/Lib/toolbox/aetools.py | 2 |
3 files changed, 26 insertions, 26 deletions
diff --git a/Mac/Lib/test/echo.py b/Mac/Lib/test/echo.py index 20b1d77..d48434f 100644 --- a/Mac/Lib/test/echo.py +++ b/Mac/Lib/test/echo.py @@ -7,7 +7,7 @@ can have (without having to rely on Apple's implementation). """ import addpack -addpack.addpack('Demo') +addpack.addpack('Tools') addpack.addpack('bgen') addpack.addpack('ae') addpack.addpack('evt') diff --git a/Mac/Lib/toolbox/AppleEvents.py b/Mac/Lib/toolbox/AppleEvents.py index 0e1e069..5114c72 100644 --- a/Mac/Lib/toolbox/AppleEvents.py +++ b/Mac/Lib/toolbox/AppleEvents.py @@ -1,4 +1,4 @@ -# Generated from 'D:Development:THINK C:Mac #includes:Apple #includes:AppleEvents.h' +# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:AppleEvents.h' typeBoolean = 'bool' typeChar = 'TEXT' @@ -28,6 +28,8 @@ typeKeyword = 'keyw' typeSectionH = 'sect' typeWildCard = '****' typeApplSignature = 'sign' +typeQDRectangle = 'qdrt' +typeFixed = 'fixd' typeSessionID = 'ssid' typeTargetID = 'targ' typeProcessSerialNumber = 'psn ' @@ -79,26 +81,24 @@ kAnyTransactionID = 0 kAEDefaultTimeout = -1 kNoTimeOut = -2 kAENoDispatch = 0 -kAEUseStandardDispatch = -1 -errAECoercionFail = -1700 -errAEDescNotFound = -1701 -errAECorruptData = -1702 -errAEWrongDataType = -1703 -errAENotAEDesc = -1704 -errAEBadListItem = -1705 -errAENewerVersion = -1706 -errAENotAppleEvent = -1707 -errAEEventNotHandled = -1708 -errAEReplyNotValid = -1709 -errAEUnknownSendMode = -1710 -errAEWaitCanceled = -1711 -errAETimeout = -1712 -errAENoUserInteraction = -1713 -errAENotASpecialFunction = -1714 -errAEParamMissed = -1715 -errAEUnknownAddressType = -1716 -errAEHandlerNotFound = -1717 -errAEReplyNotArrived = -1718 -errAEIllegalIndex = -1719 -errAEUnknownObjectType = -1731 -errAERecordingIsAlreadyOn = -1732 +kAEUseStandardDispatch = 0xFFFFFFFF +kAEDoNotIgnoreHandler = 0x00000000 +kAEIgnoreAppPhacHandler = 0x00000001 +kAEIgnoreAppEventHandler = 0x00000002 +kAEIgnoreSysPhacHandler = 0x00000004 +kAEIgnoreSysEventHandler = 0x00000008 +kAEIngoreBuiltInEventHandler = 0x00000010 +kAEDontDisposeOnResume = 0x80000000 +kAEInteractWithSelf = 0 +kAEInteractWithLocal = 1 +kAEInteractWithAll = 2 +kAEUnknownSource = 0 +kAEDirectCall = 1 +kAESameProcess = 2 +kAELocalProcess = 3 +kAERemoteProcess = 4 +kAEDataArray = 0 +kAEPackedArray = 1 +kAEHandleArray = 2 +kAEDescArray = 3 +kAEKeyDescArray = 4 diff --git a/Mac/Lib/toolbox/aetools.py b/Mac/Lib/toolbox/aetools.py index e91449a..bb0d20f 100644 --- a/Mac/Lib/toolbox/aetools.py +++ b/Mac/Lib/toolbox/aetools.py @@ -68,7 +68,7 @@ def pack(x, forcetype = None): if t == DictionaryType: record = AE.AECreateList('', 1) for key, value in x.items(): - record.AEPutKeyDesc(key, pack(value)) + record.AEPutParamDesc(key, pack(value)) return record if t == InstanceType and hasattr(x, '__aepack__'): return x.__aepack__() |