[Tkinter-discuss] Tkinter in Python 2.6 under MacOSX

Fred Mailhot fred.mailhot at gmail.com
Tue Nov 18 22:13:08 CET 2008


2008/11/18 Guilherme Polo <ggpolo at gmail.com>:
[snip]
>
> But if it is a problem with python on mac then just changing to pyqt
> won't cut it. Or if it is a problem with python *and* tcl, then I take
> you have no issues with unicode in pure tcl code, or what ?

[copied from an earlier post of mine to this list]

import Tkinter
root = Tkinter.Tk()
w1 = Tkinter.Button(root, text=u"\u026E", font=("Lucida Grande",24))
w2 = Tkinter.Label(root, text=u"\u026E", font=("Lucida Grande",24))
w1.pack()
w2.pack

The Button displays the correct character (a digraph from the
International Phonetic Alphabet), whereas the Label displays what
looks like a Chinese kanji character...the same problem as in 8.4.

Also, I verified someone else's (good) suggestion that it might be an
endianness issue, but it's not.

My understanding was that this would be resolved with Tk8.5, but no
dice. Still hoping this will be addressed.

Fred.


More information about the Tkinter-discuss mailing list