PSA: the tool you code with matters more than the code itself.
The 3rd method of placing widgets is to treat the window as a map with x and y lable3 = tk.Label(window, text="Note that an image can be in a label or a button!", borderwidth=4, relief=SUNKEN) button1 ...
We are reusing much of the same code from example2.py. We are just going to use a different method of arranging the window than using .pack(). label2 = tk.Label(window, image=dogphoto, borderwidth=3, ...
Get access to free course material to start learning Python. Learn important skills and tools used in programming today. Test ...