Using the Treeview widget

In this recipe, we will introduce the ttk.Treeview class, a versatile widget that lets us display information in both tabular and hierarchical structures.

Each item added to the ttk.Treeview class is divided into one or more columns, where the first one may contain text and an icon and serves to indicate whether the item can be expanded and show more nested items. The rest of the columns contain the values that we want to display for each row.

The first row of the ttk.Treeview class is composed of headings that identify each column by its name and can be optionally hidden.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset