diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2015-12-07 15:38:59 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2015-12-07 15:38:59 -0800 |
commit | 6fed8f82386e3157018f6498aee648d9aa87de76 (patch) | |
tree | d134d03d91246d0b7c92306d819c790f0b309efd /grc/gui/Block.py | |
parent | 86d551e04181f6b6c2a039695ab73eb289e87c17 (diff) | |
parent | bf6d4e2a8abf32e49a923f361162584b32e7afec (diff) |
Merge branch 'maint'
Diffstat (limited to 'grc/gui/Block.py')
-rw-r--r-- | grc/gui/Block.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py index 8c74fcb4a5..67b80695fa 100644 --- a/grc/gui/Block.py +++ b/grc/gui/Block.py @@ -206,7 +206,7 @@ class Block(Element): #display the params if self.is_dummy_block(): markups = [ - '<span foreground="black" font_desc="$font"><b>key: </b>{key}</span>'.format(font=PARAM_FONT, key=self._key) + '<span foreground="black" font_desc="{font}"><b>key: </b>{key}</span>'.format(font=PARAM_FONT, key=self._key) ] else: markups = [param.get_markup() for param in self.get_params() if param.get_hide() not in ('all', 'part')] @@ -215,7 +215,7 @@ class Block(Element): layout.set_spacing(LABEL_SEPARATION*pango.SCALE) layout.set_markup('\n'.join(markups)) layouts.append(layout) - w,h = layout.get_pixel_size() + w, h = layout.get_pixel_size() self.label_width = max(w, self.label_width) self.label_height += h + LABEL_SEPARATION width = self.label_width |