from tkinter import * from PIL import ImageTk, Image root = Tk() root.title("Image") root.iconbitmap(r'icon.ico') # Button button_quit = Button(root, text="Exit Program", command=root.quit) button_quit.pack() label = Label mainloop()
from tkinter import * from PIL import ImageTk, Image root = Tk() root.title("Image") root.iconbitmap(r'icon.ico') # Button button_quit = Button(root, text="Exit Program", command=root.quit) button_quit.pack() label = Label mainloop()