python tkinter window 的应用程序徽标
App logo for python tkinter window
我想要一个 file.ico 文件作为应用程序的徽标。它类似于 html.
中的图标
这是结束代码:
root = Tk()
root.title("Blacky Birds")
root.resizable(0,0)
root.configure(bg="forestgreen")
game = SqBoard(root, width=16, height=16, letters=10)
game.mainloop()
我不确定,但猜测它会在我文件的这一部分。应该是像 root.icon(PhotoImage(file.ico)) 或类似的单行。请帮帮我。我正在使用 Python 3.4.2 和 Tkinter 作为 Gui。非常感谢。
root.iconbitmap('favicon.ico')
我想要一个 file.ico 文件作为应用程序的徽标。它类似于 html.
中的图标这是结束代码:
root = Tk()
root.title("Blacky Birds")
root.resizable(0,0)
root.configure(bg="forestgreen")
game = SqBoard(root, width=16, height=16, letters=10)
game.mainloop()
我不确定,但猜测它会在我文件的这一部分。应该是像 root.icon(PhotoImage(file.ico)) 或类似的单行。请帮帮我。我正在使用 Python 3.4.2 和 Tkinter 作为 Gui。非常感谢。
root.iconbitmap('favicon.ico')