From: Guilherme Polo Date: Fri, 14 Aug 2009 14:43:43 +0000 (+0000) Subject: Clarifying Entry.selection_present's docstring. X-Git-Tag: v2.7a1~662 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75e1f9985aee7b52812140776120e82c103e7e9a;p=python Clarifying Entry.selection_present's docstring. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 11ef4417a8..46b2781333 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -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