Bugzilla – Attachment 87800 Details for
Bug 70588
Accessible labels in alerts claim to be ROLE_PASSWORD_TEXT instead of ROLE_LABEL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
pyatspi listener
window-activated.py (text/x-python), 480 bytes, created by
Joanmarie Diggs
on 2013-10-17 20:38:50 UTC
(
hide
)
Description:
pyatspi listener
Filename:
MIME Type:
Creator:
Joanmarie Diggs
Created:
2013-10-17 20:38:50 UTC
Size:
480 bytes
patch
obsolete
>#!/usr/bin/python > >import pyatspi > >def onWindowActivate(e): > alerts = pyatspi.findAllDescendants(e.source, lambda x: x and x.getRole() == pyatspi.ROLE_ALERT) > for alert in alerts: > descendants = pyatspi.findAllDescendants(alert, lambda x: x) > print(alert) > for i, descendant in enumerate(descendants): > print(" %i. %s" % (i, descendant)) > >pyatspi.Registry.registerEventListener(onWindowActivate, "window:activate") >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 70588
: 87800