Displaying Unicode text in Tkinter Canvas widget

Erik de Castro Lopo nospam at mega-nerd.com
Tue Jan 30 05:58:43 EST 2001


Erik de Castro Lopo wrote:
> 
> Hi all,
> 
> I'm writing a little app for helping to learn the Japanese
> Hiragana character set. At the moment I'm displaying GIF
> images of the characters but I would much rather use
> Unicode text.
> 
> I've had a look at the python.org web site and installed Tamito
> Kajiyama's Japanese codecs. I've also installed Tk/Tcl 8.3 and
> recompiled/installed Python 2.0.
> 
> Commands like:
> 
>     print unicode ('abcdefg', 'japanese.iso-2022-jp')
> 
> work without error messages, but I would like to know how
> to display Hiragan characters without making Japanese the
> default encoding.

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

Erik
-- 
+----------------------------------------------------------+
  Erik de Castro Lopo  nospam at mega-nerd.com (Yes its valid)
+----------------------------------------------------------+
"The worst thing about productivity tools is that there's 
always something in them that makes you less productive" 
 -- Chris Alfred Dec 15, 1997



More information about the Python-list mailing list