def set_piece_at_square(self, x, y, piece, colour):
self.chessboard.set_piece_at(chess.square(x, y), chess.Piece(piece, colour))
GLib.idle_add(gv.gui.get_event_box(x, y).queue_draw)
# called from gui.py to remove piece during promotion dialog
评论列表
文章目录