3 ###################################################
5 ## a gui check box form
6 ###################################################
9 <name>Variable Check Box</name>
10 <key>variable_check_box</key>
11 <import>from gnuradio.wxgui import forms</import>
12 <var_make>self.$(id) = $(id) = $value</var_make>
13 <make>self.$(id)_check_box = forms.check_box(
16 callback=self.set_$(id),
25 #set $grid_pos = $grid_pos()
27 self.Add(self.$(id)_check_box)
29 self.GridAdd(self.$(id)_check_box, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3])
31 <callback>self.set_$(id)($value)</callback>
32 <callback>self.$(id)_check_box.set_value($id)</callback>
38 <hide>#if $label() then 'none' else 'part'#</hide>
41 <name>Default Value</name>
59 <name>Grid Position</name>
64 <check>$value in ($true, $false)</check>
66 This block creates a variable with a check box form. \
67 Leave the label blank to use the variable id as the label.
69 A check box form can switch between two states; \
70 the default being True and False. \
71 Override True and False to use alternative states.
73 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.