Lines Matching defs:selection

1009         """Clear the current X selection."""
1011 self.tk.call(('selection', 'clear') + self._options(kw))
1014 """Return the contents of the current X selection.
1016 A keyword parameter selection specifies the name of
1017 the selection and defaults to PRIMARY. A keyword
1026 return self.tk.call(('selection', 'get') + self._options(kw))
1029 return self.tk.call(('selection', 'get') + self._options(kw))
1033 selection owned by this widget is queried by another
1037 selection. The function will be called with the
1041 selection - name of the selection (default PRIMARY),
1042 type - type of the selection (e.g. STRING, FILE_NAME)."""
1044 self.tk.call(('selection', 'handle') + self._options(kw)
1048 """Become owner of X selection.
1050 A keyword parameter selection specifies the name of
1051 the selection (default PRIMARY)."""
1052 self.tk.call(('selection', 'own') +
1056 """Return owner of X selection.
1060 selection - name of the selection (default PRIMARY),
1061 type - type of the selection (e.g. STRING, FILE_NAME)."""
1063 name = self.tk.call(('selection', 'own') + self._options(kw))
3017 """Adjust the end of the selection near the cursor of an item TAGORID to index."""
3021 """Clear the selection if it is in this widget."""
3025 """Set the fixed end of a selection in item TAGORID to INDEX."""
3029 """Return the item which has the selection."""
3033 """Set the variable end of a selection in item TAGORID to INDEX."""
3135 """Adjust the end of the selection near the cursor to INDEX."""
3136 self.tk.call(self._w, 'selection', 'adjust', index)
3141 """Clear the selection if it is in this widget."""
3142 self.tk.call(self._w, 'selection', 'clear')
3147 """Set the fixed end of a selection to INDEX."""
3148 self.tk.call(self._w, 'selection', 'from', index)
3156 self.tk.call(self._w, 'selection', 'present'))
3161 """Set the selection from START to END (not included)."""
3162 self.tk.call(self._w, 'selection', 'range', start, end)
3167 """Set the variable end of a selection to INDEX."""
3168 self.tk.call(self._w, 'selection', 'to', index)
3285 """Set the fixed end oft the selection to INDEX."""
3286 self.tk.call(self._w, 'selection', 'anchor', index)
3291 """Clear the selection from FIRST to LAST (included)."""
3293 'selection', 'clear', first, last)
3298 """Return True if INDEX is part of the selection."""
3300 self._w, 'selection', 'includes', index))
3305 """Set the selection from FIRST to LAST (included) without
3307 self.tk.call(self._w, 'selection', 'set', first, last)
4347 def selection(self, *args):
4350 self.tk.call((self._w, 'selection') + args)) or ()
4353 """Locate the end of the selection nearest to the character
4356 Then adjust that end of the selection to be at index
4358 end of the selection is made the anchor point for future
4359 select to commands. If the selection isn't currently in
4360 the spinbox, then a new selection is created to include
4361 the characters between index and the most recent selection
4364 return self.selection("adjust", index)
4367 """Clear the selection
4369 If the selection isn't in this widget then the
4372 return self.selection("clear")
4380 return self.tk.call(self._w, 'selection', 'element', element)
4383 """Set the fixed end of a selection to INDEX."""
4384 self.selection('from', index)
4390 self.tk.call(self._w, 'selection', 'present'))
4393 """Set the selection from START to END (not included)."""
4394 self.selection('range', start, end)
4397 """Set the variable end of a selection to INDEX."""
4398 self.selection('to', index)