Update wxWidgets to v3.2.5. Add support for new, MSW-only Accessibility related methods.

This commit is contained in:
Jorge Moraleda
2024-05-16 16:14:54 -04:00
committed by Scott Talbert
parent 5622abb73d
commit a1c9554bbf
3 changed files with 19 additions and 1 deletions

View File

@@ -251,6 +251,23 @@ def run():
return NULL;
#endif
""")
c.find('GetOrCreateAccessible').setCppCode("""\
#if wxUSE_ACCESSIBILITY
return self->GetOrCreateAccessible();
#else
wxPyRaiseNotImplemented();
return NULL;
#endif
""")
c.find('CreateAccessible').factory = True
c.find('CreateAccessible').setCppCode("""\
#if wxUSE_ACCESSIBILITY
return self->CreateAccessible();
#else
wxPyRaiseNotImplemented();
return NULL;
#endif
""")
c.find('SetAccessible.accessible').transfer = True
c.find('SetAccessible').setCppCode("""\
#if wxUSE_ACCESSIBILITY

View File

@@ -479,6 +479,7 @@ def addWindowVirtuals(klass):
('SetValidator', 'void SetValidator( const wxValidator &validator )'),
('GetValidator', 'wxValidator* GetValidator()'),
('EnableVisibleFocus', 'void EnableVisibleFocus(bool enabled)'),
('CreateAccessible', 'wxAccessible* CreateAccessible()'),
## What about these?
#bool HasMultiplePages() const