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

Method clipboard_clear

Lib/tkinter/__init__.py:1041–1047  ·  view source on GitHub ↗

Clear the data in the Tk clipboard. A widget specified for the optional displayof keyword argument specifies the target display.

(self, **kw)

Source from the content-addressed store, hash-verified

1039 return self.tk.call(('clipboard', 'get') + self._options(kw))
1040
1041 def clipboard_clear(self, **kw):
1042 """Clear the data in the Tk clipboard.
1043
1044 A widget specified for the optional displayof keyword
1045 argument specifies the target display."""
1046 if 'displayof' not in kw: kw['displayof'] = self._w
1047 self.tk.call(('clipboard', 'clear') + self._options(kw))
1048
1049 def clipboard_append(self, string, **kw):
1050 """Append STRING to the Tk clipboard.

Callers 6

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

Calls 2

_optionsMethod · 0.95
callMethod · 0.45

Tested by 4

test_clipboardMethod · 0.64
test_clipboard_astralMethod · 0.64
setUpClassMethod · 0.64
tearDownClassMethod · 0.64