Skip to content

Commit 8b27bcb

Browse files
authored
Update __init__.py
1 parent efadc58 commit 8b27bcb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Lib/tkinter/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4026,9 +4026,7 @@ def scan_dragto(self, x, y):
40264026
scan_mark."""
40274027
self.tk.call(self._w, 'scan', 'dragto', x, y)
40284028

4029-
def search(self, pattern, index, stopindex=None,
4030-
forwards=None, backwards=None, exact=None,
4031-
regexp=None, nocase=None, count=None, elide=None):
4029+
def search(self, pattern, index, stopindex=None, forwards=None, backwards=None, exact=None, regexp=None, nocase=None, count=None, elide=None, nolinestop=None, all=None, overlap=None, strictlimits=None):
40324030
"""Search PATTERN beginning from INDEX until STOPINDEX.
40334031
Return the index of the first character of a match or an
40344032
empty string."""
@@ -4040,12 +4038,18 @@ def search(self, pattern, index, stopindex=None,
40404038
if nocase: args.append('-nocase')
40414039
if elide: args.append('-elide')
40424040
if count: args.append('-count'); args.append(count)
4041+
if nolinestop: args.append('-nolinestop')
4042+
if all: args.append('-all')
4043+
if overlap: args.append('-overlap')
4044+
if strictlimits: args.append('-strictlimits')
40434045
if pattern and pattern[0] == '-': args.append('--')
40444046
args.append(pattern)
40454047
args.append(index)
40464048
if stopindex: args.append(stopindex)
40474049
return str(self.tk.call(tuple(args)))
40484050

4051+
4052+
40494053
def see(self, index):
40504054
"""Scroll such that the character at INDEX is visible."""
40514055
self.tk.call(self._w, 'see', index)

0 commit comments

Comments
 (0)