[Python-checkins] r52688 - in python/trunk: Lib/lib-tk/Tkinter.py Misc/NEWS
martin.v.loewis
python-checkins at python.org
Thu Nov 9 12:27:33 CET 2006
Author: martin.v.loewis
Date: Thu Nov 9 12:27:32 2006
New Revision: 52688
Modified:
python/trunk/Lib/lib-tk/Tkinter.py
python/trunk/Misc/NEWS
Log:
Patch #1592250: Add elidge argument to Tkinter.Text.search.
Modified: python/trunk/Lib/lib-tk/Tkinter.py
==============================================================================
--- python/trunk/Lib/lib-tk/Tkinter.py (original)
+++ python/trunk/Lib/lib-tk/Tkinter.py Thu Nov 9 12:27:32 2006
@@ -3017,7 +3017,7 @@
self.tk.call(self._w, 'scan', 'dragto', x, y)
def search(self, pattern, index, stopindex=None,
forwards=None, backwards=None, exact=None,
- regexp=None, nocase=None, count=None):
+ regexp=None, nocase=None, count=None, elide=None):
"""Search PATTERN beginning from INDEX until STOPINDEX.
Return the index of the first character of a match or an empty string."""
args = [self._w, 'search']
@@ -3026,6 +3026,7 @@
if exact: args.append('-exact')
if regexp: args.append('-regexp')
if nocase: args.append('-nocase')
+ if elide: args.append('-elide')
if count: args.append('-count'); args.append(count)
if pattern[0] == '-': args.append('--')
args.append(pattern)
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Thu Nov 9 12:27:32 2006
@@ -96,6 +96,8 @@
Library
-------
+- Patch #1592250: Add elidge argument to Tkinter.Text.search.
+
- Patch #838546: Make terminal become controlling in pty.fork()
- Patch #1351744: Add askyesnocancel helper for tkMessageBox.
More information about the Python-checkins
mailing list