Tkinter + Entry + cp1251 cyrillic

Kirill Simonov kirill_simonov at mail.ru
Sun Feb 24 20:21:37 EST 2002


On Sun, Feb 24, 2002 at 09:28:16AM +0100, Martin v. Loewis wrote:
> redskin at tut.by (Andrey Sidorenko) writes:
> 
> > I use Active Python 2.2 on Windows 2000 and have trouble - "Entry"
> > class can't display cyrillic letters (cp1251 encoding) correctly in
> > entry field. Can anybody help me with this weird problem?
> 
> Can you be more specific? I have no problems getting Tkinter to
> display Cyrillic characters, using Unicode strings.

Tk doesn't allow to enter Cyrillic characters in the Entry and Text widgets
if it doesn't load its encodings at startup. But Tk displays Cyrillic letters
correctly if I set the contents of the entry from my program.


Kirill





More information about the Python-list mailing list