From the course: Rapid Application Development with Python

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Build and using tree controls

Build and using tree controls - Python Tutorial

From the course: Rapid Application Development with Python

Start my 1-month free trial

Build and using tree controls

- [Instructor] The Excel workbook contains the list of cybersecurity framework control requirements. We can see the main elements are the group in columns A and B the category in column C to E, and the control requirements in control columns F and G. In shorthand the control requirement is constructed from columns A, C and F. For example, ID.AM.3. Columns B, D and G are the more informative descriptions. Where we have a multilevel hierarchical list, tree controls are often the simplest way to deal with them. We've already placed a tree control on our second sheet. So let's go and look at how we populate it. The first thing I need to do is set up the root node of the tree that I have somewhere to place the branches for each group. Once I have the branch, I can add categories to it. And then I can add control requirements to the categories, to form the leaf nodes of the tree. Let's select the tree widget. And in the lower…

Contents