diff options
Diffstat (limited to 'grc/src/grc_gnuradio/wxgui/top_block_gui.py')
-rw-r--r-- | grc/src/grc_gnuradio/wxgui/top_block_gui.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/grc/src/grc_gnuradio/wxgui/top_block_gui.py b/grc/src/grc_gnuradio/wxgui/top_block_gui.py index fef9d18ce..f3305d7c5 100644 --- a/grc/src/grc_gnuradio/wxgui/top_block_gui.py +++ b/grc/src/grc_gnuradio/wxgui/top_block_gui.py @@ -21,10 +21,11 @@ import wx import sys, os from gnuradio import gr +from gnuradio.gr.pubsub import pubsub default_gui_size = (200, 100) -class top_block_gui(gr.top_block): +class top_block_gui(gr.top_block, pubsub): """gr top block with wx gui app and grid sizer.""" def __init__(self, title='', size=default_gui_size, icon=None): @@ -37,6 +38,7 @@ class top_block_gui(gr.top_block): """ #initialize gr.top_block.__init__(self) + pubsub.__init__(self) self._size = size #set the icon if icon and os.path.isfile(icon): self._icon = icon |