📅  最后修改于: 2022-03-11 14:45:49.256000             🧑  作者: Mango
# my problme was that, i didnt know that the image format must be .ico
# you can convert your images in https://convertico.com/ and then:
from tkinter import *
root = Tk()
root.title('this is program title')
# icon
root.iconbitmap('image_name.ico')
root.mainloop()