clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time.
Widget.getClipboard
gtk.clipboard.Clipboard getClipboard(gdk.atom.Atom selection) nothrowReturns the clipboard object for the given selection to be used with widget. widget must have a #GdkDisplay associated with it, so must be attached to a toplevel window.
Parameters
selection | a #GdkAtom which identifies the clipboard to use. GDK_SELECTION_CLIPBOARD gives the default clipboard. Another common value is GDK_SELECTION_PRIMARY, which gives the primary X selection. |
Returns
the appropriate clipboard object. If no