예제 #1
0
    def __init__(self):
        self.GAME_MODE = None  # 's'表示服务器 or 'c'表示客户端
        self.player = GameBoard.Player()
        self._server_addr = None
        self.game_round = 0

        self._RECV_RESULT_FINISHED = Event()
        # GUI布局
        self.root = tk.Tk()
        self.start_frame = None
        self.input_frame = None  # type: tk2.InputFrame
        self.game_frame = None
        self._goto_start()