diff options
Diffstat (limited to 'epubview/widgets.py')
-rw-r--r-- | epubview/widgets.py | 6 |
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();') |