Describe the bug
When running the Webview example, when clicking on one of the js buttons, the following deprecation warning is thrown:
webview.py:193: DeprecationWarning: Synchronous `on_result` handlers have been deprecated; use `await` on the asynchronous result
result = JavaScriptResult(on_result=on_result)
Steps to reproduce
- Run the webview example code.
- Click on "good js" or "bad js".
- Check console output.
Expected behavior
Presumably that the error is not present.
Screenshots
No response
Environment
- Operating System: macOS 15.5
- Python version: 3.13
- Software versions:
- Toga: 0.5.2.dev139+gef79e0427.d20250705
Logs
Additional context
No response
Describe the bug
When running the Webview example, when clicking on one of the
jsbuttons, the following deprecation warning is thrown:Steps to reproduce
Expected behavior
Presumably that the error is not present.
Screenshots
No response
Environment
Logs
Additional context
No response