QT GUI Labelvariable_qtgui_labelQT GUI Widgetsfrom PyQt4 import Qtfrom gnuradio import eng_notationself.$(id) = $(id) = $value#set $win = 'self._%s_tool_bar'%$id
$win = Qt.QToolBar(self)
#if not $label()
#set $label = '"%s"'%$id
#end if
$(win).addWidget(Qt.QLabel($label+": "))
self._$(id)_label = Qt.QLabel(str(self.$id))
self._$(id)_tool_bar.addWidget(self._$(id)_label)
$(gui_hint()($win))self.set_$(id)($value)self._$(id)_label.setText($(type.str)($id))Labellabelstring#if $label() then 'none' else 'part'#TypetypeintenumpartDefault Valuevalue0$typeGUI Hintgui_hintgui_hintpart
This block creates a variable with a label widget for text. \
Leave the label blank to use the variable id as the label.
The GUI hint can be used to position the widget within the application. \
The hint is of the form [tab_id@tab_index]: [row, col, row_span, col_span]. \
Both the tab specification and the grid position are optional.