Bugzilla – Attachment 193851 Details for
Bug 160806
Cannot ascend accessibility tree from calc document to app
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
accessible-event listener
listener.py (text/x-python), 578 bytes, created by
Michael Weghorn
on 2024-04-25 08:39:13 UTC
(
hide
)
Description:
accessible-event listener
Filename:
MIME Type:
Creator:
Michael Weghorn
Created:
2024-04-25 08:39:13 UTC
Size:
578 bytes
patch
obsolete
>#!/usr/bin/python3 > >import pyatspi > >def listener(e): > try: > if "soffice" not in e.source.getApplication().name.lower(): > return > except: > return > > print(f"\n{e.type} in {e.source}: child {e.any_data}.") > ancestors = [] > obj = e.source > while obj and obj.parent: > ancestors.append(obj.parent.getRoleName()) > obj = obj.parent > print(f'ancestors of source: {", ".join(ancestors)}') > >pyatspi.Registry.registerEventListener(listener, "object:active-descendant-changed", "object:selection-changed") >pyatspi.Registry.start()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 160806
:
193836
| 193851