ver Mar15th

added an option to keep buttons without text information but with an
image for SoM setting
This commit is contained in:
David Chang
2024-03-15 22:46:14 +08:00
parent 2b9772174e
commit e166106b6a
2 changed files with 17 additions and 6 deletions

View File

@@ -284,6 +284,15 @@ def _create_atspi_node(node: Accessible, depth: int = 0, flag: Optional[str] = N
text = text.replace("\ufffc", "").replace("\ufffd", "")
# }}} Text #
# Image {{{ #
try:
node.queryImage()
except NotImplementedError:
pass
else:
attribute_dict["image"] = "true"
# }}} Image #
# Selection {{{ #
try:
node.querySelection()