Problem with Tk on Windows
Miki Tebeka
mikit at zoran.co.il
Mon Oct 27 02:38:44 EST 2003
Hello Simon,
> Has anyone seen the follwoing message on the Windows platform
> when tring to use Tk?
>
> ---
>
> >>> import Tkinter
> >>> root = Tkinter.Tk()
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "c:\python23\lib\lib-tk\Tkinter.py", line 1564, in __init__
> self.tk = _tkinter.create(screenName, baseName, className)
> _tkinter.TclError: Can't find a usable init.tcl in the following
> directories:
> c:/python23/lib/tcl8.4 c:/lib/tcl8.4 c:/library
>
>
>
> This probably means that Tcl wasn't installed properly.
>
> ---
>
> Anyone know the solution?
Just a guess, check if you have environment variable called TCL_HOME,
if so try to remove it.
HTH.
Miki.
More information about the Python-list
mailing list