klyn.gui.windows.Window.readFromClipboard
method

    public native readFromClipboard() as String

Description

Reads plain text from the operating-system clipboard.

The method returns an empty string when the clipboard does not currently expose textual content. Multiline widgets keep line separators intact; single-line widgets may normalize them before insertion.

Returns

Clipboard text, or an empty string when no text is available.

Example

    pasted = window.readFromClipboard()
    if pasted != "":
    print(pasted)