网页A Treeview widget allows you to display data in both tabular and hierarchical structures. To create a Treeview widget, you use the ttk.Treeview class: tree = ttk.Treeview(container, **options) Code language: Python (python) A Treeview widget holds a list of items. Each item has one or more columns.