From 5279c3c3444bbb504a7055fd5496cae011306e7c Mon Sep 17 00:00:00 2001 From: DietmarSchwertberger Date: Thu, 3 Oct 2024 14:34:49 +0200 Subject: [PATCH] add CreateAccessible for Windows only --- etgtools/tweaker_tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etgtools/tweaker_tools.py b/etgtools/tweaker_tools.py index 1b63c717..560645a0 100644 --- a/etgtools/tweaker_tools.py +++ b/etgtools/tweaker_tools.py @@ -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)'),