diff options
author | Seth Hitefield <sdhitefield@gmail.com> | 2016-04-11 22:09:16 -0400 |
---|---|---|
committer | Seth Hitefield <sdhitefield@gmail.com> | 2016-05-24 11:11:33 -0400 |
commit | e66cfa31ff52b95a9c3df27c8a1f3b02bef6db3d (patch) | |
tree | e6b38580dfe554f83a92a24f9b0224d462b4ad97 /grc/gui/Executor.py | |
parent | c73ee1053f27bdae00b9cdeb12cabfab37854425 (diff) |
grc: Main window opens with pygobject and gtk3. Still throws tons of errors.
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.""" |