diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2013-12-26 22:50:17 +0100 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2014-03-15 18:00:05 +0100 |
commit | bd857db80dab56523ecbc76886cd6fa5c1183890 (patch) | |
tree | 897537c7746920ab06aab7cd0d46cc98a7a34da4 /grc/gui/Block.py | |
parent | 69dcaa75b629af4ebc465a073f54af84b7c75a11 (diff) |
grc: show dummy blocks when opening grc blocks
Diffstat (limited to 'grc/gui/Block.py')
-rw-r--r-- | grc/gui/Block.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py index 30031866c0..c35ce1c505 100644 --- a/grc/gui/Block.py +++ b/grc/gui/Block.py @@ -139,7 +139,10 @@ class Block(Element): layout.set_markup(Utils.parse_template(BLOCK_MARKUP_TMPL, block=self)) self.label_width, self.label_height = layout.get_pixel_size() #display the params - markups = [param.get_markup() for param in self.get_params() if param.get_hide() not in ('all', 'part')] + if self.is_dummy_block(): + markups = ['<span foreground="black" font_desc="Sans 7.5"><b>key: </b>{}</span>'.format(self._key)] + else: + markups = [param.get_markup() for param in self.get_params() if param.get_hide() not in ('all', 'part')] if markups: layout = gtk.DrawingArea().create_pango_layout('') layout.set_spacing(LABEL_SEPARATION*pango.SCALE) |