diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-08-30 16:26:13 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-08-30 16:26:13 +0200 |
commit | f85df8b8d9bf2a88a6b87b91d0b55fdcb8161f46 (patch) | |
tree | f957d37f92a3d7d3bd478cdec5c36f824054a17e /grc/gui/Block.py | |
parent | 63beff38d49cda141ccfebaee597a7edb7ac015d (diff) |
grc: gtk3: minor gui flowgraph cleanup
Diffstat (limited to 'grc/gui/Block.py')
-rw-r--r-- | grc/gui/Block.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py index 6cbfa5f4f5..4b6c5b8e9e 100644 --- a/grc/gui/Block.py +++ b/grc/gui/Block.py @@ -244,7 +244,7 @@ class Block(CoreBlock, Element): else: self._comment_layout = None - def draw(self, widget, cr): + def draw(self, cr): """ Draw the signal block with label and inputs/outputs. """ @@ -253,7 +253,7 @@ class Block(CoreBlock, Element): for port in self.active_ports(): # ports first cr.save() - port.draw(widget, cr) + port.draw(cr) cr.restore() cr.rectangle(*self._area) @@ -295,7 +295,7 @@ class Block(CoreBlock, Element): return port_selected return Element.what_is_selected(self, coor, coor_m) - def draw_comment(self, widget, cr): + def draw_comment(self, cr): if not self._comment_layout: return x, y = self.coordinate @@ -375,3 +375,4 @@ class Block(CoreBlock, Element): except: pass return changed + |