Help: Chinese charactor in Tkinter

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Oct 3 10:52:17 EDT 2000


Zhenlei Jia <zj8k at node13.unix.Virginia.EDU> writes:

> > If you can execute tk's "wish" program directly, try running the following
> > code:
> > 	button .b -text \u5413abcd -font {Song -12}
> > if you can see the chinese character now, the fault lies somewhere
> > within Python; if not, the fault lies somewhere within tk.
> I have tried it, no lucky. 

So that would indicate that it is indeed a Tk problem - you may ask
one of the tcl fora for help.

> Maybe there is somthing wrong with the installation of Chinese
> Language Kit of the Mac(although other App. can work well).

I don't think so. It is rather likely that the support for selecting
appropriate fonts in Tk is incomplete for the Mac.

Regards,
Martin




More information about the Python-list mailing list