diff options
author | Guido van Rossum <guido@python.org> | 1995-03-19 22:49:50 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-03-19 22:49:50 (GMT) |
commit | e56db434a9eb91bd73d99f2f8a86f3a1af8c7ac8 (patch) | |
tree | fe3d226573f2a2e707397fc85b7e91b44b3c8c2b /Mac/Modules/qd/qdsupport.py | |
parent | 86c3af7d1219bc4d7e69627ce98783031472ce0a (diff) | |
download | cpython-e56db434a9eb91bd73d99f2f8a86f3a1af8c7ac8.zip cpython-e56db434a9eb91bd73d99f2f8a86f3a1af8c7ac8.tar.gz cpython-e56db434a9eb91bd73d99f2f8a86f3a1af8c7ac8.tar.bz2 |
first cut at the whole quickdraw.h header file ...
Diffstat (limited to 'Mac/Modules/qd/qdsupport.py')
-rw-r--r-- | Mac/Modules/qd/qdsupport.py | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/Mac/Modules/qd/qdsupport.py b/Mac/Modules/qd/qdsupport.py index e98b27a..0aa439c 100644 --- a/Mac/Modules/qd/qdsupport.py +++ b/Mac/Modules/qd/qdsupport.py @@ -5,6 +5,9 @@ import string +import addpack +addpack.addpack('D:python:Tools:bgen:bgen') + # Declarations that change for each manager MACHEADERFILE = 'QuickDraw.h' # The Apple header file MODNAME = 'Qd' # The name of the module @@ -22,6 +25,22 @@ from macsupport import * # Create the type objects +GrafPtr = WindowPtr + +class TextThingieClass(FixedInputBufferType): + def getargsCheck(self, name): + pass + +TextThingie = TextThingieClass(None) + +# These are temporary! +Fixed = long +RgnHandle = OpaqueByValueType("RgnHandle", "ResObj") +PicHandle = OpaqueByValueType("PicHandle", "ResObj") +PolyHandle = OpaqueByValueType("PolyHandle", "ResObj") +PixMapHandle = OpaqueByValueType("PixMapHandle", "ResObj") +PixPatHandle = OpaqueByValueType("PixPatHandle", "ResObj") + includestuff = includestuff + """ #include <%s>""" % MACHEADERFILE + """ #include <Desk.h> @@ -58,8 +77,8 @@ Method = OSErrMethodGenerator # Create and populate the lists functions = [] methods = [] -#execfile(INPUTFILE) -execfile(EXTRAFILE) +execfile(INPUTFILE) +#execfile(EXTRAFILE) # add the populated lists to the generator groups # (in a different wordl the scan program would generate this) |