# current tkinter/__init__.py class Text(...): [...] def search(self, pattern, index, stopindex=None, forwards=None, backwards=None, exact=None, regexp=None, nocase=None, count=None, elide=None): [...]
The current tkinter implementation of the tkinter.Text.search method misses use of tcl options: -nolinestop -all -overlap -strictlimits
Is there any reason on why it is not inside the CPython implementation?
3.13
Windows
I'll see if I can make a pr
Almost done, I have to write unittests.
is currently avalible at https://github.com/sharktide/cpython/tree/patch-130693
pythongh-130693 Remove wordiness; only title left
I am currently pinging this issue as I have not seen a review for nearly a month. Could someone please review soon?
PR: gh-130848
For -all, it would be more Pythonic to add a separate method search_all() which returns a list or a tuple.
on it
gh-130693: Support more options for search in tkinter.Text (GH-130848)
pythongh-130693: Add more tests for tkinter.Text.search() (pythonGH-1…
[3.14] gh-130693: Add more tests for tkinter.Text.search() (GH-130848) (
[3.14] pythongh-130693: Add more tests for tkinter.Text.search() (pyt…
[3.13] gh-130693: Add more tests for tkinter.Text.search() (GH-130848) (
pythongh-130693: Support more options for search in tkinter.Text (pyt…
Activity
sharktide commented on Mar 4, 2025
I'll see if I can make a pr
sharktide commented on Mar 4, 2025
Almost done, I have to write unittests.
sharktide commented on Mar 4, 2025
is currently avalible at https://github.com/sharktide/cpython/tree/patch-130693
pythongh-130693 Remove wordiness; only title left
sharktide commented on May 30, 2025
I am currently pinging this issue as I have not seen a review for nearly a month. Could someone please review soon?
PR: gh-130848
serhiy-storchaka commented on Aug 10, 2025
For -all, it would be more Pythonic to add a separate method search_all() which returns a list or a tuple.
sharktide commented on Aug 10, 2025
on it
gh-130693: Support more options for search in tkinter.Text (GH-130848)
pythongh-130693: Add more tests for tkinter.Text.search() (pythonGH-1…
[3.14] gh-130693: Add more tests for tkinter.Text.search() (GH-130848) (
[3.14] pythongh-130693: Add more tests for tkinter.Text.search() (pyt…
[3.13] gh-130693: Add more tests for tkinter.Text.search() (GH-130848) (
pythongh-130693: Support more options for search in tkinter.Text (pyt…