summaryrefslogtreecommitdiff
path: root/gr-wxgui/grc/wxgui_termsink.xml
diff options
context:
space:
mode:
authorJosh Blum2011-01-21 15:20:45 -0800
committerJosh Blum2011-03-01 17:02:06 -0800
commitf0537a7da4571bd6aaab273a0588eaef04121648 (patch)
tree6b894b17c0085cb287c9f5f0b0a7c7b679f46b58 /gr-wxgui/grc/wxgui_termsink.xml
parent2c263e9640f2812b241d724286aaa1f13c57935f (diff)
downloadgnuradio-f0537a7da4571bd6aaab273a0588eaef04121648.tar.gz
gnuradio-f0537a7da4571bd6aaab273a0588eaef04121648.tar.bz2
gnuradio-f0537a7da4571bd6aaab273a0588eaef04121648.zip
grc: moved wxgui blocks and python into gr-wxgui/grc
Prefixed wxgui blocks with WX GUI in the block names. Added category to wxgui variables blocks (not in the main block tree.xml)
Diffstat (limited to 'gr-wxgui/grc/wxgui_termsink.xml')
-rw-r--r--gr-wxgui/grc/wxgui_termsink.xml55
1 files changed, 55 insertions, 0 deletions
diff --git a/gr-wxgui/grc/wxgui_termsink.xml b/gr-wxgui/grc/wxgui_termsink.xml
new file mode 100644
index 000000000..ae15b98a6
--- /dev/null
+++ b/gr-wxgui/grc/wxgui_termsink.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Terminal window
+###################################################
+ -->
+<block>
+ <name>WX GUI 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=$(parent).GetWin(),
+#if $win_size()
+ size=$win_size,
+#end if
+ msgq=$(id)_msgq_in,
+)
+#if not $grid_pos()
+$(parent).Add(self.$(id))
+#else
+$(parent).GridAdd(self.$(id), $(', '.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>