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