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 - Python Tutorial
From the course: Rapid Application Development with Python
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…
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
-
-
-
-
-
-
(Locked)
Generate code for the app2m 30s
-
(Locked)
Add Excel sheetnames to a listbox3m 24s
-
(Locked)
Link an edit field to a data source3m 51s
-
(Locked)
Add event handlers in wxPython6m 48s
-
(Locked)
Complete the main tab sheet3m 17s
-
(Locked)
Build and using tree controls4m 28s
-
(Locked)
Link edit fields to the tree1m 44s
-
(Locked)
Save data into the worksheet1m 46s
-
(Locked)
Review Python RAD with wxGlade4m 32s
-
(Locked)
-