]> granicus.if.org Git - python/commitdiff
Patch #1592250: Add elidge argument to Tkinter.Text.search.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 9 Nov 2006 11:27:32 +0000 (11:27 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 9 Nov 2006 11:27:32 +0000 (11:27 +0000)
Lib/lib-tk/Tkinter.py
Misc/NEWS

index 630286f7df3ccc222a99bdceb3c7919b8a751544..f3f99f4121ed9a297f31359417bd1e13fa4efe45 100644 (file)
@@ -3017,7 +3017,7 @@ class Text(Widget):
         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 @@ class Text(Widget):
         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)
index 9f6d782e24061fa6ff143e75f6ee5b2d8bc563f8..8b155eda4f02f9cc1b46aec41ca59aee179b933f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -96,6 +96,8 @@ Core and builtins
 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.