summaryrefslogtreecommitdiff
path: root/grc/gui/FlowGraph.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-04-08 14:30:46 +0200
committerSebastian Koslowski <koslowski@kit.edu>2016-04-08 14:30:46 +0200
commit036264ef5c8e2376acd426a99ca42d29390e3e2a (patch)
treed9cb35cf7f8e4c1e9baa63277bc93f479e4f9d61 /grc/gui/FlowGraph.py
parent061af3f319ee69612782d99f79029ee4507c3589 (diff)
grc-refactoring: fix gui mode errors, no empty import on fg init, some renames
Diffstat (limited to 'grc/gui/FlowGraph.py')
-rw-r--r--grc/gui/FlowGraph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py
index 2f8ca0070e..c7c64c6e7d 100644
--- a/grc/gui/FlowGraph.py
+++ b/grc/gui/FlowGraph.py
@@ -150,7 +150,7 @@ class FlowGraph(Element, _Flowgraph):
int(random.uniform(.25, .75)*v_adj.page_size + v_adj.get_value()),
)
#get the new block
- block = self.get_new_block(key)
+ block = self.new_block(key)
block.set_coordinate(coor)
block.set_rotation(0)
block.get_param('id').set_value(id)
@@ -207,7 +207,7 @@ class FlowGraph(Element, _Flowgraph):
for block_n in blocks_n:
block_key = block_n.find('key')
if block_key == 'options': continue
- block = self.get_new_block(block_key)
+ block = self.new_block(block_key)
selected.add(block)
#set params
params_n = block_n.findall('param')