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.

Generate code for the app

Generate code for the app - Python Tutorial

From the course: Rapid Application Development with Python

Start my 1-month free trial

Generate code for the app

- We've now got a complete design for our application. So let's see how we generate application code. I'll select the application widget at the top of the design and in the lower left panel, we can adjust the configuration for the application. I'll change the class for the application to csfApp. I'll keep the default configuration of single file. And I'll select Python three. I don't need to keep user code when I first generate, but going forward, I'll want to make sure that any code I've added directly into the wxPython application is retained. So I'll check the key user code now so that I don't forget. I definitely want to mark code. So I know what wxGlade will replace when I regenerate the code. Okay, I can now add a Python file name to the output path. I'll call this CSFAudit.py and I'll generate the source code. I've opened the wxPython file that wxGlade generated. Let's take a quick look at…

Contents