aboutsummaryrefslogtreecommitdiffstats
path: root/src/gr-fadingui/python
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-11-17 16:52:29 +0100
committerNao Pross <np@0hm.ch>2021-11-17 16:52:29 +0100
commit849b3caebb306e59ccd12d0ca0d5c471c27d54d0 (patch)
tree47a53f3896252a56fc736bff7e5a3718d81b368b /src/gr-fadingui/python
parentSmall cosmetic changes in doc (diff)
downloadFading-849b3caebb306e59ccd12d0ca0d5c471c27d54d0.tar.gz
Fading-849b3caebb306e59ccd12d0ca0d5c471c27d54d0.zip
Replace GNURadio scripts with network code
Diffstat (limited to 'src/gr-fadingui/python')
-rw-r--r--src/gr-fadingui/python/dearpygui_sink.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gr-fadingui/python/dearpygui_sink.py b/src/gr-fadingui/python/dearpygui_sink.py
index 353f2d9..bca780d 100644
--- a/src/gr-fadingui/python/dearpygui_sink.py
+++ b/src/gr-fadingui/python/dearpygui_sink.py
@@ -27,7 +27,7 @@ from gnuradio import gr
class dearpygui_sink(gr.sync_block):
"""
- docstring for block dearpygui_sink
+ DearPyGUI Sink
"""
def __init__(self, sock_addr, ui_element_id):
gr.sync_block.__init__(self,
@@ -40,7 +40,7 @@ class dearpygui_sink(gr.sync_block):
self.srv = urlparse(sock_addr)
def send(self, value):
- data = bytes(repr(value), "ascii")
+ data = value.tobytes()
sent = self.socket.sendto(data, (self.srv.hostname, self.srv.port))
return len(data) == sent