Example #1
0
 def copy_fen(self):
     output = StringIO()
     clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
     clipboard.set_text(
         fen.save(output, self.gamemodel, self.board.view.shown), -1)
Example #2
0
 def copy_fen(self):
     output = StringIO()
     clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
     clipboard.set_text(
         fen.save(output, self.gamemodel, self.board.view.shown), -1)