37 lines
1.0 KiB
Diff
37 lines
1.0 KiB
Diff
|
Do not fail the wxPython build when using a wxWidgets-3.2.5 base.
|
||
|
|
||
|
Generated by:
|
||
|
git diff 5622abb73deaa26dc2f6dc4cd8b4b2050396b49a..78938da1218483024b3a7acf55b5fb5513882916 etg/
|
||
|
|
||
|
|
||
|
---
|
||
|
etg/window.py | 17 +++++++++++++++++
|
||
|
1 file changed, 17 insertions(+)
|
||
|
|
||
|
--- a/etg/window.py
|
||
|
+++ b/etg/window.py
|
||
|
@@ -268,6 +268,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
|