Displaying Unicode text in Tkinter Canvas widget

Martin von Loewis loewis at informatik.hu-berlin.de
Fri Feb 2 16:20:16 EST 2001


Erik de Castro Lopo <nospam at mega-nerd.com> writes:

> I'm sorry, I should have mentioned that I'm trying to display
> the Hiragana as text in a Tkinter Canvas widget.

Why does it have to be a Canvas? I'd suggest to start with a Label, or
Text widget.

>>> import Tkinter
>>> t=Tkinter.Label(text=u"\N{HIRAGANA LETTER KA}")
>>> t.pack()                                                                    
works fine for me (on Linux).

Regards,
Martin



More information about the Python-list mailing list