diff options
author | Tim O'Shea <tim.oshea753@gmail.com> | 2013-11-07 01:09:15 -0500 |
---|---|---|
committer | Tim O'Shea <tim.oshea753@gmail.com> | 2013-11-07 01:10:46 -0500 |
commit | 173b9fc9785cc2f8d11bbd965ca56e05e4e4e3e0 (patch) | |
tree | 0dcde0301e8a9a37326d45fd2784cac08890a1e4 /grc/base/Block.py | |
parent | d9168b34dbc1aeeda7077ede8c9534fabb1e7518 (diff) |
grc: adding ability to manipulate set_max_output_buffer based on block properties (please use caution when using this, realize there are a number of other constraints that will ultimately lead to the chosen buffer size)
Diffstat (limited to 'grc/base/Block.py')
-rw-r--r-- | grc/base/Block.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py index 970cf516fe..668675c685 100644 --- a/grc/base/Block.py +++ b/grc/base/Block.py @@ -154,6 +154,16 @@ class Block(Element): 'value': '0' }) )) + self.get_params().append(self.get_parent().get_parent().Param( + block=self, + n=odict({'name': 'Max Output Buffer', + 'key': 'maxoutbuf', + 'type': 'int', + 'hide': 'part', + 'value': '0' + }) + )) + def back_ofthe_bus(self, portlist): portlist.sort(key=lambda a: a.get_type() == 'bus'); |