def copy_text_to_clipboard(text):
# get the clipboard
clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
# put the FEN data on the clipboard
clipboard.set_text(text, -1)
# make our data available to other applications
clipboard.store()
评论列表
文章目录