summaryrefslogtreecommitdiff
path: root/grc/blocks/wxgui_termsink.xml
blob: 985d89b58e1e1301d15a2f19cb4f9375741094e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0"?>
<!--
###################################################
##Terminal window
###################################################
 -->
<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=$(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>