mirror of
https://github.com/python/cpython.git
synced 2025-07-22 18:55:22 +00:00
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:
parent
ebba420285
commit
a249f16af0
1 changed files with 4 additions and 1 deletions
|
@ -1050,7 +1050,10 @@ class Misc:
|
||||||
e.widget = W
|
e.widget = W
|
||||||
e.x_root = getint(X)
|
e.x_root = getint(X)
|
||||||
e.y_root = getint(Y)
|
e.y_root = getint(Y)
|
||||||
|
try:
|
||||||
e.delta = getint(D)
|
e.delta = getint(D)
|
||||||
|
except ValueError:
|
||||||
|
e.delta = 0
|
||||||
return (e,)
|
return (e,)
|
||||||
def _report_exception(self):
|
def _report_exception(self):
|
||||||
"""Internal function."""
|
"""Internal function."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue