diff options
author | Jose Quaresma | 2012-05-03 12:50:39 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-05-03 12:50:39 -0400 |
commit | f4da804ea3dde5e376e520769a93f80545670208 (patch) | |
tree | 489751663f088de914906e925c4d4937f3617758 /gr-wxgui | |
parent | 05b2c02f17d790df4896fcfb85c4020748f25747 (diff) | |
download | gnuradio-f4da804ea3dde5e376e520769a93f80545670208.tar.gz gnuradio-f4da804ea3dde5e376e520769a93f80545670208.tar.bz2 gnuradio-f4da804ea3dde5e376e520769a93f80545670208.zip |
GRC: patch to allow users to specify max_noutput_items in GRC options block.
Diffstat (limited to 'gr-wxgui')
-rw-r--r-- | gr-wxgui/grc/top_block_gui.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gr-wxgui/grc/top_block_gui.py b/gr-wxgui/grc/top_block_gui.py index 333ccf1c1..479f55a30 100644 --- a/gr-wxgui/grc/top_block_gui.py +++ b/gr-wxgui/grc/top_block_gui.py @@ -48,7 +48,7 @@ class top_block_gui(gr.top_block): def SetIcon(self, *args, **kwargs): self._frame.SetIcon(*args, **kwargs) - def Run(self, start=True): + def Run(self, start=True, max_nouts=0): """ Setup the wx gui elements. Start the gr top block. @@ -69,6 +69,10 @@ class top_block_gui(gr.top_block): self._frame.Show(True) self._app.SetTopWindow(self._frame) #start flow graph - if start: self.start() + if start: + if max_nouts != 0: + self.start(max_nouts) + else: + self.start() #blocking main loop self._app.MainLoop() |