MCPcopy Index your code
hub / github.com/python/cpython / clipboard_append

Method clipboard_append

Lib/tkinter/__init__.py:1049–1057  ·  view source on GitHub ↗

Append STRING to the Tk clipboard. A widget specified at the optional displayof keyword argument specifies the target display. The clipboard can be retrieved with selection_get.

(self, string, **kw)

Source from the content-addressed store, hash-verified

1047 self.tk.call(('clipboard', 'clear') + self._options(kw))
1048
1049 def clipboard_append(self, string, **kw):
1050 """Append STRING to the Tk clipboard.
1051
1052 A widget specified at the optional displayof keyword
1053 argument specifies the target display. The clipboard
1054 can be retrieved with selection_get."""
1055 if 'displayof' not in kw: kw['displayof'] = self._w
1056 self.tk.call(('clipboard', 'append') + self._options(kw)
1057 + ('--', string))
1058 # XXX grab current w/o window argument
1059
1060 def grab_current(self):

Callers 5

test_clipboardMethod · 0.80
test_clipboard_astralMethod · 0.80
copyMethod · 0.80
setUpClassMethod · 0.80

Calls 2

_optionsMethod · 0.95
callMethod · 0.45

Tested by 3

test_clipboardMethod · 0.64
test_clipboard_astralMethod · 0.64
setUpClassMethod · 0.64