[pyatspi2] Fix the getAttributes method of the text api to return
- From: Mark Doffman <markdoffman src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pyatspi2] Fix the getAttributes method of the text api to return
- Date: Fri, 11 Dec 2009 15:11:13 +0000 (UTC)
commit 35719e716e96a7f1ef5c86c1c8e5ddc82dfa1271
Author: Mark Doffman <mark doffman codethink co uk>
Date: Thu Dec 10 02:46:26 2009 -0800
Fix the getAttributes method of the text api to return
semicolon delimited string as required by accerciser.
pyatspi/text.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/text.py b/pyatspi/text.py
index 9051262..1194440 100644
--- a/pyatspi/text.py
+++ b/pyatspi/text.py
@@ -202,8 +202,9 @@ class Text(Accessible):
"""
func = self.get_dbus_method("GetAttributes", dbus_interface=ATSPI_TEXT)
[attrs, startOffset, endOffset] = func(Int32(offset))
- dict = [key + ':' + attrs[key] for key in attrs]
- return [dict, startOffset, endOffset]
+ arr = [key + ':' + value for key, value in attrs.items()]
+ str = ';'.join (arr)
+ return [str, startOffset, endOffset]
def getBoundedRanges(self, x, y, width, height, coordType, xClipType, yClipType):
#TODO Return a list of range structures
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]