def fill_clipboard(self, contents):
Gdk.threads_enter()<EOL>if Gtk.get_major_version() >= <NUM_LIT:3>:<EOL><INDENT>self.clipBoard.set_text(contents, -<NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>self.clipBoard.set_text(contents)<EOL><DEDENT>Gdk.threads_leave()<EOL>
Copy text into the clipboard

Usage: C{clipboard.fill_clipboard(contents)}

@param contents: string to be placed in the selection