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

Method selection_own_get

Lib/tkinter/__init__.py:1168–1178  ·  view source on GitHub ↗

Return owner of X selection. The following keyword parameter can be provided: selection - name of the selection (default PRIMARY), type - type of the selection (e.g. STRING, FILE_NAME).

(self, **kw)

Source from the content-addressed store, hash-verified

1166 self._options(kw) + (self._w,))
1167
1168 def selection_own_get(self, **kw):
1169 """Return owner of X selection.
1170
1171 The following keyword parameter can
1172 be provided:
1173 selection - name of the selection (default PRIMARY),
1174 type - type of the selection (e.g. STRING, FILE_NAME)."""
1175 if 'displayof' not in kw: kw['displayof'] = self._w
1176 name = self.tk.call(('selection', 'own') + self._options(kw))
1177 if not name: return None
1178 return self._nametowidget(name)
1179
1180 def send(self, interp, cmd, *args):
1181 """Send Tcl command CMD to different interpreter INTERP to be executed."""

Callers

nothing calls this directly

Calls 2

_optionsMethod · 0.95
callMethod · 0.45

Tested by

no test coverage detected