[Tkinter-discuss] Python 3.2 and binding Mousewheel on Mac

Michael O'Donnell michael.odonnell at uam.es
Fri Apr 20 14:05:15 CEST 2012


Hi All,

  I am on Macosx Lion running Python 3.2.3 and Tkinter 8.5

The following  code breaks on my machine, and given
search on the web, has been breaking in different forms since
2005.

#========
from tkinter import *
def _onMouseWheel(event):
    print(event)

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

On my machine works under python 2.7.2.

I thought this would be fixed by now. Does anyone know
anything about it?

Mick


More information about the Tkinter-discuss mailing list