上QQ阅读APP看书,第一时间看更新
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: