def __init__(self, host, port): self.Connect((host, port)) self.players = {} Whiteboard.__init__(self)
def __init__(self, host, port): self.Connect((host, port)) self.players = {} Whiteboard.__init__(self)
def __init__(self, host, port): self.Connect((host, port)) # храним в словаре всех игроков, которые подключены: self.players = {} # вызываем конструктор окна приложения: Whiteboard.__init__(self)
def __init__(self): self.Connect(('localhost', 31425)) self.players = {} Whiteboard.__init__(self)