]> granicus.if.org Git - python/commitdiff
Clarifying Entry.selection_present's docstring.
authorGuilherme Polo <ggpolo@gmail.com>
Fri, 14 Aug 2009 14:43:43 +0000 (14:43 +0000)
committerGuilherme Polo <ggpolo@gmail.com>
Fri, 14 Aug 2009 14:43:43 +0000 (14:43 +0000)
Lib/lib-tk/Tkinter.py

index 11ef4417a8d7d1fb81b248412c627687d6a28fd2..46b278133324603898791e15d95567be85823c1c 100644 (file)
@@ -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