[Python-checkins] r74449 - python/trunk/Lib/lib-tk/Tkinter.py

guilherme.polo python-checkins at python.org
Fri Aug 14 16:43:44 CEST 2009


Author: guilherme.polo
Date: Fri Aug 14 16:43:43 2009
New Revision: 74449
Log:
Clarifying Entry.selection_present's docstring.
Modified:
 python/trunk/Lib/lib-tk/Tkinter.py
Modified: python/trunk/Lib/lib-tk/Tkinter.py
==============================================================================
--- python/trunk/Lib/lib-tk/Tkinter.py	(original)
+++ python/trunk/Lib/lib-tk/Tkinter.py	Fri Aug 14 16:43:43 2009
@@ -2420,7 +2420,8 @@
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /