Need help with Tkinter
chinaski_py at my-deja.com
chinaski_py at my-deja.com
Sun Aug 22 05:14:09 EDT 1999
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.
More information about the Python-list
mailing list