PyDocs

Nav

Graphical user interfaces with Tk

Treeview

No docstring. See the official docs.
Members of Treeview

b

bbox
Returns the bounding box (relative to the treeview widget’s window) of the specified item in the form (x, y, width, height).

c

column
Query or modify the options for the specified column.

d

delete
Delete all specified items and all their descendants.
detach
Unlinks all of the specified items from the tree.

e

exists
Returns True if the specified item is present in the tree, False otherwise.

f

focus
If item is specified, sets the focus item to item.

g

get_children
Returns a tuple of children belonging to item.

h

heading
Query or modify the heading options for the specified column.

i

identify
Returns a description of the specified component under the point given by x and y, or the empty string if no such component is present at that position.
identify_column
Returns the display column identifier of the cell at position x.
identify_element
Returns the element at position x, y.
identify_region
Returns one of:
identify_row
Returns the item ID of the item at position y.
index
Returns the integer index of item within its parent’s list of children.
insert
Creates a new item and returns the item identifier of the newly created item.
item
Query or modify the options for the specified item.

m

move
Moves item to position index in parent’s list of children.

n

next
Returns the identifier of item’s next sibling, or ‘’ if item is the last child of its parent.

p

parent
Returns the ID of the parent of item, or ‘’ if item is at the top level of the hierarchy.
prev
Returns the identifier of item’s previous sibling, or ‘’ if item is the first child of its parent.

r

reattach
Moves item to position index in parent’s list of children.

s

see
Ensure that item is visible.
selection
Returns a tuple of selected items.
selection_add
Add items to the selection.
selection_remove
Remove items from the selection.
selection_set
items becomes the new selection.
selection_toggle
Toggle the selection state of each item in items.
set
With one argument, returns a dictionary of column/value pairs for the specified item.
set_children
Replaces item’s children with newchildren.

t

tag_bind
Bind a callback for the given event sequence to the tag tagname.
tag_configure
Query or modify the options for the specified tagname.
tag_has
If item is specified, returns True if the specified item has the given tagname and False otherwise.

x

xview
Query or modify horizontal position of the treeview.

y

yview
Query or modify vertical position of the treeview.
0 Examples
No examples for tkinter.ttk/Treeview.
See Also
No see-alsos for tkinter.ttk/Treeview
0 Notes
No notes for Treeview