diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-11-09 11:27:32 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-11-09 11:27:32 (GMT) |
commit | 038cad7ee439f1f056170b0c97144cbdb6df6e41 (patch) | |
tree | cc2d8acf7c48b323e3e50587cf9d1b425d0c1cb4 /Lib | |
parent | b2bba739c556a94837db4621d370401330d6be0c (diff) | |
download | cpython-038cad7ee439f1f056170b0c97144cbdb6df6e41.zip cpython-038cad7ee439f1f056170b0c97144cbdb6df6e41.tar.gz cpython-038cad7ee439f1f056170b0c97144cbdb6df6e41.tar.bz2 |
Patch #1592250: Add elidge argument to Tkinter.Text.search.
Diffstat (limited to 'Lib')
-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 630286f..f3f99f4 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -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) |