Commit c05fe75
gh-151910: Add tkinter.ttk.Treeview methods for the Tk 9.1 enhanced treeview
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>
Claude-Session: https://claude.ai/code/session_01XWevzas4XVpjzedzR9gKVo1 parent f28ef85 commit c05fe75
5 files changed
Lines changed: 1209 additions & 6 deletions
File tree
- Doc
- library
- whatsnew
- Lib
- test/test_ttk
- tkinter
- Misc/NEWS.d/next/Library
0 commit comments