diff --git a/etgtools/tweaker_tools.py b/etgtools/tweaker_tools.py index 1b63c7179..560645a09 100644 --- a/etgtools/tweaker_tools.py +++ b/etgtools/tweaker_tools.py @@ -20,6 +20,7 @@ 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)'),