diff --git a/docs/sphinx/itemToModuleMap.json b/docs/sphinx/itemToModuleMap.json index 81daad4c..8698f4b4 100644 --- a/docs/sphinx/itemToModuleMap.json +++ b/docs/sphinx/itemToModuleMap.json @@ -52,6 +52,7 @@ "ACC_NOT_IMPLEMENTED":"wx.", "ACC_NOT_SUPPORTED":"wx.", "ACC_OK":"wx.", +"ACC_SELF":"wx.", "ACC_SEL_ADDSELECTION":"wx.", "ACC_SEL_EXTENDSELECTION":"wx.", "ACC_SEL_NONE":"wx.", diff --git a/etg/access.py b/etg/access.py index cdb66c38..a59457f9 100644 --- a/etg/access.py +++ b/etg/access.py @@ -31,7 +31,7 @@ def run(): # Tweak the parsed meta objects in the module object as needed for # customizing the generated code and docstrings. - #module.addHeaderCode('#include ') + module.addHeaderCode('#include ') tools.generateStubs('wxUSE_ACCESSIBILITY', module, typeValMap={'wxAccStatus':'wxACC_NOT_IMPLEMENTED'}) @@ -39,6 +39,22 @@ def run(): c = module.find('wxAccessible') assert isinstance(c, etgtools.ClassDef) + c.find('GetChild.child').out = True + c.find('GetChildCount.childCount').out = True + c.find('GetDefaultAction.actionName').out = True + c.find('GetDescription.description').out = True + c.find('GetFocus.child').out = True + c.find('GetHelpText.helpText').out = True + c.find('GetKeyboardShortcut.shortcut').out = True + c.find('GetName.name').out = True + c.find('GetParent.parent').out = True + c.find('GetRole.role').out = True + c.find('GetSelections.selections').out = True + c.find('GetState.state').out = True + c.find('GetValue.strValue').out = True + + #TODO: double-check this one + c.find('GetLocation.rect').out = True #----------------------------------------------------------------- tools.doCommonTweaks(module)