Tkinter + Entry + cp1251 cyrillic

Kirill Simonov kirill_simonov at mail.ru
Sun Feb 24 01:53:59 EST 2002


On Sat, Feb 23, 2002 at 04:57:19PM -0800, Andrey Sidorenko wrote:
> 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?

Try to replace "Python22\Lib\lib-tk\FixTk.py" with the following:

import sys, os

if not os.environ.has_key('TCL_LIBRARY'):
    tcl_library = os.path.join(sys.prefix, "tcl", "tclX.Y")
    os.environ['TCL_LIBRARY'] = tcl_library


Kirill.





More information about the Python-list mailing list