def __init__(self): host = raw_input('Please enter host>') #TODO: 2 or 1? if len(host) < 2: host = None gfxMgr = frontendSelect() self.gfxMgr = gfxMgr() self.netMgr = NetMgr(host) if self.netMgr.failed: print "Failed to connect to server. Are you sure one is running at %s on port %d?" % ( NetMgr.HOST, NetMgr.PORT) self.quit = False