Commit 75e1f998 authored by Guilherme Polo's avatar Guilherme Polo

Clarifying Entry.selection_present's docstring.

parent e45f0170
......@@ -2420,7 +2420,8 @@ class Entry(Widget, XView):
self.tk.call(self._w, 'selection', 'from', index)
select_from = selection_from
def selection_present(self):
"""Return whether the widget has the selection."""
"""Return True if there are characters selected in the entry, False
otherwise."""
return self.tk.getboolean(
self.tk.call(self._w, 'selection', 'present'))
select_present = selection_present
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment