Skip to content

Wrap the enhanced ttk::treeview (Tk 9.1) widget commands in tkinter #151910

Description

@serhiy-storchaka

Tk 9.1 greatly enhanced ttk::treeview (TIP 740) with many new widget subcommands — view-order navigation, item queries, open/hide/sort/search operations, and cell focus, selection and tagging. Tk 9.0 added the treeview detached query. None of these are exposed by tkinter.ttk.Treeview.

Add wrapper methods for them:

Navigation and queries (Tk 9.1): after_item, before_item, depth, haschildren, visible, size, range, identifier, current.

Open / hide / sort / search (Tk 9.1): expand, collapse, hide, unhide, sort, search, search_all, search_cell, search_all_cells.

Cells (Tk 9.1): cellfocus, cellselection and cellselection_set/add/remove (cell lists), cellselection_set_range/add_range/remove_range (rectangles), cellselection_anchor/includes/present, and tag_cell_add/remove/has.

Detached query (Tk 9.0): detached, detached_all.

These require Tk 9.1 (or 9.0 for detached), tested with a locally built Tcl/Tk 9.1.

Linked PRs

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions