- Python GUI Programming Cookbook(Second Edition)
- Burkhard A. Meier
- 58字
- 2021-07-09 19:50:53
How to do it...
In order to add a Label widget to our GUI, we will import the ttk module from tkinter. Please note the two import statements. Add the following code just above win.mainloop(), which is located at the bottom of the first and second recipes:
GUI_add_label.py

Running the code adds a label to our GUI:
