summaryrefslogtreecommitdiff
path: root/grc/gui/ActionHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r--grc/gui/ActionHandler.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index 4866a34ad9..2b39079f76 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -580,8 +580,10 @@ class ActionHandler:
try:
Messages.send_start_gen(generator.get_file_path())
generator.write()
- except Exception,e: Messages.send_fail_gen(e)
- else: self.generator = None
+ except Exception as e:
+ Messages.send_fail_gen(e)
+ else:
+ self.generator = None
elif action == Actions.FLOW_GRAPH_EXEC:
if not page.get_proc():
Actions.FLOW_GRAPH_GEN()
@@ -591,7 +593,11 @@ class ActionHandler:
Dialogs.MissingXTermDialog(xterm)
Preferences.xterm_missing(xterm)
if page.get_saved() and page.get_file_path():
- Executor.ExecFlowGraphThread(self)
+ Executor.ExecFlowGraphThread(
+ flow_graph_page=page,
+ xterm_executable=xterm,
+ callback=self.update_exec_stop
+ )
elif action == Actions.FLOW_GRAPH_KILL:
if page.get_proc():
try: