Cyrillic letters in 'Entry' widget

Denis S. Otkidach ods at strana.ru
Tue Nov 12 07:22:10 EST 2002


On 11 Nov 2002, Martin v. [iso-8859-1] LЖwis wrote:

MvL> "Bobirkhon Ismailov" <bismailov at uzavtoyul.uz> writes:
MvL>
MvL> > I am trying to enter cyrillic letters in text entry
MvL> widgets, but it
MvL> > looks like trash. I was wondering if is there any way to
MvL> display entered
MvL> > characters correctly on screen.
MvL>
MvL> Did you read my reply to your previous message?
MvL>
MvL> >>> import Tkinter
MvL> >>> t=Tkinter.Entry()
MvL> >>> t.pack()
MvL> >>> t.insert(0,u'\N{CYRILLIC SMALL LETTER ZHE}\u0437')
MvL> >>>
MvL>
MvL> works fine for me. What does that give for you?

This helps for output only.  To recieve input you need patching
Tkinter: http://prefnews.ru/forum/viewtopic.php?t=19

-- 
Denis S. Otkidach
http://www.python.ru/      [ru]





More information about the Python-list mailing list