]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151910: Add tkinter.ttk.Treeview methods for the Tk 9.1 enhanced treeview (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 22 Jun 2026 13:08:53 +0000 (16:08 +0300)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 13:08:53 +0000 (13:08 +0000)
commit13c1225443ad1459bc859392ea11a7053cbad190
tree98735386ed13c201e6640c95fb3af848e4c5c288
parentc42f36ac53c9f54c182d70fabe243a04934a8363
gh-151910: Add tkinter.ttk.Treeview methods for the Tk 9.1 enhanced treeview (GH-151911)

Wrap the enhanced ttk::treeview widget commands added in Tk 9.1 (TIP 740),
and the detached query added in Tk 9.0, as tkinter.ttk.Treeview methods:
item navigation and queries (after_item, before_item, depth, haschildren,
visible, size, range, identifier, current), opening, hiding, sorting and
searching (expand, collapse, hide, unhide, sort, search, search_all,
search_cell, search_all_cells), cell focus, selection and tagging
(cellfocus, cellselection and its set/add/remove cell-list and *_range
rectangle forms, anchor/includes/present, tag_cell_add/remove/has), and the
detached query (detached, detached_all).

The expand() and collapse() methods, without recurse, also work on Tk older
than 9.1, where they are emulated via the item -open option.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/tkinter.rst
Doc/library/tkinter.ttk.rst
Doc/whatsnew/3.16.rst
Lib/test/test_ttk/test_widgets.py
Lib/tkinter/ttk.py
Misc/NEWS.d/next/Library/2026-06-22-10-30-22.gh-issue-151910.ayi8xK.rst [new file with mode: 0644]