Bugzilla – Attachment 118624 Details for
Bug 94146
Segfault getting accessible object attributes in Calc cell with formula immediately upon launch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
accessible-event listener: soffice-events.py
soffice-events.py (text/x-python), 1.31 KB, created by
Joanmarie Diggs
on 2015-09-11 21:15:15 UTC
(
hide
)
Description:
accessible-event listener: soffice-events.py
Filename:
MIME Type:
Creator:
Joanmarie Diggs
Created:
2015-09-11 21:15:15 UTC
Size:
1.31 KB
patch
obsolete
>#!/usr/bin/python3 > >import pyatspi >import time > >def synthesizeUpDown(count): > for i in range(count): > pyatspi.Registry.generateKeyboardEvent(111, "Up", pyatspi.KEY_PRESSRELEASE) > pyatspi.Registry.generateKeyboardEvent(116, "Down", pyatspi.KEY_PRESSRELEASE) > >def onActiveChanged(e): > if not e.detail1: > return > > try: > if not (e.host_application.name == "soffice" and e.source.getRole() == pyatspi.ROLE_FRAME): > return > except: > return > > timestamp = time.strftime("%H:%M:%S", time.localtime()) > print("%s - %s from %s (%s, %s, %s)" % (timestamp, e.type, e.source, e.detail1, e.detail2, e.any_data)) > > synthesizeUpDown(3) > >def onActiveDescendantChanged(e): > try: > if e.host_application.name != "soffice": > return > except: > return > > timestamp = time.strftime("%H:%M:%S", time.localtime()) > print("%s - %s from %s (%s, %s, %s)" % (timestamp, e.type, e.source, e.detail1, e.detail2, e.any_data)) > > try: > attrs = e.any_data.getAttributes() > except: > print("Exception getting attributes for %s" % e.any_data) > >pyatspi.Registry.registerEventListener(onActiveChanged, "object:state-changed:active") >pyatspi.Registry.registerEventListener(onActiveDescendantChanged, "object:active-descendant-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 94146
: 118624 |
118625
|
118626
|
123165