简体   繁体   English

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

[英]How to display the arrow symbol in Python tkMessageBox?

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

What should I add to the string info to display "Up arrow symbol" in the next line of message box? 我应该在字符串信息中添加什么以在消息框的下一行中显示“向上箭头符号”?

Use a Unicode string, and include a suitable Unicode arrow character ; 使用Unicode字符串,并包含合适的Unicode箭头字符 U+2191 for example: 以U + 2191为例:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM