如何使用Unicode字符作为Tkinter图标

2024-10-02 10:19:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用Unicode字符作为\uE8EF作为Tkinter图标。有没有可能或者我应该用图像来代替

我尝试过(不是我的实际代码):

import tkinter as tk
root = tk.Tk()
root.iconbitmap('\uE8EF')
#some buttons, widgets, a lot of stuff

如何使用Unicode字符作为Tkinter图标


Tags: 代码图像importtkinterasunicodesomeroot

热门问题