from PIL import Image, ImageTk
import tkinter as tk
root = tk.Tk()
im = Image.open("yourIcon.ico")
img = ImageTk.PhotoImage(im)
root.tk.call('wm', 'iconphoto', root._w, img)
python3 tkinter中iconbitmap读位图发生错误解决方法
猜你喜欢
转载自blog.csdn.net/qq_35292737/article/details/84710508
今日推荐
周排行