diff options
author | Seth Hitefield <sdhitefield@gmail.com> | 2015-06-10 16:04:51 -0400 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2015-06-11 09:40:24 +0200 |
commit | 91dd2fce59ba81d4dc22b9dcdc909211cafe9f5f (patch) | |
tree | 51b237a53e69e1c1a06648866b6c1bfae6993cc7 /grc/gui/Block.py | |
parent | 80272df0bd29c02e7d677062431ba0ae4e07ed60 (diff) |
grc: Added ability to bypass blocks (Suggested by Chris Headley).
Only for blocks that have a single source and sink of the same type.
Feature can be disabled per block using the 'disable_bypass' flag in the block definition.
Diffstat (limited to 'grc/gui/Block.py')
-rw-r--r-- | grc/gui/Block.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py index 60f19fc1a4..83706ed1aa 100644 --- a/grc/gui/Block.py +++ b/grc/gui/Block.py @@ -145,7 +145,9 @@ class Block(Element): """Create the labels for the signal block.""" Element.create_labels(self) self._bg_color = self.is_dummy_block() and Colors.MISSING_BLOCK_BACKGROUND_COLOR or \ + self.get_bypassed() and Colors.BLOCK_BYPASSED_COLOR or \ self.get_enabled() and Colors.BLOCK_ENABLED_COLOR or Colors.BLOCK_DISABLED_COLOR + layouts = list() #create the main layout layout = gtk.DrawingArea().create_pango_layout('') |