mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Made the core toolbox modules carbon-compatible using the new greylist feature of bgen: non-carbon methods are still included in non-carbon MacPython. The issue of backward compatibility of Python code is still open.
Macmodule and macosmodule have also been carbonified. Some functionality is still missing there.
This commit is contained in:
parent
33d1ad28cb
commit
e79dc76f53
35 changed files with 667 additions and 129 deletions
|
|
@ -48,17 +48,17 @@ class MyScanner(Scanner):
|
|||
'kControlBevelButtonCenterPopupGlyphTag', # Constant with funny definition
|
||||
'kControlProgressBarIndeterminateTag', # ditto
|
||||
# The following are unavailable for static 68k (appearance manager)
|
||||
'GetBevelButtonMenuValue',
|
||||
'SetBevelButtonMenuValue',
|
||||
'GetBevelButtonMenuHandle',
|
||||
'SetBevelButtonTransform',
|
||||
## 'GetBevelButtonMenuValue',
|
||||
## 'SetBevelButtonMenuValue',
|
||||
## 'GetBevelButtonMenuHandle',
|
||||
## 'SetBevelButtonTransform',
|
||||
'SetBevelButtonGraphicAlignment',
|
||||
'SetBevelButtonTextAlignment',
|
||||
'SetBevelButtonTextPlacement',
|
||||
'SetImageWellTransform',
|
||||
'GetTabContentRect',
|
||||
'SetTabEnabled',
|
||||
'SetDisclosureTriangleLastValue',
|
||||
## 'SetImageWellTransform',
|
||||
## 'GetTabContentRect',
|
||||
## 'SetTabEnabled',
|
||||
## 'SetDisclosureTriangleLastValue',
|
||||
## # Unavailable in CW Pro 3 libraries
|
||||
## 'SetUpControlTextColor',
|
||||
## # Unavailable in Jack's CW Pro 5.1 libraries
|
||||
|
|
@ -79,6 +79,13 @@ class MyScanner(Scanner):
|
|||
'GetControlPropertySize',
|
||||
]
|
||||
|
||||
def makegreylist(self):
|
||||
return [
|
||||
('#ifndef TARGET_API_MAC_CARBON', [
|
||||
'GetAuxiliaryControlRecord',
|
||||
'SetControlColor',
|
||||
])]
|
||||
|
||||
def makeblacklisttypes(self):
|
||||
return [
|
||||
'ProcPtr',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue