3 ###################################################
5 ## options for window size,
6 ## and flow graph building.
7 ###################################################
12 <import>from gnuradio import gr
13 #if $generate_options() == 'wx_gui'
14 from grc_gnuradio import wxgui as grc_wxgui
17 #if $generate_options() != 'hb'
18 from optparse import OptionParser
19 from gnuradio.eng_option import eng_option
23 <callback>if $run: self.start()
24 else: self.stop(); self.wait()</callback>
30 <hide>#if $title() then 'none' else 'part'#</hide>
37 <hide>#if $author() then 'none' else 'part'#</hide>
40 <name>Description</name>
41 <key>description</key>
44 <hide>#if $description() then 'none' else 'part'#</hide>
47 <name>Window Size</name>
48 <key>window_size</key>
49 <value>1280, 1024</value>
50 <type>int_vector</type>
54 <name>Generate Options</name>
55 <key>generate_options</key>
58 <hide>#if $generate_options() == 'wx_gui' then 'part' else 'none'#</hide>
68 <name>Hier Block</name>
77 <hide>#if $generate_options() == 'hb' then 'none' else 'all'#</hide>
84 <hide>#if $generate_options() == 'wx_gui'
85 #if str($run) == 'True'
94 <name>Autostart</name>
103 <name>Realtime Scheduling</name>
104 <key>realtime_scheduling</key>
107 <hide>#if $generate_options() == 'hb'
109 #elif $realtime_scheduling()
123 <check>len($window_size) == 2</check>
124 <check>300 <= $(window_size)[0] <= 4096</check>
125 <check>300 <= $(window_size)[1] <= 4096</check>
127 The options block sets special parameters for the flow graph. \
128 Only one option block is allowed per flow graph.
130 Title, author, and description parameters are for identification purposes.
132 The window size controls the dimensions of the flow graph editor. \
133 The window size (width, height) must be between (300, 300) and (4096, 4096).
135 The generate options controls the type of code generated. \
136 Non-graphical flow graphs should avoid using graphical sinks or graphical variable controls.
138 In a graphical application, \
139 run can be controlled by a variable to start and stop the flowgraph at runtime.
141 The id of this block determines the name of the generated file and the name of the class. \
142 For example, an id of my_block will generate the file my_block.py and class my_block(gr....
144 The category parameter determines the placement of the block in the block selection window. \
145 The category only applies when creating hier blocks. \
146 To put hier blocks into the root category, enter / for the category.