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

时间:2016-05-10 06:34:01

标签: python python-2.7 tkinter character-encoding

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

我应该在字符串信息中添加什么才能显示"向上箭头符号"在消息框的下一行?

1 个答案:

答案 0 :(得分:0)

使用Unicode字符串,并包含suitable Unicode arrow character;例如U + 2191:

info = u"Hello, Welcome\nPlease follow the instructions \u2191"
tkMessageBox.showinfo("Welcome", info)