def __init__(self, node, *args, **kwargs):
gtk.DrawingArea.__init__(self, *args, **kwargs)
self.node = node
self.timeoutID = gobject.timeout_add(5000, self.timeout)
self.comms = {}
self.incomingComms = {}
# poison the node with our GUI hooks
self.node._protocol.__gui = self
self.node._protocol.__realSendRPC = self.node._protocol.sendRPC
self.node._protocol.sendRPC = self.__guiSendRPC
self.node._protocol.__realDatagramReceived = self.node._protocol.datagramReceived
self.node._protocol.datagramReceived = self.__guiDatagramReceived
self.msgCounter = 0
self.printMsgCount = False
评论列表
文章目录