Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 714
Keerthimanu Avatar asked Oct 27 '25 16:10

Keerthimanu


1 Answers

Use a Unicode string, and include a suitable Unicode arrow character; U+2191 for example:

info = u"Hello, Welcome\nPlease follow the instructions \u2191"
tkMessageBox.showinfo("Welcome", info)
like image 50
Martijn Pieters Avatar answered Oct 29 '25 05:10

Martijn Pieters



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!