def open_main_board(self): newWindow = MainWindow(self.master, self) self.board.addObserver(newWindow) newWindow.boardStateChanged(self.board)