summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index e2f09a5..3a1d7a4 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -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."""