Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/epubview/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'epubview/widgets.py')
-rw-r--r--epubview/widgets.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/epubview/widgets.py b/epubview/widgets.py
index 078ae3b..7af4f31 100644
--- a/epubview/widgets.py
+++ b/epubview/widgets.py
@@ -34,3 +34,9 @@ class _WebView(webkit.WebView):
'newdiv.style.height = "%dpx";document.body.appendChild(newdiv);' \
% incr)
self.execute_script(js)
+
+ def highlight_next_word(self):
+ '''
+ Highlight next word (for text to speech)
+ '''
+ self.execute_script('highLightNextWord();')