diff options
author | Tom Rondeau | 2011-03-15 13:46:02 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-03-15 13:46:02 -0400 |
commit | 338b01e7b5ecad7e324098a2671d3fa650be035e (patch) | |
tree | 247b61f2fbfdadc6ce4f39ad2f637a22cd3163ae /gr-wxgui/grc/notebook.xml | |
parent | 1ecc511ad673f37498ebc29147c776ca9b4b6490 (diff) | |
parent | b4bd3e47189932b42ce821bb7076fce811b3e3eb (diff) | |
download | gnuradio-338b01e7b5ecad7e324098a2671d3fa650be035e.tar.gz gnuradio-338b01e7b5ecad7e324098a2671d3fa650be035e.tar.bz2 gnuradio-338b01e7b5ecad7e324098a2671d3fa650be035e.zip |
Merge branch 'next' of gnuradio.org:gnuradio into next
Diffstat (limited to 'gr-wxgui/grc/notebook.xml')
-rw-r--r-- | gr-wxgui/grc/notebook.xml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/gr-wxgui/grc/notebook.xml b/gr-wxgui/grc/notebook.xml new file mode 100644 index 000000000..bb3de51cb --- /dev/null +++ b/gr-wxgui/grc/notebook.xml @@ -0,0 +1,70 @@ +<?xml version="1.0"?> +<!-- +################################################### +##WX GUI Notebook +################################################### + --> +<block> + <name>WX GUI Notebook</name> + <key>notebook</key> + <category>WX GUI Widgets</category> + <import>from grc_gnuradio import wxgui as grc_wxgui</import> + <make>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self' +self.$(id) = wx.Notebook($(parent).GetWin(), style=$style) +#for $label in $labels() +self.$(id).AddPage(grc_wxgui.Panel(self.$(id)), "$label") +#end for +#if not $grid_pos() +$(parent).Add(self.$(id)) +#else +$(parent).GridAdd(self.$(id), $(', '.join(map(str, $grid_pos())))) +#end if</make> + <param> + <name>Tab Orientation</name> + <key>style</key> + <value>wx.NB_TOP</value> + <type>enum</type> + <option> + <name>Top</name> + <key>wx.NB_TOP</key> + </option> + <option> + <name>Right</name> + <key>wx.NB_RIGHT</key> + </option> + <option> + <name>Bottom</name> + <key>wx.NB_BOTTOM</key> + </option> + <option> + <name>Left</name> + <key>wx.NB_LEFT</key> + </option> + </param> + <param> + <name>Labels</name> + <key>labels</key> + <value>['tab1', 'tab2', 'tab3']</value> + <type>raw</type> + </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>isinstance($labels, (list, tuple))</check> + <check>all(map(lambda x: isinstance(x, str), $labels))</check> + <check>len($labels) > 0</check> + <doc> +Use the Grid Position (row, column, row span, column span) to position the graphical element in the window. + +Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page. + </doc> +</block> |