summaryrefslogtreecommitdiff
path: root/gr-qtgui/grc/qtgui_text_box.xml
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/grc/qtgui_text_box.xml')
-rw-r--r--gr-qtgui/grc/qtgui_text_box.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-qtgui/grc/qtgui_text_box.xml b/gr-qtgui/grc/qtgui_text_box.xml
index 4fd961f55..0d7fe36ee 100644
--- a/gr-qtgui/grc/qtgui_text_box.xml
+++ b/gr-qtgui/grc/qtgui_text_box.xml
@@ -13,11 +13,10 @@
<var_make>self.$(id) = $(id) = $value</var_make>
<make>#set $win = 'self._%s_tool_bar'%$id
$win = Qt.QToolBar(self)
-#if $label()
-$(win).addWidget(Qt.QLabel($label+" ", None))
-#else
-$(win).addWidget(Qt.QLabel("$id ", None))
+#if not $label()
+ #set $label = '"%s"'%$id
#end if
+$(win).addWidget(Qt.QLabel($label+" ", None))
self._$(id)_line_edit = Qt.QLineEdit(str(self.$id))
self._$(id)_tool_bar.addWidget(self._$(id)_line_edit)
self._$(id)_line_edit.returnPressed.connect(
@@ -41,6 +40,7 @@ $(gui_hint()($win))</make>
<option><name>Float</name><key>real</key><opt>conv:float</opt></option>
<option><name>Integer</name><key>int</key><opt>conv:int</opt></option>
<option><name>String</name><key>string</key><opt>conv:str</opt></option>
+ <option><name>Boolean</name><key>bool</key><opt>conv:bool</opt></option>
<option><name>Any</name><key>raw</key><opt>conv:eval</opt></option>
</param>
<param>