[Tkinter-discuss] MouseWheel bug in cygwin

Vasilis Vlachoudis Vasilis.Vlachoudis at cern.ch
Thu Jul 27 20:16:19 CEST 2006

Hi All,


The following program works nicely with windows Python, but it crashes
with no any information under cygwin


Regards Vasilis



from Tkinter import *


root = Tk()

canvas = Canvas(root)

canvas.pack(side=TOP, expand=YES, fill=BOTH)

for i in range(1000):

            canvas.create_text(10, i*20, text="Hello world %d" % (i),


def wheel(event):

            print "wheel"

            canvas.yview(SCROLL, -event.delta//120, UNITS)



canvas.bind('<MouseWheel>', wheel)

#canvas.bind('<4>', lambda e : canvas.yview(SCROLL, -1, UNITS))

#canvas.bind('<5>', lambda e : canvas.yview(SCROLL,  1, UNITS))


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20060727/51c38df4/attachment.html 

More information about the Tkinter-discuss mailing list