[Python-bugs-list] [ python-Bugs-673115 ] <MouseWheel> causes crash on Windows2000

SourceForge.net noreply@sourceforge.net
Wed, 29 Jan 2003 09:37:14 -0800


Bugs item #673115, was opened at 2003-01-23 09:21
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=673115&group_id=5470

Category: Tkinter
Group: Python 2.2.2
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Toru Furukawa (torufurukawa)
Assigned to: Nobody/Anonymous (nobody)
Summary: <MouseWheel> causes crash on Windows2000

Initial Comment:
When using a mouse wheel on the code below, I got the 
error message dialog, saying
"Program Error
python.exe has generated errors and will be closed by 
Windows. You will need to restart the program. An error 
log is being created. [OK]"

#----
def foo(event): print "foo"
import Tkinter
win = Tkinter.Tk()
win.bind("<MouseWheel>", foo)
win.mainloop()
#----

It happens on Windows2000SP1 + Python 2.2.2.  It 
works on WindowsXP + Python 2.2.2.

Other events, like <Button-1>, works fine on Windows2k.

The attached file is the log file created at the crash.

----------------------------------------------------------------------

>Comment By: Toru Furukawa (torufurukawa)
Date: 2003-01-29 11:37

Message:
Logged In: YES 
user_id=651026

I found it is Tcl/Tk problem.

The tcl code nnorwitz provieded works on Active Tcl 8.3.4.  
The Python script crashes also on Python2.3a1.

I copied *both* tcl83.dll and tk83.dll of Active Tcl onto 
Python22/DLLs folder, and the Python script works fine.  
Now, it is clear the problem is Tcl/Tk's. 

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-01-28 20:05

Message:
Logged In: YES 
user_id=33168

This is most likely a Tk library problem (not Tkinter).  You
can verify this if you have tcl/tk installed.  The tcl
program below is roughly the same as the python code.  The
tcl command interpreter name is wish.

wish
#---- tcl program starts here
% proc foo { args } { puts "foo" }
% bind . "<MouseWheel>" foo
#----

Can you test this?  Can you test with 2.3a1?  I believe this
comes with a different version of Tk.  That may also fix the
problem.  BTW, there is no file attached.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=673115&group_id=5470