diff options
author | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-19 05:23:55 (GMT) |
---|---|---|
committer | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-19 05:23:55 (GMT) |
commit | fd972f1ca3da5e0f5b418709f2b88e9ae422fc9f (patch) | |
tree | b6f4e8faaa1ad91cb667292b37bf919526f58019 /speech_dispatcher.py | |
parent | b5df71258096804fcb08ba2dc855b6815103587b (diff) |
Gtk3 port.
Diffstat (limited to 'speech_dispatcher.py')
-rw-r--r-- | speech_dispatcher.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/speech_dispatcher.py b/speech_dispatcher.py index d2a5d69..6d841e3 100644 --- a/speech_dispatcher.py +++ b/speech_dispatcher.py @@ -14,7 +14,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import gtk +from gi.repository import Gdk import time import threading import speechd @@ -96,12 +96,12 @@ class EspeakThread(threading.Thread): if type == speechd.CallbackType.INDEX_MARK: mark = kargs['index_mark'] word_count = int(mark) - gtk.gdk.threads_enter() + Gdk.threads_enter() speech.highlight_cb(word_count) - gtk.gdk.threads_leave() + Gdk.threads_leave() elif type == speechd.CallbackType.END: - gtk.gdk.threads_enter() + Gdk.threads_enter() speech.reset_cb() - gtk.gdk.threads_leave() + Gdk.threads_leave() global done done = True |