The foundational element of a Tkinter GUI is the window. Windows are the containers in which all other elements live. These other GUI elements, such as text boxes, labels, and buttons are known as widgets. Widgets are contained inside of windows.
First, create a window that contains a single widgets.
Adding widget(label) to a above program
Label widgets are used to display text or images. The text displayed by a Label widget. Can't be edited by the user. It's for display purposes only.
0 Comments