diff options
author | jcorgan | 2007-10-22 17:13:50 +0000 |
---|---|---|
committer | jcorgan | 2007-10-22 17:13:50 +0000 |
commit | d50661511c78e489fdf54584c31639945fdd37f8 (patch) | |
tree | d206de5be718ba2a6525db538b4e02d01701c59c /gnuradio-core/src | |
parent | 62cc4591826f6cd5b8e9581ccddd4910eb598bf4 (diff) | |
download | gnuradio-d50661511c78e489fdf54584c31639945fdd37f8.tar.gz gnuradio-d50661511c78e489fdf54584c31639945fdd37f8.tar.bz2 gnuradio-d50661511c78e489fdf54584c31639945fdd37f8.zip |
Add methods in shim to allow derived class override in Python
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6669 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r-- | gnuradio-core/src/python/gnuradio/gr/top_block.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/top_block.py b/gnuradio-core/src/python/gnuradio/gr/top_block.py index 8bd4052c9..8f5754d65 100644 --- a/gnuradio-core/src/python/gnuradio/gr/top_block.py +++ b/gnuradio-core/src/python/gnuradio/gr/top_block.py @@ -41,6 +41,12 @@ class top_block(object): 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) |