Create Icon

PHOTO EMBED

Mon May 31 2021 20:43:13 GMT+0000 (UTC)

Saved by @mikek

from tkinter import *


root = Tk()
root.title('title')
root.geometry('300x300')
root.iconbitmap(r'icon.ico')  # creating icon

photo = PhotoImage(file='alice.png')
my_label = Label(image=photo)
my_label.pack()


button_quit = Button(root, text="Exit Program", command=root.quit)
button_quit.pack()




root.mainloop()
content_copyCOPY