📜  root.iconbitmap - Python 代码示例

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

代码示例1
import tkinter as tk
root = tk.Tk()

root.tk.call('wm', 'iconphoto', root._w, tk.PhotoImage(file='/path/to/ico/icon.png')

root.mainloop()