summaryrefslogtreecommitdiff
path: root/grc/gui/NotebookPage.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-05-23 10:45:54 +0200
committerSebastian Koslowski <koslowski@kit.edu>2016-05-23 10:45:54 +0200
commitc73ee1053f27bdae00b9cdeb12cabfab37854425 (patch)
tree3b4219b485896bfcedc9d7ebe391fa553a54630c /grc/gui/NotebookPage.py
parent33c5096a47d1c882fde2f89af677d91b969df095 (diff)
grc: fix flow graph execution (amends ActionHandler refactoring)
Diffstat (limited to 'grc/gui/NotebookPage.py')
-rw-r--r--grc/gui/NotebookPage.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/grc/gui/NotebookPage.py b/grc/gui/NotebookPage.py
index 6614649c89..c9e8d0f186 100644
--- a/grc/gui/NotebookPage.py
+++ b/grc/gui/NotebookPage.py
@@ -39,13 +39,13 @@ class NotebookPage(gtk.HBox):
file_path: path to a flow graph file
"""
self._flow_graph = flow_graph
- self.set_proc(None)
+ self.process = None
#import the file
self.main_window = main_window
- self.set_file_path(file_path)
+ self.file_path = file_path
initial_state = flow_graph.get_parent().parse_flow_graph(file_path)
self.state_cache = StateCache(initial_state)
- self.set_saved(True)
+ self.saved = True
#import the data to the flow graph
self.get_flow_graph().import_data(initial_state)
#initialize page gui
@@ -189,8 +189,7 @@ class NotebookPage(gtk.HBox):
Args:
file_path: file path string
"""
- if file_path: self.file_path = os.path.abspath(file_path)
- else: self.file_path = ''
+ self.file_path = os.path.abspath(file_path) if file_path else ''
def get_saved(self):
"""