diff options
Diffstat (limited to 'grc/gui/Executor.py')
-rw-r--r-- | grc/gui/Executor.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/grc/gui/Executor.py b/grc/gui/Executor.py index bf9eecb9a8..9ed5f9da75 100644 --- a/grc/gui/Executor.py +++ b/grc/gui/Executor.py @@ -15,7 +15,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA -import gobject import os import threading import shlex @@ -24,6 +23,8 @@ import sys import re from distutils.spawn import find_executable +from gi.repository import GObject + from ..core import Messages @@ -86,15 +87,15 @@ class ExecFlowGraphThread(threading.Thread): def run(self): """ Wait on the executing process by reading from its stdout. - Use gobject.idle_add when calling functions that modify gtk objects. + Use GObject.idle_add when calling functions that modify gtk objects. """ # handle completion r = "\n" while r: - gobject.idle_add(Messages.send_verbose_exec, r) + GObject.idle_add(Messages.send_verbose_exec, r) r = os.read(self.process.stdout.fileno(), 1024) self.process.poll() - gobject.idle_add(self.done) + GObject.idle_add(self.done) def done(self): """Perform end of execution tasks.""" |