[pyatspi2] Add source_name and source_role to events



commit b2f623800c798fc66a88b7ff693b1806eb0d87e8
Author: Mike Gorse <mgorse novell com>
Date:   Mon Jan 24 11:07:19 2011 -0600

    Add source_name and source_role to events

 pyatspi/Accessibility.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pyatspi/Accessibility.py b/pyatspi/Accessibility.py
index e093927..b18a116 100644
--- a/pyatspi/Accessibility.py
+++ b/pyatspi/Accessibility.py
@@ -272,6 +272,8 @@ Atspi.Value.minimumValue = property(fget=Atspi.Value.get_minimum_value)
 ### event ###
 Atspi.Event.host_application = property(fget=lambda x: x.source.get_application())
 Atspi.Event.rawType = Atspi.Event.type
+Atspi.Event.source_name = property(fget=lambda x: x.source.name)
+Atspi.Event.source_role = property(fget=lambda x: x.source.getRole())
 Atspi.Event.type = property(fget=getEventType)
 
 ### RelationSet ###



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]