Tkinter + Entry + cp1251 cyrillic
Andrey Sidorenko
redskin at tut.by
Sun Feb 24 16:57:03 EST 2002
Kirill Simonov <kirill_simonov at mail.ru> wrote in message news:<mailman.1014533499.3218.python-list at python.org>...
> 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.
"It's working, it's working!" (c) Anakin Skywalker ;-)
Thank you very much.
More information about the Python-list
mailing list