From the course: Rapid Application Development with Python

Unlock the full course today

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

Link an edit field to a data source

Link an edit field to a data source - Python Tutorial

From the course: Rapid Application Development with Python

Start my 1-month free trial

Link an edit field to a data source

- The CSF audit spreadsheet contains the audit status information for a system in cell 2E, which we'll display on the main tab sheet. The field we need to populate is tc_sysinfo, and the trigger for displaying it will be a change in the list box selection. If I check the list box events, I can see we have a list box event and a double click event. The event list box event occurs when an item in the list is selected or the selection changes. We'll use this to trigger a re-display of tc_sysinfo. Let's put in an event handler, on_list_change, and we can now regenerate the source code and go and put in the event handler code. Okay, now we have an event handler stub at line 125. We need to set the information when we first start the application, and then every time we change the list. I'll make the code to get and display the information a function that we can call. Display_info, and it will come with a parameter of self.…

Contents