MCPcopy Index your code
hub / github.com/RustPython/RustPython / clipboard_append

Method clipboard_append

Lib/tkinter/__init__.py:1031–1039  ·  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

1029 self.tk.call(('clipboard', 'clear') + self._options(kw))
1030
1031 def clipboard_append(self, string, **kw):
1032 """Append STRING to the Tk clipboard.
1033
1034 A widget specified at the optional displayof keyword
1035 argument specifies the target display. The clipboard
1036 can be retrieved with selection_get."""
1037 if 'displayof' not in kw: kw['displayof'] = self._w
1038 self.tk.call(('clipboard', 'append') + self._options(kw)
1039 + ('--', string))
1040 # XXX grab current w/o window argument
1041
1042 def grab_current(self):

Callers

nothing calls this directly

Calls 2

_optionsMethod · 0.95
callMethod · 0.45

Tested by

no test coverage detected