[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/03: qtgui: Fixed QT GUI Entry Widget eva
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/03: qtgui: Fixed QT GUI Entry Widget eval error when using type 'Any'. |
Date: |
Mon, 12 Jan 2015 16:58:57 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 66cdb3477d425abf39570d734de8b702850ed145
Author: Jonathon Pendlum <address@hidden>
Date: Wed Sep 10 15:58:51 2014 -0700
qtgui: Fixed QT GUI Entry Widget eval error when using type 'Any'.
---
gr-qtgui/grc/qtgui_entry.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gr-qtgui/grc/qtgui_entry.xml b/gr-qtgui/grc/qtgui_entry.xml
index 6de6330..cce2edb 100644
--- a/gr-qtgui/grc/qtgui_entry.xml
+++ b/gr-qtgui/grc/qtgui_entry.xml
@@ -20,7 +20,7 @@ $(win).addWidget(Qt.QLabel($label+": "))
self._$(id)_line_edit = Qt.QLineEdit(str(self.$id))
self._$(id)_tool_bar.addWidget(self._$(id)_line_edit)
self._$(id)_line_edit.returnPressed.connect(
- lambda:
self.set_$(id)($(type.conv)(self._$(id)_line_edit.text().toAscii())))
+ lambda:
self.set_$(id)($(type.conv)(str(self._$(id)_line_edit.text().toAscii()))))
$(gui_hint()($win))</make>
<callback>self.set_$(id)($value)</callback>
<callback>Qt.QMetaObject.invokeMethod(self._$(id)_line_edit, "setText",
Qt.Q_ARG("QString", $(type.str)($id)))</callback>