diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-09 22:10:16 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-09 22:10:16 (GMT) |
commit | a9e3db354def12649afc4923fef431744ffbbab6 (patch) | |
tree | 2a7981e679d16184480a864fe9f6a0544cfd239b /Mac/Modules/ctl/ctlsupport.py | |
parent | 0d202b740399241d332c21960611943a0789190a (diff) | |
download | cpython-a9e3db354def12649afc4923fef431744ffbbab6.zip cpython-a9e3db354def12649afc4923fef431744ffbbab6.tar.gz cpython-a9e3db354def12649afc4923fef431744ffbbab6.tar.bz2 |
Carbon defines {Get,Set}ControlDataHandle, so unfortunately our variants on {Get,Set}ControlData have gotten an underscore: GetControlData_Handle, etc. This is an incompatible change:-(
Diffstat (limited to 'Mac/Modules/ctl/ctlsupport.py')
-rw-r--r-- | Mac/Modules/ctl/ctlsupport.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Mac/Modules/ctl/ctlsupport.py b/Mac/Modules/ctl/ctlsupport.py index a49007c..8328697 100644 --- a/Mac/Modules/ctl/ctlsupport.py +++ b/Mac/Modules/ctl/ctlsupport.py @@ -501,8 +501,8 @@ f = ManualGenerator("GetControlData", getcontroldata_body); f.docstring = lambda: "(part, type) -> String" object.add(f) -# Manual Generator for SetControlDataHandle -setcontroldatahandle_body = """ +# Manual Generator for SetControlData_Handle +setcontroldata_handle_body = """ OSErr _err; ControlPartCode inPart; ResType inTagName; @@ -526,12 +526,12 @@ _res = Py_None; return _res; """ -f = ManualGenerator("SetControlDataHandle", setcontroldatahandle_body); +f = ManualGenerator("SetControlData_Handle", setcontroldata_handle_body); f.docstring = lambda: "(ResObj) -> None" object.add(f) -# Manual Generator for GetControlDataHandle -getcontroldatahandle_body = """ +# Manual Generator for GetControlData_Handle +getcontroldata_handle_body = """ OSErr _err; ControlPartCode inPart; ResType inTagName; @@ -568,12 +568,12 @@ if (_err != noErr) { return Py_BuildValue("O&", OptResObj_New, hdl); """ -f = ManualGenerator("GetControlDataHandle", getcontroldatahandle_body); +f = ManualGenerator("GetControlData_Handle", getcontroldata_handle_body); f.docstring = lambda: "(part, type) -> ResObj" object.add(f) -# Manual Generator for SetControlDataCallback -setcontroldatacallback_body = """ +# Manual Generator for SetControlData_Callback +setcontroldata_callback_body = """ OSErr _err; ControlPartCode inPart; ResType inTagName; @@ -600,7 +600,7 @@ _res = Py_None; return _res; """ -f = ManualGenerator("SetControlDataCallback", setcontroldatacallback_body, condition="#if !TARGET_API_MAC_CARBON_NOTYET"); +f = ManualGenerator("SetControlData_Callback", setcontroldata_callback_body, condition="#if !TARGET_API_MAC_CARBON_NOTYET"); f.docstring = lambda: "(callbackfunc) -> None" object.add(f) |