[Tutor] Tkinter headaches

paul butler paul@entropia.co.uk
Tue Jan 21 14:04:01 2003


Dear list,
I installed the latest python( a few times ) on NT4, but IDLE 
obstinately refuses to appear,

After messing about with path:

%SystemRoot%\system32;%SystemRoot%;c:\Program 
Files\Mts;D:\SQLANY\Im5i32;D:\SQLANY\Sys32;D:\SQLANY50\wi
n32;C:\PROGRA~1\COMMON~1\Odbc\FILEMA~1;D:\Executive\;C:
\python22\;c:\Python22\tcl\

 and 

pythonpath

C:\Python22\ 
;C:\Python22\Tools\;C:\Python22\DLLs\;C:\Python22\include\;C:\Py
thon22\Lib\;C:\Python22\libs\;C:\Python22\tcl\;C:\Python22\Lib\lib-
tk\;C:\python22\tcl\tcl8.3\

I got Tkinter to load
on running the test from a console this was the result

Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>> Tkinter._test()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Python22\Lib\lib-tk\Tkinter.py", line 3094, in _test
    root = Tk()
  File "C:\Python22\Lib\lib-tk\Tkinter.py", line 1495, in __init__
    self.tk = _tkinter.create(screenName, baseName, className)
TclError: Can't find a usable init.tcl in the following directories:
    {} C:/Python22/lib/tcl8.3 C:/lib/tcl8.3 lib/tcl8.3 lib/tcl8.3/library 
librar
y ../tcl8.3/library



This probably means that Tcl wasn't installed properly.

>>>

Any idea how I can install TCL properly, the directories and the 
files are there (in C:/Python22/lib/tcl8.3)

Never had this much trouble with python before

TIA

Paul Butler