diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-07-07 12:20:09 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-07-07 12:20:09 -0400 |
commit | bbfc759914da80214fabc70fbbed1edaf39f9e4b (patch) | |
tree | 712eb6d1d95445bb6535534ce86d7faf1bfe6f90 /grc/python/Block.py | |
parent | 3f469513b94ac992138360caca7e1b53f82214ae (diff) | |
parent | 597b93798a804cde1783d6d2ab53b348d57c44cd (diff) |
Merge branch 'maint'
Diffstat (limited to 'grc/python/Block.py')
-rw-r--r-- | grc/python/Block.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/grc/python/Block.py b/grc/python/Block.py index 5dffcb3124..7a1c3a254f 100644 --- a/grc/python/Block.py +++ b/grc/python/Block.py @@ -34,11 +34,11 @@ class Block(_Block, _GUIBlock): def __init__(self, flow_graph, n): """ Make a new block from nested data. - + Args: flow: graph the parent element n: the nested odict - + Returns: block a new block """ @@ -65,14 +65,14 @@ class Block(_Block, _GUIBlock): bus_structure = self._bus_structure_source; else: bus_structure = self._bus_structure_sink; - + bus_structure = self.resolve_dependencies(bus_structure); - + if not bus_structure: return '' try: clean_bus_structure = self.get_parent().evaluate(bus_structure) return clean_bus_structure - + except: return '' def throttle(self): return bool(self._throttle) @@ -124,10 +124,10 @@ class Block(_Block, _GUIBlock): def port_controller_modify(self, direction): """ Change the port controller. - + Args: direction: +1 or -1 - + Returns: true for change """ @@ -161,7 +161,7 @@ class Block(_Block, _GUIBlock): Split each import statement at newlines. Combine all import statments into a list. Filter empty imports. - + Returns: a list of import statements """ @@ -173,7 +173,7 @@ class Block(_Block, _GUIBlock): def get_callbacks(self): """ Get a list of function callbacks for this block. - + Returns: a list of strings """ |