From the course: Python GUI Development with Tkinter

Unlock the full course today

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

Creating the widgets

Creating the widgets

- [Instructor] Now that I've sketched out the design for what I want my GUI to look like, I'm ready to start building it. The first thing to do when writing a new Tkinter program is create widgets. And to determine what widgets I need to create, I'll refer back to my design drawing. Using this drawing, I can quickly build a list of the widgets needed for the feedback form and include their parent-child relationships. I'll start by listing the top level window, which is passed to the feedback constructor as the master widget. Inside the master window, I have two frames, which will each be children of the master. The top frame contains the header and has three children of its own. It has the Desert to Sea logo, which will be a label containing an image, it has the label containing the bold header message saying thanks, and it has a label containing the instructions for the user. The lower frame inside of the master window will contain the main contents of the feedback form. There are…

Contents