Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
038cad7e
Commit
038cad7e
authored
Nov 09, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1592250: Add elidge argument to Tkinter.Text.search.
parent
b2bba739
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+2
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/lib-tk/Tkinter.py
View file @
038cad7e
...
...
@@ -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
)
...
...
Misc/NEWS
View file @
038cad7e
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment