mirror of
https://github.com/python/cpython.git
synced 2025-11-08 17:41:42 +00:00
Patch #1592250: Add elidge argument to Tkinter.Text.search.
This commit is contained in:
parent
b2bba739c5
commit
038cad7ee4
2 changed files with 4 additions and 1 deletions
|
|
@ -3017,7 +3017,7 @@ def scan_dragto(self, x, y):
|
||||||
self.tk.call(self._w, 'scan', 'dragto', x, y)
|
self.tk.call(self._w, 'scan', 'dragto', x, y)
|
||||||
def search(self, pattern, index, stopindex=None,
|
def search(self, pattern, index, stopindex=None,
|
||||||
forwards=None, backwards=None, exact=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.
|
"""Search PATTERN beginning from INDEX until STOPINDEX.
|
||||||
Return the index of the first character of a match or an empty string."""
|
Return the index of the first character of a match or an empty string."""
|
||||||
args = [self._w, 'search']
|
args = [self._w, 'search']
|
||||||
|
|
@ -3026,6 +3026,7 @@ def search(self, pattern, index, stopindex=None,
|
||||||
if exact: args.append('-exact')
|
if exact: args.append('-exact')
|
||||||
if regexp: args.append('-regexp')
|
if regexp: args.append('-regexp')
|
||||||
if nocase: args.append('-nocase')
|
if nocase: args.append('-nocase')
|
||||||
|
if elide: args.append('-elide')
|
||||||
if count: args.append('-count'); args.append(count)
|
if count: args.append('-count'); args.append(count)
|
||||||
if pattern[0] == '-': args.append('--')
|
if pattern[0] == '-': args.append('--')
|
||||||
args.append(pattern)
|
args.append(pattern)
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,8 @@ Core and builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Patch #1592250: Add elidge argument to Tkinter.Text.search.
|
||||||
|
|
||||||
- Patch #838546: Make terminal become controlling in pty.fork()
|
- Patch #838546: Make terminal become controlling in pty.fork()
|
||||||
|
|
||||||
- Patch #1351744: Add askyesnocancel helper for tkMessageBox.
|
- Patch #1351744: Add askyesnocancel helper for tkMessageBox.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue