[HELP] TKinter could not run in Python!
Mark Wu
wuhy at tcts.seed.net.tw
Fri Nov 12 18:07:37 EST 1999
Dear Sir:
Sorry, I think the statements is not clear. I think I have to explain
more detail,...
After I install the Python, I use the prodecure to check the Tkinter..
1) import _tkinter
2) import Tkinter
3) Tkinter._test()
Then, the interpreter showed the error message that I list below...
Best Regards, Mark
Mark Wu <wuhy at tcts.seed.net.tw> wrote in message
news:80i63e$7t4$1 at news.seed.net.tw...
> Dear Sir:
>
> This is my first time to use Python, I tried to active the Tkinter,
but
> the interpreter always tell me:
>
> error message:
> --------------------------------------------------------------------------
--
> --------------------
>
> File "<stdin>", line 1, in ?
> File "D:\Python\Lib\lib-tk\Tkinter.py", line 1947, in _test
> root = Tk()
> File "D:\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:
> {d:\progra~1\tcl\lib\tcl8.1} {} ./lib/tcl8.0 D:/Python/tcl8.0/library
> D:/Pyt
> hon/Tools/library
>
> d:/progra~1/tcl/lib/tcl8.1/init.tcl: version conflict for package "Tcl":
> have 8.
> 0, need 8.1
> version conflict for package "Tcl": have 8.0, need 8.1
> while executing
> "package require -exact Tcl 8.1"
> (file "d:/progra~1/tcl/lib/tcl8.1/init.tcl" line 19)
> invoked from within
> "source d:/progra~1/tcl/lib/tcl8.1/init.tcl"
> ("uplevel" body line 1)
> invoked from within
> "uplevel #0 [list source $tclfile]"
>
>
> This probably means that Tcl wasn't installed properly.
> --------------------------------------------------------------------------
--
> --------------------
>
> My system is window NT, with TCL/TK 8.1 (already installled before install
> python)...
>
> Any suggestion and help is very appreciate :)
>
> Best Regards, Mark
>
>
More information about the Python-list
mailing list