summaryrefslogtreecommitdiff
path: root/grc/core
diff options
context:
space:
mode:
Diffstat (limited to 'grc/core')
-rw-r--r--grc/core/FlowGraph.py6
-rw-r--r--grc/core/Platform.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/grc/core/FlowGraph.py b/grc/core/FlowGraph.py
index 8246d86f44..18a5778015 100644
--- a/grc/core/FlowGraph.py
+++ b/grc/core/FlowGraph.py
@@ -40,17 +40,17 @@ class FlowGraph(Element):
is_flow_graph = True
- def __init__(self, platform):
+ def __init__(self, parent):
"""
Make a flow graph from the arguments.
Args:
- platform: a platforms with blocks and contrcutors
+ parent: a platforms with blocks and element factories
Returns:
the flow graph object
"""
- Element.__init__(self, parent=platform)
+ Element.__init__(self, parent)
self._timestamp = time.ctime()
self._options_block = self.parent_platform.get_new_block(self, 'options')
diff --git a/grc/core/Platform.py b/grc/core/Platform.py
index 2a8764ad0d..9956391055 100644
--- a/grc/core/Platform.py
+++ b/grc/core/Platform.py
@@ -326,7 +326,7 @@ class Platform(Element):
}
def get_new_flow_graph(self):
- return self.FlowGraph(platform=self)
+ return self.FlowGraph(parent=self)
def get_new_block(self, parent, key, **kwargs):
cls = self.block_classes.get(key, self.block_classes[None])