diff --git a/008. Using Icons, Images, and Exit Buttons - Python Tkinter GUI Tutorial #8/aspen.png b/008. Using Icons, Images, and Exit Buttons - Python Tkinter GUI Tutorial #8/aspen.png new file mode 100644 index 0000000..4d54d86 Binary files /dev/null and b/008. Using Icons, Images, and Exit Buttons - Python Tkinter GUI Tutorial #8/aspen.png differ diff --git a/008. Using Icons, Images, and Exit Buttons - Python Tkinter GUI Tutorial #8/codemy.ico b/008. Using Icons, Images, and Exit Buttons - Python Tkinter GUI Tutorial #8/codemy.ico new file mode 100644 index 0000000..73ca51f Binary files /dev/null and b/008. Using Icons, Images, and Exit Buttons - Python Tkinter GUI Tutorial #8/codemy.ico differ diff --git a/008. Using Icons, Images, and Exit Buttons - Python Tkinter GUI Tutorial #8/images.py b/008. Using Icons, Images, and Exit Buttons - Python Tkinter GUI Tutorial #8/images.py new file mode 100644 index 0000000..49a8955 --- /dev/null +++ b/008. Using Icons, Images, and Exit Buttons - Python Tkinter GUI Tutorial #8/images.py @@ -0,0 +1,18 @@ +from tkinter import * +from PIL import ImageTk, Image + +root = Tk() +root.title("Learn To Code at Codemy.com") +root.iconbitmap("c:/gui/codemy.ico") + + +my_img = ImageTk.PhotoImage(Image.open("aspen.png")) +my_label = Label(image=my_img) +my_label.pack() + + +button_quit = Button(root, text="Exit Program", command=root.quit) +button_quit.pack() + + +root.mainloop() diff --git a/readme.md b/readme.md index 5bd32b4..5158929 100644 --- a/readme.md +++ b/readme.md @@ -11,3 +11,4 @@ * [Build A Simple Calculator App - Python Tkinter GUI Tutorial #5](https://www.youtube.com/watch?v=F5PfbC5ld-Q&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV) * [Continue Building A Simple Calculator App - Python Tkinter GUI Tutorial #6](https://www.youtube.com/watch?v=XhCfsuMyhXo&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV) * [Finish Building A Simple Calculator App - Python Tkinter GUI Tutorial #7](https://www.youtube.com/watch?v=oq3lJdhnPp8&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV) +* [Using Icons, Images, and Exit Buttons - Python Tkinter GUI Tutorial #8](https://www.youtube.com/watch?v=NoTM8JciWaQ&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV)