summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/__init__.py b/gnuradio-core/src/python/gnuradio/gr/__init__.py
index ee96f0182..768d88595 100644
--- a/gnuradio-core/src/python/gnuradio/gr/__init__.py
+++ b/gnuradio-core/src/python/gnuradio/gr/__init__.py
@@ -70,6 +70,14 @@ class top_block(gras.TopBlock):
def unlock(self):
self.commit()
+ def start(self, *args):
+ if args: self.global_config().maximum_output_items = args[0]
+ gras.TopBlock.start(self)
+
+ def run(self, *args):
+ if args: self.global_config().maximum_output_items = args[0]
+ gras.TopBlock.run(self)
+
class hier_block2(gras.HierBlock):
def __init__(self, name="Hier", in_sig=None, out_sig=None):
gras.HierBlock.__init__(self, name)