diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-06-01 17:47:01 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-06-01 17:47:01 +0200 |
commit | b2f0a4cfc523a6b81c7896408a48949929c67a88 (patch) | |
tree | 02880a53b0debbddf897cfcc269164870fc85f76 /grc/gui/Executor.py | |
parent | 69da909690bb8bc2072cffb622ddf7bf2e971cce (diff) |
grc-refactor: replace some unnecessary getters
Diffstat (limited to 'grc/gui/Executor.py')
-rw-r--r-- | grc/gui/Executor.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/grc/gui/Executor.py b/grc/gui/Executor.py index 9ed5f9da75..c39f743809 100644 --- a/grc/gui/Executor.py +++ b/grc/gui/Executor.py @@ -45,8 +45,7 @@ class ExecFlowGraphThread(threading.Thread): self.update_callback = callback try: - self.process = self._popen() - self.page.set_proc(self.process) + self.process = self.page.process = self._popen() self.update_callback() self.start() except Exception as e: @@ -57,7 +56,7 @@ class ExecFlowGraphThread(threading.Thread): """ Execute this python flow graph. """ - run_command = self.page.get_flow_graph().get_option('run_command') + run_command = self.page.flow_graph.get_option('run_command') generator = self.page.get_generator() try: @@ -100,7 +99,7 @@ class ExecFlowGraphThread(threading.Thread): def done(self): """Perform end of execution tasks.""" Messages.send_end_exec(self.process.returncode) - self.page.set_proc(None) + self.page.process = None self.update_callback() |