Kaydet (Commit) a249f16a authored tarafından Fredrik Lundh's avatar Fredrik Lundh

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

to zero if that's the case (closes bug #113727)
üst ebba4202
......@@ -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."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment