Skip to content

gh-130693: Add options of the tkinter.Text.search method: -nolinestop -all -overlap -strictlimits #130848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
8b27bcb
Update __init__.py
sharktide Mar 4, 2025
18d5005
📜🤖 Added by blurb_it.
blurb-it[bot] Mar 4, 2025
e2a76c2
Update 2025-03-04-17-19-26.gh-issue-130693.Kv01r8.rst
sharktide Mar 4, 2025
753da3a
Update 2025-03-04-17-19-26.gh-issue-130693.Kv01r8.rst
sharktide Mar 5, 2025
1ca30c6
Update 2025-03-04-17-19-26.gh-issue-130693.Kv01r8.rst
sharktide Mar 5, 2025
548e36a
Merge branch 'python:main' into patch-130693
sharktide May 5, 2025
6ce83e3
pythongh-130693 Remove wordiness; only title left
sharktide May 5, 2025
39f5875
Update 2025-03-04-17-19-26.gh-issue-130693.Kv01r8.rst
sharktide May 30, 2025
ba0c98a
remove whitespace in Lib/tkinter/__init__.py
sharktide Jun 17, 2025
754a124
Revert formatting in Lib/tkinter/__init__.py
sharktide Jun 17, 2025
ffd95fa
Update news entry to use :meth: tags
sharktide Jun 17, 2025
72e70fc
Merge branch 'main' into patch-130693
sharktide Jun 17, 2025
6229bdf
Remove newlines in news entry
sharktide Jun 17, 2025
1843da6
Remove ref to nonexistent docs (needs to be fixed later)
sharktide Jun 17, 2025
7196a88
Use double backticks in news entry
sharktide Jun 17, 2025
2601ddf
Add test cases to test_text.py
sharktide Jun 18, 2025
6d18d2f
Fix test failures due to return type being tcl obj not tuple
sharktide Jun 18, 2025
b672353
Make linter happy
sharktide Jun 18, 2025
bb9a840
Fix test fails by making 1.10 assumption broader
sharktide Jun 18, 2025
cc80963
Try to fix test fails again
sharktide Jun 18, 2025
8c8409c
Update __init__.py
sharktide Jul 27, 2025
980a5e3
Merge options tests into test_search
sharktide Aug 10, 2025
fb30d25
Remove -all and -overlap from search() and create search_all()
sharktide Aug 10, 2025
d58a291
Explicitly return list and convert tcl objects into strings
sharktide Aug 10, 2025
d3621e2
Modify test_search to also test search_all()
sharktide Aug 10, 2025
dfe46c0
Add to whatsnew.rst
sharktide Aug 10, 2025
efc1685
Merge branch 'main' into patch-130693
sharktide Aug 10, 2025
a286199
Fix text fauilures
sharktide Aug 10, 2025
9cf844a
Update news entry
sharktide Aug 10, 2025
834d6d4
Update whatsnew again
sharktide Aug 10, 2025
e4c7bef
Fix fails, reword
sharktide Aug 10, 2025
7cb79b9
Fix lint fails, add heading in what’s new
sharktide Aug 11, 2025
026ded8
Remove breaking changes
sharktide Aug 11, 2025
430773c
Use self.tk._splitlist
sharktide Aug 11, 2025
2f5ad84
Use ASCII dashes and move to improved modules
sharktide Aug 11, 2025
71d2a60
Revert docstring and make search_all keyword only
sharktide Aug 11, 2025
77831d4
Allow for other return types in list
sharktide Aug 11, 2025
1daff0f
Value based assertions
sharktide Aug 11, 2025
422aa6f
Remove - where not necessary, add newlines
sharktide Aug 11, 2025
1328308
Fix test fails
sharktide Aug 11, 2025
6e3d0c9
Update type expectations from list to tuple
sharktide Aug 11, 2025
6c6520b
Update assertion values
sharktide Aug 11, 2025
2852ee2
Use suggestions
sharktide Aug 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove - where not necessary, add newlines
  • Loading branch information
sharktide authored Aug 11, 2025
commit 422aa6fd534632b3c921cd69e7943e82d47d569b
5 changes: 3 additions & 2 deletions Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,9 @@ tkinter
-------

* The ``tkinter.Text.search`` method now supports two additional
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* The ``tkinter.Text.search`` method now supports two additional
* The :meth:`!tkinter.Text.search` method now supports two additional

So it will be formatted with the same font and color as other methods, just without a link.

arguments: ``-nolinestop`` which allows the search to continue across line boundaries;
and ``-strictlimits`` which restricts the search to within the specified range.
arguments: ``nolinestop`` which allows the search to
continue across line boundaries;
and ``strictlimits`` which restricts the search to within the specified range.
(Contributed by Rihaan Meher in :gh:`130848`)

* A new method ``tkinter.Text.search_all`` has been introduced.
Expand Down
Loading