summaryrefslogtreecommitdiff
path: root/gr-utils/python
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-06-02 15:56:42 +0200
committerSebastian Koslowski <koslowski@kit.edu>2016-06-02 15:56:42 +0200
commit3643b439a84486a6efb36ea8b01b037c1e005700 (patch)
tree18452916346636100356ba963ef02ce63ab26bb5 /gr-utils/python
parent0d32337545f554dffe0dee69f5f1415ac2f5b673 (diff)
modtool: add basic support for GRC modules in block tree
Diffstat (limited to 'gr-utils/python')
-rw-r--r--gr-utils/python/modtool/grc_xml_generator.py2
-rw-r--r--gr-utils/python/modtool/templates.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gr-utils/python/modtool/grc_xml_generator.py b/gr-utils/python/modtool/grc_xml_generator.py
index 7ccd443196..af17ca1822 100644
--- a/gr-utils/python/modtool/grc_xml_generator.py
+++ b/gr-utils/python/modtool/grc_xml_generator.py
@@ -35,7 +35,7 @@ class GRCXMLGenerator(object):
# Can't make a dict 'cause order matters
self._header = (('name', blockname.replace('_', ' ').capitalize()),
('key', '%s_%s' % (modname, blockname)),
- ('category', modname.upper()),
+ ('category', '[%s]' % modname.upper()),
('import', 'import %s' % modname),
('make', '%s.%s(%s)' % (modname, blockname, ', '.join(params_list)))
)
diff --git a/gr-utils/python/modtool/templates.py b/gr-utils/python/modtool/templates.py
index 9caf658194..2804224892 100644
--- a/gr-utils/python/modtool/templates.py
+++ b/gr-utils/python/modtool/templates.py
@@ -521,7 +521,7 @@ Templates['grc_xml'] = '''<?xml version="1.0"?>
<block>
<name>$blockname</name>
<key>${modname}_$blockname</key>
- <category>$modname</category>
+ <category>[$modname]</category>
<import>import $modname</import>
<make>${modname}.${blockname}(${strip_arg_types_grc($arglist)})</make>
<!-- Make one 'param' node for every Parameter you want settable from the GUI.