Mailing List Archive

Python 152 & Tkinter install problems...
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
Python 152 & Tkinter install problems... [ In reply to ]
Greg Foltz wrote:
>
> 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:

I just hit this same problem minutes ago. Fortunately the fix is easy,
if a little heavy handed.

In directory:
C:\Program Files\Tcl\tk8.0
find two files:
listbox.tcl, and
text.tcl
and comment out the lines having to do with binding <MouseWheel>. In
both files those lines look like this:

bind ... <MouseWheel> {
%W yview ...
}

Now ... Does anyone know enough tcl to do this correctly? (For example,
check for the validity of the <MouseWheel> event and do this binding
conditionally.)

--
Dr. Gary Herron <gherron@aw.sgi.com>
206-287-5616
Alias | Wavefront
1218 3rd Ave, Suite 800, Seattle WA 98101
Python 152 & Tkinter install problems... [ In reply to ]
In article <374AEA7B.21C24505@aw.sgi.com>,
Gary Herron <gherron@aw.sgi.com> wrote:
> I just hit this same problem minutes ago. Fortunately the fix is
easy,
> if a little heavy handed.
>
> In directory:
> C:\Program Files\Tcl\tk8.0
> find two files:
> listbox.tcl, and
> text.tcl
> and comment out the lines having to do with binding <MouseWheel>. In
> both files those lines look like this:
>
> bind ... <MouseWheel> {
> %W yview ...
> }
>
> Now ... Does anyone know enough tcl to do this correctly? (For
example,
> check for the validity of the <MouseWheel> event and do this binding
> conditionally.)
>
> --
> Dr. Gary Herron <gherron@aw.sgi.com>
> 206-287-5616
> Alias | Wavefront
> 1218 3rd Ave, Suite 800, Seattle WA 98101
>

No! Don't do it. :-)

I had the same problem and spent two days trying to resolve it. did you
ever load TCL before? Maybe vTCL? At any rate, in my case the Python
FAQ paid off with a little tip that said to look for 'old copies' of
the dll's. In my case I found some old tcl dll's (tcl80.dll and
tk80.dll) in my \windows\system folder. Once I deleted those I was
golden.


-Curtis Yanko


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---