先上一个不修改的样式,如下:
import easygui as g g.msgbox("hello","hi")
注意左上角的图标为红色的Tk字样
修改后:
import easygui as g from Tkinter import * tk = Tk() tk.iconbitmap(default = r'C:UsersxxooDownloadsitbug_favicon.ico') g.msgbox("hello","hi")
显示如下: