How to Build User Interfaces with Python — Tkinter Widgets — Part. 1
This story follows the User Interfaces series. If you have missed the last Tkinter story, you can find it here:
What Is a Widget
Tkinter, and most of the UI libraries or frameworks existing work on a widget system. That’s why it’s so important to understand what is a widget.
A widget is an element of a GUI that can be used to display information, structure a UI, or give the possibility to the user to interact with the application.
In Tkinter, everything is a widget, except the top-level window containing the application.
If we take for example a calculator app, each button is a widget, the display of the result is a widget, and the frame containing all these elements is a widget too.
How to Use Widgets in Tkinter
I’ve already talked about this in the first story of this series, so I won’t go into too much detail here. But just a quick reminder, here is the syntax to create and use a…