Skip to content

Commit

Permalink
Port to sugar3.speech
Browse files Browse the repository at this point in the history
  • Loading branch information
quozl authored and Rahul Bothra committed Aug 30, 2018
1 parent f24a63d commit ef211f3
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 347 deletions.
12 changes: 5 additions & 7 deletions readactivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
from sugar3.activity.widgets import ActivityToolbarButton
from sugar3.activity.widgets import StopButton
from sugar3.graphics.tray import HTray
from sugar3.graphics.menuitem import MenuItem
from sugar3 import network
from sugar3 import mime
from sugar3 import profile
Expand All @@ -71,8 +72,8 @@
from readtoolbar import ViewToolbar
from bookmarkview import BookmarkView
from readdb import BookmarkManager
from sugar3.graphics.menuitem import MenuItem
from linkbutton import LinkButton
from speechtoolbar import SpeechToolbar

_HARDWARE_MANAGER_INTERFACE = 'org.laptop.HardwareManager'
_HARDWARE_MANAGER_SERVICE = 'org.laptop.HardwareManager'
Expand Down Expand Up @@ -1066,12 +1067,9 @@ def _update_toolbars(self):
if self._view.can_highlight():
self._highlight.show()
if self._view.can_do_text_to_speech():
import speech
from speechtoolbar import SpeechToolbar
if speech.supported:
self.speech_toolbar = SpeechToolbar(self)
self.speech_toolbar_button.set_page(self.speech_toolbar)
self.speech_toolbar_button.show()
self.speech_toolbar = SpeechToolbar(self)
self.speech_toolbar_button.set_page(self.speech_toolbar)
self.speech_toolbar_button.show()

def _share_document(self):
"""Share the document."""
Expand Down
45 changes: 0 additions & 45 deletions speech.py

This file was deleted.

124 changes: 0 additions & 124 deletions speech_dispatcher.py

This file was deleted.

104 changes: 0 additions & 104 deletions speech_gst.py

This file was deleted.

Loading

0 comments on commit ef211f3

Please sign in to comment.