diff options
Diffstat (limited to 'gr-qtgui/python/qtgui/msgpushbutton.py')
-rw-r--r-- | gr-qtgui/python/qtgui/msgpushbutton.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-qtgui/python/qtgui/msgpushbutton.py b/gr-qtgui/python/qtgui/msgpushbutton.py index bee142cac7..a3ecaf06c5 100644 --- a/gr-qtgui/python/qtgui/msgpushbutton.py +++ b/gr-qtgui/python/qtgui/msgpushbutton.py @@ -47,7 +47,7 @@ class MsgPushButton(gr.sync_block, Qt.QPushButton): pmt.cons(pmt.intern(self.msgName), pmt.from_long(self.msgValue))) elif type(self.msgValue) == float: self.message_port_pub(pmt.intern("pressed"), - pmt.cons(pmt.intern(self.msgName), pmt.from_float(self.msgValue))) + pmt.cons(pmt.intern(self.msgName), pmt.from_double(self.msgValue))) elif type(self.msgValue) == str: self.message_port_pub(pmt.intern("pressed"), pmt.cons(pmt.intern(self.msgName), pmt.intern(self.msgValue))) |