diff options
author | Guilherme Polo <ggpolo@gmail.com> | 2009-08-14 14:43:43 (GMT) |
---|---|---|
committer | Guilherme Polo <ggpolo@gmail.com> | 2009-08-14 14:43:43 (GMT) |
commit | 75e1f9985aee7b52812140776120e82c103e7e9a (patch) | |
tree | 4616017eeac09612937dc546413eb1ddb1837ca8 /Lib/lib-tk | |
parent | e45f017023a30dc3bce7faa35b71705a7a385b73 (diff) | |
download | cpython-75e1f9985aee7b52812140776120e82c103e7e9a.zip cpython-75e1f9985aee7b52812140776120e82c103e7e9a.tar.gz cpython-75e1f9985aee7b52812140776120e82c103e7e9a.tar.bz2 |
Clarifying Entry.selection_present's docstring.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 3 |
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 |