diff options
author | Johnathan Corgan | 2009-10-21 17:11:03 -0700 |
---|---|---|
committer | Johnathan Corgan | 2009-10-29 07:00:35 -0700 |
commit | ab901e7d4cb6e5e8b1b46dac8a7af74acf72cb8c (patch) | |
tree | 3da5ab0f9a121b476789f4985d09d2d39b34320d /grc | |
parent | 00613b260a36923509eab1811256815269dcd99c (diff) | |
download | gnuradio-ab901e7d4cb6e5e8b1b46dac8a7af74acf72cb8c.tar.gz gnuradio-ab901e7d4cb6e5e8b1b46dac8a7af74acf72cb8c.tar.bz2 gnuradio-ab901e7d4cb6e5e8b1b46dac8a7af74acf72cb8c.zip |
Basic terminal window that takes raw text on input msgq and appends it
Works, but needs "--line-buffered" mode for GR buffering between blocks
Diffstat (limited to 'grc')
-rw-r--r-- | grc/blocks/wxgui_termsink.xml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/grc/blocks/wxgui_termsink.xml b/grc/blocks/wxgui_termsink.xml index e1d52cd17..fce7577de 100644 --- a/grc/blocks/wxgui_termsink.xml +++ b/grc/blocks/wxgui_termsink.xml @@ -7,26 +7,49 @@ <block> <name>Terminal Sink</name> <key>wxgui_termsink</key> + <import>from gnuradio.wxgui import termsink</import> + <make>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self' termsink.termsink( - $(parent).GetWin(), + parent=$(parent).GetWin(), +#if $win_size() + size=$win_size, +#end if + msgq=$(id)_msgq, ) #if not $grid_pos() $(parent).Add(self.$(id).win) #else $(parent).GridAdd(self.$(id).win, $(', '.join(map(str, $grid_pos())))) #end if</make> + + <param> + <name>Window Size</name> + <key>win_size</key> + <value></value> + <type>int_vector</type> + <hide>#if $win_size() then 'none' else 'part'#</hide> + </param> <param> <name>Grid Position</name> <key>grid_pos</key> <value></value> <type>grid_pos</type> </param> + <param> <name>Notebook</name> <key>notebook</key> <value></value> <type>notebook</type> </param> + + <check>not $win_size or len($win_size) == 2</check> + + <sink> + <name>in</name> + <type>msg</type> + </sink> + </block> |