Mailing List Archive

Need help with Tkinter
When I try to import Tkinter from PythonWin this is the message I get:
>>> from Tkinter import
>>> w = Button(text = "hello", command ='exit')

Traceback (innermost last):
File "<interactive input>", line 1, in ?

File "C:\Program Files\Python\Lib\lib-tk\Tkinter.py", line 1123, in
__init__
Widget.__init__(self, master, 'button', cnf, kw)
File
"C:\Program Files\Python\Lib\lib-tk\Tkinter.py", line 1078, in __init__

BaseWidget._setup(self, master, cnf)
File "C:\Program
Files\Python\Lib\lib-tk\Tkinter.py", line 1055, in _setup

_default_root = Tk()
File "C:\Program
Files\Python\Lib\lib-tk\Tkinter.py", line 886, in __init__
self.tk =
_tkinter.create(screenName, baseName, className)
TclError: Can't find a
usable init.tcl in the following directories:
{} ./lib/tcl8.0
C:/tcl8.0/library {C:/Program Files/library}



This probably means that
Tcl wasn't installed properly.

Can anyone explain how to fix this?
Your help is appreciated,
G.Norton (chinaski)


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Need help with Tkinter [ In reply to ]
chinaski_py@my-deja.com wrote:
> When I try to import Tkinter from PythonWin this is the message I get:
> TclError: Can't find a
> usable init.tcl in the following directories:
> {} ./lib/tcl8.0
> C:/tcl8.0/library {C:/Program Files/library}

http://www.pythonware.com/people/fredrik/fyi/fyi02.htm
might help.

</F>