Older Tk versions don't support mousewheel support. Set event.delta

to zero if that's the case (closes bug #113727)
This commit is contained in:
Fredrik Lundh 2000-09-07 15:05:09 +00:00
parent ebba420285
commit a249f16af0

View file

@ -1050,7 +1050,10 @@ class Misc:
e.widget = W
e.x_root = getint(X)
e.y_root = getint(Y)
e.delta = getint(D)
try:
e.delta = getint(D)
except ValueError:
e.delta = 0
return (e,)
def _report_exception(self):
"""Internal function."""