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 - Python Tutorial
From the course: Rapid Application Development with Python
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Generate code for the app2m 30s
-
Add Excel sheetnames to a listbox3m 24s
-
Link an edit field to a data source3m 51s
-
Add event handlers in wxPython6m 48s
-
Complete the main tab sheet3m 17s
-
Build and using tree controls4m 28s
-
Link edit fields to the tree1m 44s
-
Save data into the worksheet1m 46s
-
Review Python RAD with wxGlade4m 32s
-
-