add CreateAccessible for Windows only

This commit is contained in:
DietmarSchwertberger
2024-10-03 14:34:49 +02:00
parent b2733b5814
commit 5279c3c344

View File

@@ -20,6 +20,7 @@ import textwrap
PY3 = sys.version_info[0] == 3
isWindows = sys.platform.startswith('win')
magicMethods = {
'operator!=' : '__ne__',
@@ -485,6 +486,9 @@ def addWindowVirtuals(klass):
#void UpdateWindowUI(long flags = wxUPDATE_UI_NONE);
#void DoUpdateWindowUI(wxUpdateUIEvent& event) ;
]
if isWindows:
# does not compile on GTK and macOS.
publicWindowVirtuals.append( ('CreateAccessible', 'wxAccessible* CreateAccessible()') )
protectedWindowVirtuals = [
('ProcessEvent', 'bool ProcessEvent(wxEvent & event)'),