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

Method copy

Lib/idlelib/squeezer.py:169–175  ·  view source on GitHub ↗

copy event handler Copy the original text to the clipboard.

(self, event=None)

Source from the content-addressed store, hash-verified

167 self.squeezer.expandingbuttons.remove(self)
168
169 def copy(self, event=None):
170 """copy event handler
171
172 Copy the original text to the clipboard.
173 """
174 self.clipboard_clear()
175 self.clipboard_append(self.s)
176
177 def view(self, event=None):
178 """view event handler

Callers 1

test_copyMethod · 0.95

Calls 2

clipboard_clearMethod · 0.80
clipboard_appendMethod · 0.80

Tested by 1

test_copyMethod · 0.76