def NODEINFO(self, event): """ Reception of a NODEINFO event from the node. Update the information related to my node """ parser = EventParser(event) info = parser.createEntity() wxEvt = solipsis.navigator.basic.basicFrame.NodeInfoEvent(nodeinfo=info) wx.PostEvent(self.window, wxEvt)
def NEW(self, event): """ Reception of a NEW event from the node. Send a NewPeerEvent to the wxEventHandler """ parser = EventParser(event) info = parser.createEntity() wxEvt = solipsis.navigator.basic.basicFrame.NewPeerEvent(peerinfo=info) wx.PostEvent(self.window, wxEvt)