mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +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.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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue