gh-151910: Add tkinter.ttk.Treeview methods for the Tk 9.1 enhanced treeview#151911
Open
serhiy-storchaka wants to merge 2 commits into
Open
gh-151910: Add tkinter.ttk.Treeview methods for the Tk 9.1 enhanced treeview#151911serhiy-storchaka wants to merge 2 commits into
serhiy-storchaka wants to merge 2 commits into
Conversation
Documentation build overview
|
cd04d9e to
637038e
Compare
…nced 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_01XWevzas4XVpjzedzR9gKVo
637038e to
c05fe75
Compare
detached_all() and the ancestor-aware detached() query require Tk 9.1. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XWevzas4XVpjzedzR9gKVo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wrap the enhanced
ttk::treeviewwidget commands added in Tk 9.1 (TIP 740), and thedetachedquery added in Tk 9.0, as :class:tkinter.ttk.Treeviewmethods.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,cellselectionwith theset/add/removecell-list and*_rangerectangle forms,cellselection_anchor/includes/present, andtag_cell_add/remove/has.Detached query:
detached,detached_all.The new methods require Tk 9.1 (or 9.0 for
detached). They were tested against a locally built Tcl/Tk 9.1; the new tests are gated withrequires_tkand run on buildbots that have a recent enough Tk.🤖 Generated with Claude Code
https://claude.ai/code/session_01XWevzas4XVpjzedzR9gKVo