Skip to content

tkinter missing -nolinestop on tk.Text #130693

Description

@r4ph43l-glitch

Bug report

Bug description:

# 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?

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Linked PRs

Activity

  1. added
    type-featureA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directory
    and removed
    type-bugAn unexpected behavior, bug, or error
    on Feb 28, 2025
  2. sharktide commented on Mar 4, 2025

    @sharktide
    Contributor

    I'll see if I can make a pr

  3. sharktide commented on Mar 4, 2025

    @sharktide
    Contributor

    Almost done, I have to write unittests.

  4. sharktide commented on Mar 4, 2025

    @sharktide
    Contributor
  5. added a commit that references this issue on May 5, 2025
  6. sharktide commented on May 30, 2025

    @sharktide
    Contributor

    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

  7. serhiy-storchaka commented on Aug 10, 2025

    @serhiy-storchaka
    Member

    For -all, it would be more Pythonic to add a separate method search_all() which returns a list or a tuple.

  8. sharktide commented on Aug 10, 2025

    @sharktide
    Contributor

    For -all, it would be more Pythonic to add a separate method search_all() which returns a list or a tuple.

    on it

  9. added a commit that references this issue on Nov 17, 2025
  10. added 2 commits that reference this issue on Nov 17, 2025
  11. added a commit that references this issue on Nov 17, 2025
  12. added a commit that references this issue on Nov 17, 2025
  13. added a commit that references this issue on Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-tkintertype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions