Python 2.3.2 / Tkinter Problem

Michael Peuser mpeuser at web.de
Thu Oct 30 10:36:53 EST 2003


"Gary Richardson" <garyr at fidalgo.net>
> I've just switched to Python 2.3.2 and have encountered a problem that
> causes a program to crash. The program was working with Python 2.2. The
code
> below will illustrate the problem. A listbox is created and the mouse
> wheel is used to scroll the entries. The program crashes as soon as the
> mouse wheel is moved. The program appears to work OK otherwise. The
problem
> occurs when the program is run within the IDE or from a DOS prompt. I'm
> using ActivePython 2.3.2 on Win98SE. Any suggestions?
>

Seems to be nothing special wuth 2.3. It happens after a few wheel turns in
Python 2.2.2/Win2000 as well.
Minimal test program:
----------------------------------
from Tkinter import *

def _onMouseWheel(event):
    print event

root = Tk()
root.bind('<MouseWheel>',_onMouseWheel)
root.mainloop()
---------------------------
MichaelP






More information about the Python-list mailing list