Author: jcorgan
Date: 2007-10-22 11:13:50 -0600 (Mon, 22 Oct 2007)
New Revision: 6669

Modified:
   gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/top_block.py
Log:
Add methods in shim to allow derived class override in Python

Modified: gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/top_block.py
===================================================================
--- gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/top_block.py    
2007-10-22 06:38:28 UTC (rev 6668)
+++ gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/top_block.py    
2007-10-22 17:13:50 UTC (rev 6669)
@@ -41,6 +41,12 @@
     def __getattr__(self, name):
        return getattr(self._tb, name)
 
+    def start(self):
+       self._tb.start()
+       
+    def stop(self):
+       self._tb.stop()
+
     def run(self):
         top_block_run_unlocked(self._tb)
 



_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio

Reply via email to