9

Python tkinter 按钮中输入 emoji 表情符号,会被重复显示

 3 years ago
source link: https://www.v2ex.com/t/801274
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Python

Python tkinter 按钮中输入 emoji 表情符号,会被重复显示

  youthfire · 1 天前 · 271 次点击

本意是想给 tkinter 里的按钮增加 emoji 表情以便快速识别

Button(root, text="明细查询", command=searchitem, font=("宋体", 15, 'bold')).grid(column=3, row=4)

比如,在 text 这里增加一个 emoji 表情。添加后,表情可以显示出来,但任何表情都是会变成 2 个相同的。如果是只输入表情,不输入文字,就显示 2 个相同的表情。如果输入表情加文字,则文字会出现在 2 个重复表情的中间。如果不用 emoji 表情,用普通的 symbol 之类,可以正常显示。

求教怎么解决?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK