Python 152 & Tkinter install problems...

Greg Foltz gsfoltz at gsf.com
Tue May 25 12:55:46 EDT 1999


Grrrr!!!!  Help...

3 hours of installing is enough... trying to get Py152.exe w/ Tkinter >
Tcl805 installed on my Micron portable that had a running PythonWin older
version.  I've installed 5x and still get the following message even though
I've got identical installs on 2 other W95 desktop machines working great.

Again, trying to get Py152.exe & Tcl/Tkinter running on W95 Micron
Portable.  Tcl seems to be running fine by itself.  Command line python
looks good too.  I've played pathgames and everything I could think of but
still get this:


Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "C:\Py152\Lib\lib-tk\Tkinter.py", line 1947, in _test
    root = Tk()
  File "C:\Py152\Lib\lib-tk\Tkinter.py", line 886, in __init__
    self.tk = _tkinter.create(screenName, baseName, className)
TclError: Can't find a usable tk.tcl in the following directories: 
    {c:\tcl805\lib\tk8.0} . c:/tcl805/lib/tk8.0 ./tk8.0 ./lib/tk8.0
/library ./tk8.0/library ./library c:/tcl805/tk8.0/library

c:/tcl805/lib/tk8.0/tk.tcl: bad event type or keysym "MouseWheel"
bad event type or keysym "MouseWheel"
    while executing
"bind Listbox <MouseWheel> {
    %W yview scroll [expr - (%D / 120) * 4] units
}"
    (file "c:/tcl805/lib/tk8.0/listbox.tcl" line 179)
    invoked from within
"source [file join $tk_library listbox.tcl]"
    (file "c:/tcl805/lib/tk8.0/tk.tcl" line 151)
    invoked from within
"source c:/tcl805/lib/tk8.0/tk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tkfile]"
c:/tcl805/lib/tk8.0/tk.tcl: bad event type or keysym "MouseWheel"
bad event type or keysym "MouseWheel"
    while executing
"bind Listbox <MouseWheel> {
    %W yview scroll [expr - (%D / 120) * 4] units
}"
    (file "c:/tcl805/lib/tk8.0/listbox.tcl" line 179)
    invoked from within
"source [file join $tk_library listbox.tcl]"
    (file "c:/tcl805/lib/tk8.0/tk.tcl" line 151)
    invoked from within
"source c:/tcl805/lib/tk8.0/tk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tkfile]"


This probably means that Tk wasn't installed properly.



Anyone have a idea to work forward on this?  Thanks for ANY help!!!!



Greg




More information about the Python-list mailing list