Skip to content

Commit

Permalink
Update wxWidgets to v3.2.5. Add support for new, MSW-only Accessibili…
Browse files Browse the repository at this point in the history
…ty related methods.
  • Loading branch information
jmoraleda authored and swt2c committed May 18, 2024
1 parent 5622abb commit a1c9554
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions etg/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etgtools/tweaker_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ext/wxWidgets
Submodule wxWidgets updated 295 files

0 comments on commit a1c9554

Please sign in to comment.