MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / clipboard_get

Function clipboard_get

PySimpleGUI/PySimpleGUI.py:20307–20321  ·  view source on GitHub ↗

Gets the clipboard current value. :return: The current value of the clipboard :rtype: (str)

()

Source from the content-addressed store, hash-verified

20305
20306
20307def clipboard_get():
20308 """
20309 Gets the clipboard current value.
20310
20311 :return: The current value of the clipboard
20312 :rtype: (str)
20313 """
20314 root = _get_hidden_master_root()
20315
20316 try:
20317 value = root.clipboard_get()
20318 except:
20319 value = ''
20320 root.update()
20321 return value
20322
20323
20324# MM"""""""`YM

Callers

nothing calls this directly

Calls 2

_get_hidden_master_rootFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected