tkinter.ttk.Treeview.tag_bind()

tag_bind(tagname, sequence=None, callback=None) Bind a callback for the given event sequence to the tag tagname. When an event is delivered to an item, the callbacks for each of the item’s tags option are called.

tkinter.ttk.Treeview.set_children()

set_children(item, *newchildren) Replaces item‘s child with newchildren. Children present in item that are not present in newchildren are detached from the tree. No items in newchildren may be an ancestor of item. Note that not specifying newchildren results in detaching item‘s children.

tkinter.ttk.Treeview.set()

set(item, column=None, value=None) With one argument, returns a dictionary of column/value pairs for the specified item. With two arguments, returns the current value of the specified column. With three arguments, sets the value of given column in given item to the specified value.

tkinter.ttk.Treeview.selection_toggle()

selection_toggle(items) Toggle the selection state of each item in items.

tkinter.ttk.Treeview.selection_set()

selection_set(items) items becomes the new selection.

tkinter.ttk.Treeview.selection_remove()

selection_remove(items) Remove items from the selection.

tkinter.ttk.Treeview.selection_add()

selection_add(items) Add items to the selection.

tkinter.ttk.Treeview.selection()

selection(selop=None, items=None) If selop is not specified, returns selected items. Otherwise, it will act according to the following selection methods.

tkinter.ttk.Treeview.see()

see(item) Ensure that item is visible. Sets all of item‘s ancestors open option to True, and scrolls the widget if necessary so that item is within the visible portion of the tree.

tkinter.ttk.Treeview.reattach()

reattach(item, parent, index) An alias for Treeview.move().