Skip to content

Commit

Permalink
Merge pull request #2618 from DietmarSchwertberger/TWEAKER_TOOLS_WINDOWS
Browse files Browse the repository at this point in the history
add CreateAccessible for Windows only
  • Loading branch information
swt2c authored Oct 15, 2024
2 parents d226fa3 + 5279c3c commit 82b1c7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etgtools/tweaker_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@


PY3 = sys.version_info[0] == 3
isWindows = sys.platform.startswith('win')

magicMethods = {
'operator!=' : '__ne__',
Expand Down Expand Up @@ -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)'),
Expand Down

0 comments on commit 82b1c7a

Please sign in to comment.