def __init__(self, window): BaseClient.__init__(self, True) self.window = window self.games = None self.player_id = None self.window.connect(self.window, SIGNAL("asyncReponse"), self.window.async_response.process) self.window.connect(self.window, SIGNAL("lostServer"), self.doLostServer)
def __init__(self, async_queue_size=5): BaseClient.__init__(self, True) self.async_responses = Queue(maxsize=async_queue_size)