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.tag_configure()

tag_configure(tagname, option=None, **kw) Query or modify the options for the specified tagname. If kw is not given, returns a dict of the option settings for tagname. If option is specified, returns the value for that option for the specified tagname. Otherwise, sets the options to the corresponding values for the given tagname.

tkinter.ttk.Treeview.selection_set()

selection_set(items) items becomes the new selection.

tkinter.ttk.Treeview.selection_toggle()

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

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.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.move()

move(item, parent, index) Moves item to position index in parent‘s list of children. It is illegal to move an item under one of its descendants. If index is less than or equal to zero, item is moved to the beginning; if greater than or equal to the number of children, it is moved to the end. If item was detached it is reattached.

tkinter.ttk.Treeview.parent()

parent(item) Returns the ID of the parent of item, or ‘’ if item is at the top level of the hierarchy.