summaryrefslogtreecommitdiff
path: root/grc/gui/Block.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-06-09 14:44:22 +0200
committerSebastian Koslowski <koslowski@kit.edu>2016-06-10 14:41:52 +0200
commit435e2b16c903b4a9d16d40ffba649698c4ded190 (patch)
treea99691a8877b7fc911c9d4b223d26b0f3fa5921b /grc/gui/Block.py
parent6375ebf0eb2b619e1a31ec8b8babc3ad0f968dd2 (diff)
grc-refactor: rewrite tree-api in core
Diffstat (limited to 'grc/gui/Block.py')
-rw-r--r--grc/gui/Block.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py
index a6c31cd473..49bba4f3db 100644
--- a/grc/gui/Block.py
+++ b/grc/gui/Block.py
@@ -181,7 +181,7 @@ class Block(Element, _Block):
# Show the flow graph complexity on the top block if enabled
if Actions.TOGGLE_SHOW_FLOWGRAPH_COMPLEXITY.get_active() and self.get_key() == "options":
- complexity = calculate_flowgraph_complexity(self.get_parent())
+ complexity = calculate_flowgraph_complexity(self.parent)
markups.append(
'<span foreground="#444" size="medium" font_desc="{font}">'
'<b>Complexity: {num}bal</b></span>'.format(num=num_to_str(complexity), font=BLOCK_FONT)
@@ -201,7 +201,7 @@ class Block(Element, _Block):
width, height = layout.get_pixel_size()
if width and height:
padding = BLOCK_LABEL_PADDING
- pixmap = self.get_parent().new_pixmap(width + 2 * padding,
+ pixmap = self.parent.new_pixmap(width + 2 * padding,
height + 2 * padding)
gc = pixmap.new_gc()
gc.set_foreground(Colors.COMMENT_BACKGROUND_COLOR)