📜  设置图标标题 tkinter - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:49.256000             🧑  作者: Mango

代码示例1
# 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()