[pyatspi2] Fix getAttributes in text interface.
- From: Mike Gorse <mgorse src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pyatspi2] Fix getAttributes in text interface.
- Date: Mon, 16 Nov 2009 18:32:15 +0000 (UTC)
commit c3f9b135622834d34581e1897b885ad77b545881
Author: Mike Gorse <mgorse novell com>
Date: Tue Nov 10 09:37:22 2009 -0500
Fix getAttributes in text interface.
pyatspi/text.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/text.py b/pyatspi/text.py
index f9a7b59..e4f9685 100644
--- a/pyatspi/text.py
+++ b/pyatspi/text.py
@@ -200,9 +200,9 @@ class Text(Accessible):
@return the attributes at offset, as a semicolon-delimited set
of colon-delimited name-value pairs.
"""
- func = self.get_dbus_method("getAttributes", dbus_interface=ATSPI_TEXT)
+ func = self.get_dbus_method("GetAttributes", dbus_interface=ATSPI_TEXT)
[attrs, startOffset, endOffset] = func(Int32(offset))
- dict = [key + ':' + value for key, value in attrs]
+ dict = [key + ':' + attrs[key] for key in attrs]
return [dict, startOffset, endOffset]
def getBoundedRanges(self, x, y, width, height, coordType, xClipType, yClipType):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]