From the course: Python Projects

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Explore a Python Tkinter GUI

Explore a Python Tkinter GUI - Python Tutorial

From the course: Python Projects

Explore a Python Tkinter GUI

- [Instructor] Now that we've seen my plan for the GUI let's dive into the code I wrote to actually implement it. This dd GUI module is 250 lines long. So for the sake of time, I won't step through it line by line. And I've used my editor's code folding feature to hide a lot of the code to make it more manageable for viewing. Instead, I'll focus on a few key design decisions, and of course the full code is included in the exercise files if you want to explore it in more detail yourself. Notice at the top, in addition to importing Python's TKinter module, I've also imported the daily digest email and scheduler modules because my GUI will interact with instances of both. Expanding my daily digest classes init method at line eight, we see that it takes a parameter named route, which corresponds to the TKinter window in which I want to build this GUI. Lines 11 through 14, use the TKinter API to add a title to the window and create a header label to pack into the top of the window frame…

Contents