summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilherme Polo <ggpolo@gmail.com>2009-08-14 14:43:43 (GMT)
committerGuilherme Polo <ggpolo@gmail.com>2009-08-14 14:43:43 (GMT)
commit75e1f9985aee7b52812140776120e82c103e7e9a (patch)
tree4616017eeac09612937dc546413eb1ddb1837ca8
parente45f017023a30dc3bce7faa35b71705a7a385b73 (diff)
downloadcpython-75e1f9985aee7b52812140776120e82c103e7e9a.zip
cpython-75e1f9985aee7b52812140776120e82c103e7e9a.tar.gz
cpython-75e1f9985aee7b52812140776120e82c103e7e9a.tar.bz2
Clarifying Entry.selection_present's docstring.
-rw-r--r--Lib/lib-tk/Tkinter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 11ef441..46b2781 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