Problem with Tk on Windows

Simon Foster simon at uggs.demon.co.uk
Sun Oct 26 19:46:26 EST 2003


Hi all,

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?
--
Simon Foster
Somewhere in the West of England




More information about the Python-list mailing list