3 ###################################################
5 ###################################################
10 <import>from grc_gnuradio import wxgui as grc_wxgui</import>
11 <make>#set $parent = $notebook() and 'self.%s.GetPage(%s)'%$notebook() or 'self'
12 self.$(id) = wx.Notebook($(parent).GetWin(), style=$style)
13 #for $label in $labels()
14 self.$(id).AddPage(grc_wxgui.Panel(self.$(id)), "$label")
17 $(parent).Add(self.$(id))
19 $(parent).GridAdd(self.$(id), $(', '.join(map(str, $grid_pos()))))
22 <name>Tab Orientation</name>
24 <value>wx.NB_TOP</value>
32 <key>wx.NB_RIGHT</key>
36 <key>wx.NB_BOTTOM</key>
46 <value>['tab1', 'tab2', 'tab3']</value>
50 <name>Grid Position</name>
61 <check>isinstance($labels, (list, tuple))</check>
62 <check>all(map(lambda x: isinstance(x, str), $labels))</check>
63 <check>len($labels) > 0</check>
65 Use the Grid Position (row, column, row span, column span) to position the graphical element in the window.
67 Use the Notebook Param (notebook-id, page-index) to place the graphical element inside of a notebook page.