Hi,
This issue has been resolved since version 2.52a. I believe the latest version will be released sometime next week. When you do have the latest version you can do the following:
Code:
class VizServer(viz.EventClass):
def __init__(self):
viz.EventClass.__init__(self)
self.clientName = None
self.clientMailbox = None
def networkCallback(self, message):
print "Message content : ", message[2:]
def connect(self, theClientName):
self.clientName = theClientName
self.clientMailbox = viz.add(viz.NETWORK, self.clientName)
if not self.clientMailbox.valid():
print __name__, ": EXCEPTION : Connection failed"
self.callback(viz.NETWORK_EVENT, self.networkCallback)
Note that I changed your class to inherit from viz.EventClass.
Also, when posting snippets of code, you can use the following tag: [code ] insert code [/code ]