Skip to content

Commit 2e32e4c

Browse files
committed
qtvcp -docs: update ZMQ code in code-snippets
1 parent 8a73362 commit 2e32e4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/gui/qtvcp-code-snippets.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ We assume the `ScreenOptions` widget is called `screen_options` in Qt Designer:
839839
########################
840840
# **** INITIALIZE **** #
841841
########################
842-
# widgets allows access to widgets from the QtVCP files
842+
# 'widgets' allows access to widgets from the QtVCP files
843843
# at this point the widgets and hal pins are not instantiated
844844
def __init__(self, halcomp,widgets,paths):
845845
# directly select ZMQ message sending
@@ -881,7 +881,7 @@ sock = context.socket(zmq.SUB)
881881
882882
# Define subscription and messages with topic to accept.
883883
topic = "" # all topics
884-
sock.setsockopt(zmq.SUBSCRIBE, topic)
884+
sock.setsockopt_string(zmq.SUBSCRIBE, topic)
885885
sock.connect("tcp://127.0.0.1:5690")
886886
887887
while True:

0 commit comments

Comments
 (0)