如何在Python的tkMessageBox中显示箭头符号?

3
info = "Hello, Welcome" + "\n" + "Please follow the instructions"
tkMessageBox.showinfo("Welcome", info)

在字符串“info”中添加什么内容,才能使“上箭头符号”在消息框的下一行显示出来?

1个回答

4
使用Unicode字符串,并包含一个适当的Unicode箭头字符;例如U+2191:
info = u"Hello, Welcome\nPlease follow the instructions \u2191"
tkMessageBox.showinfo("Welcome", info)

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接