ver Jan18thv4

added a comment about accessing AT on windows
This commit is contained in:
David Chang
2024-01-18 22:22:51 +08:00
parent 00deae465a
commit 21314346c5

View File

@@ -299,6 +299,7 @@ def get_accessibility_tree():
desktop: Accessible = pyatspi.Registry.getDesktop(0)
desktop_xml: _Element = _create_atspi_node(desktop)
return jsonify({"AT": lxml.etree.tostring(desktop_xml, encoding="unicode")})
# TODO: Windows AT may be read through `pywinauto` module, however, two different backends `win32` and `uia` are supported and different results may be returned
else:
return "Currently not implemented for platform {:}.".format(platform.platform()), 500