[pyatspi2] Add wrapper for atspi_text_notify_read_position
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] Add wrapper for atspi_text_notify_read_position
- Date: Sun, 5 May 2019 16:29:26 +0000 (UTC)
commit b6b0b0c9e597dc2f89f0c763e76a320fd9cc5ff2
Author: Mike Gorse <mgorse alum wpi edu>
Date: Sun May 5 11:15:42 2019 -0500
Add wrapper for atspi_text_notify_read_position
https://gitlab.gnome.org/GNOME/at-spi2-core/issues/10
pyatspi/text.py | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/pyatspi/text.py b/pyatspi/text.py
index 4ccffa1..665cf82 100644
--- a/pyatspi/text.py
+++ b/pyatspi/text.py
@@ -606,6 +606,15 @@ class Text(interface):
"""
return Atspi.Text.scroll_substring_to_point(self.obj, startOffset, endOffset, coord_type, x,
y)
+ def notifyReadPosition(self, offset):
+ """
+ Notifies interested listeners of the specific text that the
+ screen reader is currently reading. This allows a magnifier to
+ synchronize with the screen reader and highlight the text that
+ is currently being read.
+ """
+ return Atspi.Text.notify_read_position(self.obj, offset)
+
def rangeToList(r):
return (r.start_offset, r.end_offset)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]