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

SourceForge.net noreply@sourceforge.net
Tue, 28 Jan 2003 18:05:56 -0800


Bugs item #673115, was opened at 2003-01-23 10: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: Open
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: Neal Norwitz (nnorwitz)
Date: 2003-01-28 21: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