Unicode Characters & Special Characters - Python Tkinter GUI Tutorial #51
16.3 هزار بار بازدید -
4 سال پیش
-
How to use Unicode Characters
How to use Unicode Characters and Special Characters with tKinter and Python. Using special characters in tKinter is super easy.
You just slap a u in front of the thing, then escape out with a backslash, and then type in the unicode characters, like so:
my_label = Label(root, text='41' + u'\u00A2').pack()
You just slap a u in front of the thing, then escape out with a backslash, and then type in the unicode characters, like so:
my_label = Label(root, text='41' + u'\u00A2').pack()
4 سال پیش
در تاریخ 1399/01/01 منتشر شده
است.
16,383
بـار بازدید شده