Widget.getPrimaryClipboard

gdk.clipboard.Clipboard getPrimaryClipboard()

Gets the primary clipboard of widget.

This is a utility function to get the primary clipboard object for the [gdk.display.Display] that widget is using.

Note that this function always works, even when widget is not realized yet.

Returns

the appropriate clipboard object