code: def fill_clipboard(self, contents):
          
          Gdk.threads_enter()
          if Gtk.get_major_version() >= 3:
              self.clipBoard.set_text(contents, -1)
          else:
              self.clipBoard.set_text(contents)
          Gdk.threads_leave()
docs: Copy text into the clipboard
          
          Usage: C{clipboard.fill_clipboard(contents)}
          
          @param contents: string to be placed in the selection