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.

Complete the main tab sheet

Complete the main tab sheet - Python Tutorial

From the course: Rapid Application Development with Python

Start my 1-month free trial

Complete the main tab sheet

- To complete the main tab sheets, we need to add event handlers for the remaining buttons. For the delete button, I'll add on on_del_pressed. For the Open button, on_open_pressed. and for the store button, on_store_pressed. I'll also add an event handler for a double-click in the List box. And we'll call the Open Event handler, as this will have exactly the same functionality, on_open_pressed. Okay. Okay, let's re-generate the WX Python code, remembering to ensure the keep_user code option is checked so that WX Glade retains the add_button event handler code. I've replaced the placeholder code for the three event handlers and added a couple more worksheet functions. Let's take a look at the event handlers. The first event handler added is the on_open_pressed event handler at line 172. This starts by getting the currently selected list index, uses that to get the system name, and then calls our wsRead…

Contents