diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-11-03 19:52:20 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2011-12-08 16:48:44 (GMT) |
commit | 13cd62468db76758ecef0fa78fa77eef866b1db7 (patch) | |
tree | a0dfbd5f30e3b7ea62675fd7e1d329ddc6009bf1 /speech_dispatcher.py | |
parent | 035bc9a388dc86e467b4767b8df1380bc8e8fdbd (diff) |
Initial port to Gtk3
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 4fad27f..977a16d 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 Gtk import time import threading import speechd @@ -105,12 +105,12 @@ class EspeakThread(threading.Thread): if type == speechd.CallbackType.INDEX_MARK: mark = kargs['index_mark'] word_count = int(mark) - gtk.gdk.threads_enter() + Gtk.gdk.threads_enter() speech.highlight_cb(word_count) - gtk.gdk.threads_leave() + Gtk.gdk.threads_leave() elif type == speechd.CallbackType.END: - gtk.gdk.threads_enter() + Gtk.gdk.threads_enter() speech.reset_cb() - gtk.gdk.threads_leave() + Gtk.gdk.threads_leave() global done done = True |