Tkinter + Entry + cp1251 cyrillic
kirill_simonov at mail.ru
Sun Feb 24 20:56:34 EST 2002
On Sun, Feb 24, 2002 at 09:30:37AM +0100, Martin v. Loewis wrote:
> Kirill Simonov <kirill_simonov at mail.ru> writes:
> > 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
> Can you please explain what this change achieves, compared to the
> FixTk.py that is already there?
_tkinter.pyd is not imported here. Consequently tcl83.dll is not loaded
> In particular, do you mean that "X.Y" should be used literally?
Yes. Tcl also checks the path "$TCL_LIBRARY/../tcl<VERSION>/".
Oh, I just noticed that you had already fixed this in cvs. Many thanks!
More information about the Python-list