This commit is contained in:
Dietmar Schwertberger
2024-07-08 12:15:42 +01:00
committed by GitHub
2 changed files with 16 additions and 0 deletions

View File

@@ -276,6 +276,21 @@ def run():
wxPyRaiseNotImplemented();
#endif
""")
c.find('CreateAccessible').factory = True
c.find('CreateAccessible').setCppCode("""\
#if wxUSE_ACCESSIBILITY
return self->CreateAccessible();
#else
wxPyRaiseNotImplemented();
#endif
""")
c.find('GetOrCreateAccessible').setCppCode("""\
#if wxUSE_ACCESSIBILITY
return self->GetOrCreateAccessible();
#else
wxPyRaiseNotImplemented();
#endif
""")
# Make some of the protected methods visible and overridable from Python
c.find('SendDestroyEvent').ignore(False)

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