I subscribe some nodes and I want to use the value in other thread.
How I deal with the subscripted data?
Please show the code as below.
class SubHandler(object):
def datachange_notification(self, node, val, data):
dict[node] = val
Thread_Status.node_value = val
def event_notification(self, event):
print("Python: New event", event)
class Thread_Status(QThread):
def init(self, parent):
super().init(parent)
self.parent = parent
self.node = []
self.node_value = []
I subscribe some nodes and I want to use the value in other thread.
How I deal with the subscripted data?
Please show the code as below.
class SubHandler(object):
class Thread_Status(QThread):
def init(self, parent):
super().init(parent)
self.parent = parent
self.node = []
self.node_value = []