Skip to content

Commit

Permalink
Fix initialization of the Adapter on macOS in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
DataTriny committed Aug 16, 2023
1 parent c4a9657 commit 6833c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/examples/pygame/hello_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, app_name, source, action_handler):
if PLATFORM_SYSTEM == "Darwin":
accesskit.macos.add_focus_forwarder_to_window_class("SDLWindow")
window = pygame.display.get_wm_info()["window"]
self.adapter = accesskit.macos.SubclassingAdapter(
self.adapter = accesskit.macos.SubclassingAdapter.for_window(
window, source, action_handler
)
elif os.name == "posix":
Expand Down

0 comments on commit 6833c8e

Please sign in to comment.