What are widgets?

When building apps with Tkinter, the basic building blocks of an app are called widgets, and there’s many different kinds of widgets that serve different purposes. The ones we will use in this project are outlined below

Tk() – A widget representing our main window, that all the code is contained in. We already called this widget in our program, and gave it the name “root”

Frame() – A widget that we can use to control the layout of a computer app. We can use a system many frames to divide up the space on the screen

Button() – A widget representing a clickable button in our app. You can assign user-defined functions to make things happen when they are clicked

Canvas() – A blank widget with some drawing functions that

In the next section, we will introduce some of these widgets to our program