Exemplo n.º 1
0
 def _publish(self, msg):
     WxPublisher().sendMessage(msg.topic, msg)
Exemplo n.º 2
0
 def __init__(self, listener, topic):
     self.listener = listener
     self.topic = self._get_topic(topic)
     WxPublisher().subscribe(self, self.topic)
Exemplo n.º 3
0
 def unsubscribe(self):
     WxPublisher().unsubscribe(self, self.topic)
Exemplo n.º 4
0
 def publish(self, topic, data):
     WxPublisher().sendMessage(topic, data)