summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grc/gui/Block.py9
-rw-r--r--grc/python/flow_graph.tmpl2
2 files changed, 8 insertions, 3 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py
index 7350e4bdfe..4157a0882d 100644
--- a/grc/gui/Block.py
+++ b/grc/gui/Block.py
@@ -41,11 +41,16 @@ BLOCK_MARKUP_TMPL="""\
COMMENT_COMPLEXITY_MARKUP_TMPL="""\
#set $foreground = $block.get_enabled() and '#444' or '#888'
#if $complexity
-<span foreground="#444" size="medium" font_desc="$font"><b>$encode($complexity)</b></span>
+<span foreground="#444" size="medium" font_desc="$font"><b>$encode($complexity)</b></span>#slurp
+#end if
+#if $complexity and $comment
+<span></span>
#end if
#if $comment
<span foreground="$foreground" font_desc="$font">$encode($comment)</span>#slurp
-#end if"""
+#end if
+"""
+
class Block(Element):
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index 72891b7af8..35d9239e5e 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -278,7 +278,7 @@ gr.io_signaturev($(len($io_sigs)), $(len($io_sigs)), [$(', '.join($size_strs))])
filename = os.path.join(
gr.prefix(), "share", "gnuradio", "themes", filename)
with open(filename) as ss:
- tb.setStyleSheet('1' + ss.read())
+ self.setStyleSheet(ss.read())
except Exception as e:
print >> sys.stderr, e
#end if